CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibMuon/DTCalibration/plugins/DTTTrigOffsetCalibration.h

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