CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CalibMuon/DTCalibration/plugins/DTVDriftSegmentCalibration.h

Go to the documentation of this file.
00001 #ifndef CalibMuon_DTCalibration_DTVDriftSegmentCalibration_h
00002 #define CalibMuon_DTCalibration_DTVDriftSegmentCalibration_h
00003 
00013 #include "FWCore/Framework/interface/EDAnalyzer.h"
00014 #include "FWCore/Utilities/interface/InputTag.h"
00015 #include "CalibMuon/DTCalibration/interface/DTSegmentSelector.h"
00016 
00017 #include <map>
00018 
00019 class DTChamberId;
00020 class TFile;
00021 class TH1F;
00022 class TH2F;
00023 
00024 class DTVDriftSegmentCalibration : public edm::EDAnalyzer {
00025 public:
00026   // Constructor
00027   DTVDriftSegmentCalibration(const edm::ParameterSet& pset);
00028   // Destructor
00029   virtual ~DTVDriftSegmentCalibration();
00030 
00031   void beginJob();
00032   void beginRun(const edm::Run& run, const edm::EventSetup& setup);
00033   void analyze(const edm::Event& event, const edm::EventSetup& eventSetup);
00034   void endJob();
00035   
00036 private:
00037   typedef std::map<DTChamberId, std::vector<TH1F*> > ChamberHistosMapTH1F;
00038   typedef std::map<DTChamberId, std::vector<TH2F*> > ChamberHistosMapTH2F;
00039   void bookHistos(DTChamberId);
00040 
00041   DTSegmentSelector select_;
00042 
00043   edm::InputTag  theRecHits4DLabel_;
00044   //bool writeVDriftDB_;
00045   std::string theCalibChamber_;
00046 
00047   TFile* rootFile_;
00048   ChamberHistosMapTH1F theVDriftHistoMapTH1F_;
00049   ChamberHistosMapTH2F theVDriftHistoMapTH2F_;
00050 };
00051 #endif
00052