--- UserCode/wangdy/TimingCSC/interface/CSCTimingAnalyzer.h 2008/09/30 10:19:18 1.13 +++ UserCode/wangdy/TimingCSC/interface/CSCTimingAnalyzer.h 2009/01/23 18:31:09 1.17 @@ -7,7 +7,7 @@ * based on B. Jackson's analyzer by Dayong Wang * */ -// $Id: CSCTimingAnalyzer.h,v 1.13 2008/09/30 10:19:18 wangdy Exp $ +// $Id: CSCTimingAnalyzer.h,v 1.17 2009/01/23 18:31:09 wangdy Exp $ #ifndef TimingCSC_CSCTimingAnalyzer_h #define TimingCSC_CSCTimingAnalyzer_h @@ -41,7 +41,7 @@ const int MINSEC=0; const int MAXSEC=12; const int TIMINGSEC=3; // this only works for naive estimation now const int BX_START=3; // starting of hBX: 3 for MC and 0 for data -const int ABSBX_START=797; // starting of hAbsBX: run#62232:797; run#63200:234; run62384:2500 +const int ABSBX_START=10; // starting of hAbsBX: run#62232:797; run#63200:234; run62384:2500 const int NUMSEC=MAXSEC-MINSEC; class CSCTriggerMappingFromFile; @@ -61,17 +61,18 @@ private: void initializeHistograms(); void fillHistograms(edm::Handle corrlcts, - edm::Handle tracks); + edm::Handle tracks, + edm::Event const& e); void timingExtract(); - void initializeCanvases(); - void fillCanvases(); - void printCanvases(); +// void initializeCanvases(); +// void fillCanvases(); +// void printCanvases(); void deleteRootObjects(); void deleteHistograms(); void deleteCanvases(); - int myBX(edm::Event& event); + int myBX(edm::Event const& event); bool testBeam; int TBFEDid, TBendcap, TBsector; std::string mapPath; @@ -82,13 +83,13 @@ private: edm::InputTag lctProducer, trackProducer; std::string run; - std::string outFile; +// std::string outFile; std::string timeFile; /// Root Objects /// File to store the generated hisograms - TFile* fAnalysis; +// TFile* fAnalysis; /// for output of const and error TFile* fTimingConst; @@ -99,6 +100,7 @@ private: /// for absolute BXN synchronization TFile* fAbsBXN; +// TH2F* hEndSec; TH1I* hBX[NUMSEC][MAX_STATIONS][MAX_CHAMBERS]; TH1I* hAbsBX[NUMSEC][MAX_STATIONS][MAX_CHAMBERS]; TH1I* hNumTracksPerEvent;