CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalCosmicsHists.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EcalCosmicsHists
4 // Class: EcalCosmicsHists
5 //
13 //
14 // Original Author: Seth COOPER
15 // Created: Th Nov 22 5:46:22 CEST 2007
16 // $Id: EcalCosmicsHists.h,v 1.4 2010/01/04 15:07:39 ferriff Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include <vector>
24 #include <map>
25 #include <set>
26 
27 // user include files
34 
44 
46 
48 
49 #include "TFile.h"
50 #include "TH1F.h"
51 #include "TH2F.h"
52 #include "TH3F.h"
53 #include "TGraph.h"
54 #include "TNtuple.h"
55 
56 
57 // *** for TrackAssociation
65 // ***
66 
67 //
68 // class declaration
69 //
70 
72  public:
73  explicit EcalCosmicsHists(const edm::ParameterSet&);
75 
76 
77  private:
78  virtual void beginRun(edm::Run const &, edm::EventSetup const &) ;
79  virtual void analyze(edm::Event const &, edm::EventSetup const &);
80  virtual void endJob() ;
81  std::string intToString(int num);
82  void initHists(int);
83  std::vector<bool> determineTriggers(const edm::Event&, const edm::EventSetup& eventSetup);
84 
85  // ----------member data ---------------------------
86 
94 
95  int runNum_;
102 
103  double *ttEtaBins;
104  double *modEtaBins;
105  std::string fileName_;
107 
110 
111  std::map<int,TH1F*> FEDsAndHists_;
112  std::map<int,TH1F*> FEDsAndE2Hists_;
113  std::map<int,TH1F*> FEDsAndenergyHists_;
114  std::map<int,TH1F*> FEDsAndTimingHists_;
115  std::map<int,TH1F*> FEDsAndFrequencyHists_;
116  std::map<int,TH1F*> FEDsAndiPhiProfileHists_;
117  std::map<int,TH1F*> FEDsAndNumXtalsInClusterHists_;
118  std::map<int,TH1F*> FEDsAndiEtaProfileHists_;
119  std::map<int,TH2F*> FEDsAndTimingVsFreqHists_;
120  std::map<int,TH2F*> FEDsAndTimingVsAmpHists_;
121  std::map<int,TH2F*> FEDsAndE2vsE1Hists_;
122  std::map<int,TH2F*> FEDsAndenergyvsE1Hists_;
123  std::map<int,TH2F*> FEDsAndOccupancyHists_;
124  std::map<int,TH2F*> FEDsAndTimingVsPhiHists_;
125  std::map<int,TH2F*> FEDsAndTimingVsEtaHists_;
126  std::map<int,TH2F*> FEDsAndTimingVsModuleHists_;
127  std::map<int,TH2F*> FEDsAndDCCRuntypeVsBxHists_;
128 
143 
145 
146  //TH1F* numberofSCCosmicsHist_;//SC Num cosmics
147  TH1F* numberofBCinSC_;//SC Num cosmics
149 
152 
155 
158  TH2F* allOccupancy_; //New file to do eta-phi occupancy
159  TH2F* TrueOccupancy_; //New file to do eta-phi occupancy
160  TH2F* allOccupancyCoarse_; //New file to do eta-phi occupancy
161  TH2F* TrueOccupancyCoarse_; //New file to do eta-phi occupancy
162 
163  // single xtal clusters
166 
176 
183 
192 
201 
210 
219 
228 
230 
233 
237 
239  TH1F* deltaRHist_;
247 
248  // DCC Event type (runtype) vs. bx
255 
256  // track association
261 
262  // top & bottom
265 
266  // hcal energy
271 
272  // high energy analysis (inherited from serena)
278 
281 
284 
289 
296 
300 
301  //for timestamp information
307 
308  // Plots for EE
318 
324 
326 
329 
333 
340 
347 
354 
361 
368 
371 
374 
375  // EE-
385 
391 
393 
396 
400 
407 
414 
421 
428 
435 
438 
441 
443 
444  TFile* file;
445 
451 
452  std::vector<int> l1Accepts_;
453  std::vector<std::string> l1Names_;
454 
456 
457 };
TH3F * EEM_FedsTimingTTHistECAL_
TH2F * allFedsTimingLMHistECAL_
TH2F * allOccupancyExclusiveECAL_
virtual void analyze(edm::Event const &, edm::EventSetup const &)
TH3F * allFedsTimingTTHistRPC_
TH3F * HighEnergy_0tracks_occu3D
TH2F * allOccupancyCoarseExclusiveCSC_
TH2F * EEM_OccupancySingleXtal_
std::string intToString(int num)
TH3F * allFedsTimingTTHistCSC_
TH2F * EEP_FedsenergyvsE1Hist_
TH2F * allOccupancyExclusiveHCAL_
TH2F * HighEnergy_bestSeedOccupancy
TH2F * allOccupancyCoarseExclusiveECAL_
TH3F * allFedsTimingPhiEtaHistCSC_
std::map< int, TH2F * > FEDsAndDCCRuntypeVsBxHists_
TH1F * EEM_FedsenergyHighHist_
TH2F * EEM_numxtalsVsHighEnergy_
TH1F * allFedsiPhiProfileHist_
TH1F * EEM_numberofCosmicsHist_
TH3F * EEM_FedsTimingTTHistCSC_
TH1F * EEP_FedsenergyHighHist_
TH2F * allOccupancyExclusiveRPC_
TH1F * allFedsiEtaProfileHist_
EcalFedMap * fedMap_
std::map< int, TH2F * > FEDsAndTimingVsAmpHists_
TH3F * allFedsTimingPhiEtaHistECAL_
edm::InputTag ecalRawDataColl_
std::map< int, TH1F * > FEDsAndFrequencyHists_
TH2F * allOccupancyCoarseExclusiveHCAL_
EcalCosmicsHists(const edm::ParameterSet &)
TH2F * EEP_OccupancyExclusiveHCAL_
TH1F * EEP_energySingleXtalHist_
TH1F * allFedsTimingEbpTopHist_
TH2F * EEM_OccupancyExclusiveDT_
std::map< int, TH2F * > FEDsAndE2vsE1Hists_
TH2F * allFedsTimingLMHistHCAL_
TH2F * allFedsTimingVsFreqHist_
TH1F * EEM_energySingleXtalHist_
TH2F * EEP_numxtalsVsHighEnergy_
TH2F * EEM_FedsTimingVsAmpHist_
TH1F * EEP_FedsSeedEnergyHist_
TH1F * allFedsTimingEbpBottomHist_
TH3F * allFedsTimingPhiEtaHistDT_
TH2F * EEP_OccupancyCoarseECAL_
TH1F * numberofCosmicsWTrackHist_
virtual void endJob()
TH3F * EEP_FedsTimingTTHistRPC_
TH2F * allFedsFreqTimeVsPhiHist_
TH2F * HighEnergy_2GeV_occuCoarse
TH1F * dccRuntypeErrorByFEDHist_
TH3F * allFedsTimingPhiEtaHistRPC_
TH3F * HighEnergy_1tracks_occu3DXtal
TH3F * allFedsTimingPhiEtaHistHCAL_
TH3F * EEM_FedsTimingTTHistDT_
TH2F * EEM_OccupancyExclusiveECAL_
std::map< int, TH1F * > FEDsAndHists_
TH2F * EEM_OccupancyCoarseHCAL_
std::map< int, TH1F * > FEDsAndNumXtalsInClusterHists_
TH3F * EEM_FedsTimingTTHistRPC_
TH3F * HighEnergy_2tracks_occu3D
TH2F * HighEnergy_100GeV_occuCoarse
std::map< int, TH2F * > FEDsAndTimingVsPhiHists_
TH2F * allOccupancyCoarseExclusiveDT_
TH2F * EEP_OccupancyExclusiveCSC_
TH2F * allOccupancyHighEnergy_
edm::InputTag endcapClusterCollection_
TH2F * EEP_OccupancyExclusiveDT_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
TH2F * EEM_OccupancyCoarseExclusiveCSC_
TH2F * HighEnergy_NumXtalFedId
TH3F * allFedsTimingTTHistECAL_
TH1F * allFedsTimingEbmTopHist_
std::vector< bool > determineTriggers(const edm::Event &, const edm::EventSetup &eventSetup)
TH2F * allFedsFreqTimeVsEtaTTHist_
TH2F * EEM_OccupancyExclusiveRPC_
TH2F * EEM_OccupancyHighEnergy_
TH1F * EEP_FedsTimingHistHCAL_
TH2F * allFedsTimingPhiEbmHist_
std::map< int, TH2F * > FEDsAndenergyvsE1Hists_
TH2F * EEM_OccupancyCoarseECAL_
TH2F * EEM_OccupancyCoarseExclusiveRPC_
TH1F * EEP_numberofCosmicsHist_
TH2F * EEP_OccupancyHighEnergyCoarse_
TH1F * EEP_FedsNumXtalsInClusterHist_
TH3F * EEP_FedsTimingTTHistHCAL_
TH3F * HighEnergy_1tracks_occu3D
TH1F * allFedsenergyOnlyHighHist_
TH1F * EEP_triggerExclusiveHist_
TH2F * EEP_OccupancyCoarseExclusiveECAL_
TH1F * EEM_FedsSeedEnergyHist_
std::map< int, TH2F * > FEDsAndOccupancyHists_
TH3F * HighEnergy_100GeV_occu3D
TH3F * EEP_FedsTimingTTHistECAL_
TH2F * HighEnergy_energyNumXtal
TH3F * allFedsTimingTTHistHCAL_
TH1F * HighEnergy_ratioClusters
TH2F * EEM_OccupancyExclusiveCSC_
TH2F * EEP_OccupancyCoarseExclusiveHCAL_
std::string fileName_
TH2F * EEM_OccupancyCoarseRPC_
TH2F * EEP_AllOccupancyCoarse_
TH2F * EEP_OccupancyCoarseCSC_
std::map< int, TH1F * > FEDsAndiEtaProfileHists_
const EcalElectronicsMapping * ecalElectronicsMap_
TrackDetectorAssociator trackAssociator_
TH1F * numberofCosmicsTopBottomHist_
TH2F * EEP_OccupancySingleXtal_
TH2F * EEM_OccupancyCoarseExclusiveECAL_
TH1F * allFedsTimingHistEcalMuon_
TH2F * EEP_OccupancyExclusiveECAL_
std::map< int, TH2F * > FEDsAndTimingVsFreqHists_
TrackAssociatorParameters trackParameters_
TH1F * EEM_triggerExclusiveHist_
TH1F * EEM_FedsTimingHistHCAL_
TH1F * HighEnergy_TracksAngleTopBottom
TH1F * EEP_FedsTimingHistECAL_
TH2F * allFedsTimingPhiEbpHist_
TH2F * allOccupancyExclusiveDT_
TH2F * EEM_OccupancyCoarseExclusiveHCAL_
TH2F * allOccupancySingleXtal_
TH2F * EEP_OccupancyCoarseExclusiveCSC_
std::map< int, TH1F * > FEDsAndiPhiProfileHists_
TH2F * allFedsTimingVsAmpHist_
TH3F * allFedsTimingPhiEtaHist_
TH1F * ratioAssocClustersHist_
edm::InputTag l1GMTReadoutRecTag_
TH2F * EEM_FedsenergyvsE1Hist_
TH2F * EEM_OccupancyCoarseCSC_
TH2F * allOccupancyExclusiveCSC_
TH1F * HighEnergy_numClusHighEn
TH2F * allFedsFreqTimeVsEtaHist_
std::map< int, TH2F * > FEDsAndTimingVsEtaHists_
TH2F * EEP_OccupancyExclusiveRPC_
long long int num
Definition: procUtils.cc:71
std::vector< int > l1Accepts_
TH1F * EEM_FedsTimingHistECAL_
TH2F * allFedsTimingLMHistRPC_
std::map< int, TH2F * > FEDsAndTimingVsModuleHists_
TH1F * dccOrbitErrorByFEDHist_
TH1F * numberofCrossedEcalIdsHist_
TH2F * allFedsTimingLMHistCSC_
TH3F * EEM_FedsTimingTTHistHCAL_
TH2F * allOccupancyCoarseECAL_
TH2F * EEP_OccupancyCoarseHCAL_
TH1F * EEM_FedsenergyOnlyHighHist_
TH1F * EEP_NumXtalsInClusterHist_
TH1F * allFedsNumXtalsInClusterHist_
TH2F * EEM_OccupancyExclusiveHCAL_
TH2F * allOccupancyCoarseExclusiveRPC_
TH2F * EEP_OccupancyCoarseExclusiveRPC_
TH2F * EEM_OccupancyCoarseExclusiveDT_
TH2F * EEP_OccupancyCoarseRPC_
TH3F * HighEnergy_2tracks_occu3DXtal
TH1F * EEM_NumXtalsInClusterHist_
TH2F * allOccupancyHighEnergyCoarse_
TH2F * EEP_OccupancyHighEnergy_
TH3F * allFedsOccupancyHighEnergyHist_
TH2F * EEM_AllOccupancyCoarse_
TH3F * EEP_FedsTimingTTHistCSC_
TH3F * EEP_FedsTimingTTHistDT_
TH2F * EEP_FedsTimingVsAmpHist_
std::vector< std::string > l1Names_
TH1F * EEM_FedsNumXtalsInClusterHist_
TH2F * allFedsFreqTimeVsPhiTTHist_
std::map< int, TH1F * > FEDsAndenergyHists_
edm::InputTag l1GTReadoutRecTag_
edm::InputTag barrelClusterCollection_
std::map< int, TH1F * > FEDsAndTimingHists_
TH2F * EEM_OccupancyHighEnergyCoarse_
std::map< int, TH1F * > FEDsAndE2Hists_
TH1F * allFedsTimingEbmBottomHist_
TH1F * EEP_FedsenergyOnlyHighHist_
Definition: Run.h:33
edm::InputTag ecalRecHitCollectionEB_
TH1F * HighEnergy_numRecoTrackBarrel
TH2F * EEP_OccupancyCoarseExclusiveDT_
TH3F * HighEnergy_0tracks_occu3DXtal
TH2F * allOccupancyCoarseHCAL_
edm::InputTag ecalRecHitCollectionEE_