CMS 3D CMS Logo

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 //
17 //
18 
19 // system include files
20 #include <memory>
21 #include <vector>
22 #include <map>
23 #include <set>
24 
25 // user include files
32 
42 
44 
46 
47 #include "TFile.h"
48 #include "TH1F.h"
49 #include "TH2F.h"
50 #include "TH3F.h"
51 #include "TGraph.h"
52 #include "TNtuple.h"
53 
54 // *** for TrackAssociation
62 // ***
63 
64 //
65 // class declaration
66 //
67 
69 public:
70  explicit EcalCosmicsHists(const edm::ParameterSet&);
71  ~EcalCosmicsHists() override;
72 
73 private:
74  void beginRun(edm::Run const&, edm::EventSetup const&) override;
75  void analyze(edm::Event const&, edm::EventSetup const&) override;
76  void endJob() override;
78  void initHists(int);
79  std::vector<bool> determineTriggers(const edm::Event&, const edm::EventSetup& eventSetup);
80 
81  // ----------member data ---------------------------
82 
90 
91  int runNum_;
98 
99  double* ttEtaBins;
100  double* modEtaBins;
103 
106 
107  std::map<int, TH1F*> FEDsAndHists_;
108  std::map<int, TH1F*> FEDsAndE2Hists_;
109  std::map<int, TH1F*> FEDsAndenergyHists_;
110  std::map<int, TH1F*> FEDsAndTimingHists_;
111  std::map<int, TH1F*> FEDsAndFrequencyHists_;
112  std::map<int, TH1F*> FEDsAndiPhiProfileHists_;
113  std::map<int, TH1F*> FEDsAndNumXtalsInClusterHists_;
114  std::map<int, TH1F*> FEDsAndiEtaProfileHists_;
115  std::map<int, TH2F*> FEDsAndTimingVsFreqHists_;
116  std::map<int, TH2F*> FEDsAndTimingVsAmpHists_;
117  std::map<int, TH2F*> FEDsAndE2vsE1Hists_;
118  std::map<int, TH2F*> FEDsAndenergyvsE1Hists_;
119  std::map<int, TH2F*> FEDsAndOccupancyHists_;
120  std::map<int, TH2F*> FEDsAndTimingVsPhiHists_;
121  std::map<int, TH2F*> FEDsAndTimingVsEtaHists_;
122  std::map<int, TH2F*> FEDsAndTimingVsModuleHists_;
123  std::map<int, TH2F*> FEDsAndDCCRuntypeVsBxHists_;
124 
139 
141 
142  //TH1F* numberofSCCosmicsHist_;//SC Num cosmics
143  TH1F* numberofBCinSC_; //SC Num cosmics
144  TH2F* numberofBCinSCphi_; //SC
145 
148 
151 
154  TH2F* allOccupancy_; //New file to do eta-phi occupancy
155  TH2F* TrueOccupancy_; //New file to do eta-phi occupancy
156  TH2F* allOccupancyCoarse_; //New file to do eta-phi occupancy
157  TH2F* TrueOccupancyCoarse_; //New file to do eta-phi occupancy
158 
159  // single xtal clusters
162 
172 
179 
188 
197 
206 
215 
224 
226 
229 
233 
235  TH1F* deltaRHist_;
243 
244  // DCC Event type (runtype) vs. bx
251 
252  // track association
257 
258  // top & bottom
261 
262  // hcal energy
267 
268  // high energy analysis (inherited from serena)
274 
277 
280 
285 
292 
296 
297  //for timestamp information
303 
304  // Plots for EE
314 
320 
322 
325 
329 
336 
343 
350 
357 
364 
367 
370 
371  // EE-
381 
387 
389 
392 
396 
403 
410 
417 
424 
431 
434 
437 
439 
440  TFile* file;
441 
447 
448  std::vector<int> l1Accepts_;
449  std::vector<std::string> l1Names_;
450 
452 };
TH3F * EEM_FedsTimingTTHistECAL_
TH2F * allFedsTimingLMHistECAL_
TH2F * allOccupancyExclusiveECAL_
TH3F * allFedsTimingTTHistRPC_
TH3F * HighEnergy_0tracks_occu3D
TH2F * allOccupancyCoarseExclusiveCSC_
TH2F * EEM_OccupancySingleXtal_
std::string intToString(int num)
std::map< int, TH1F * > FEDsAndNumXtalsInClusterHists_
TH3F * allFedsTimingTTHistCSC_
std::map< int, TH2F * > FEDsAndTimingVsAmpHists_
TH2F * EEP_FedsenergyvsE1Hist_
TH2F * allOccupancyExclusiveHCAL_
TH2F * HighEnergy_bestSeedOccupancy
TH2F * allOccupancyCoarseExclusiveECAL_
TH3F * allFedsTimingPhiEtaHistCSC_
std::map< int, TH2F * > FEDsAndE2vsE1Hists_
TH1F * EEM_FedsenergyHighHist_
TH2F * EEM_numxtalsVsHighEnergy_
TH1F * allFedsiPhiProfileHist_
TH1F * EEM_numberofCosmicsHist_
TH3F * EEM_FedsTimingTTHistCSC_
TH1F * EEP_FedsenergyHighHist_
TH2F * allOccupancyExclusiveRPC_
TH1F * allFedsiEtaProfileHist_
EcalFedMap * fedMap_
TH3F * allFedsTimingPhiEtaHistECAL_
edm::InputTag ecalRawDataColl_
TH2F * allOccupancyCoarseExclusiveHCAL_
EcalCosmicsHists(const edm::ParameterSet &)
TH2F * EEP_OccupancyExclusiveHCAL_
TH1F * EEP_energySingleXtalHist_
TH1F * allFedsTimingEbpTopHist_
TH2F * EEM_OccupancyExclusiveDT_
void endJob() override
std::map< int, TH2F * > FEDsAndTimingVsPhiHists_
TH2F * allFedsTimingLMHistHCAL_
TH2F * allFedsTimingVsFreqHist_
TH1F * EEM_energySingleXtalHist_
TH2F * EEP_numxtalsVsHighEnergy_
TH2F * EEM_FedsTimingVsAmpHist_
TH1F * EEP_FedsSeedEnergyHist_
TH1F * allFedsTimingEbpBottomHist_
std::map< int, TH1F * > FEDsAndE2Hists_
TH3F * allFedsTimingPhiEtaHistDT_
TH2F * EEP_OccupancyCoarseECAL_
TH1F * numberofCosmicsWTrackHist_
TH3F * EEP_FedsTimingTTHistRPC_
TH2F * allFedsFreqTimeVsPhiHist_
TH2F * HighEnergy_2GeV_occuCoarse
TH1F * dccRuntypeErrorByFEDHist_
std::map< int, TH2F * > FEDsAndTimingVsModuleHists_
TH3F * allFedsTimingPhiEtaHistRPC_
TH3F * HighEnergy_1tracks_occu3DXtal
void analyze(edm::Event const &, edm::EventSetup const &) override
TH3F * allFedsTimingPhiEtaHistHCAL_
TH3F * EEM_FedsTimingTTHistDT_
~EcalCosmicsHists() override
TH2F * EEM_OccupancyExclusiveECAL_
TH2F * EEM_OccupancyCoarseHCAL_
TH3F * EEM_FedsTimingTTHistRPC_
TH3F * HighEnergy_2tracks_occu3D
TH2F * HighEnergy_100GeV_occuCoarse
TH2F * allOccupancyCoarseExclusiveDT_
TH2F * EEP_OccupancyExclusiveCSC_
TH2F * allOccupancyHighEnergy_
edm::InputTag endcapClusterCollection_
TH2F * EEP_OccupancyExclusiveDT_
std::map< int, TH2F * > FEDsAndDCCRuntypeVsBxHists_
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_
std::map< int, TH2F * > FEDsAndTimingVsEtaHists_
TH1F * EEP_FedsTimingHistHCAL_
TH2F * allFedsTimingPhiEbmHist_
TH2F * EEM_OccupancyCoarseECAL_
std::map< int, TH1F * > FEDsAndiPhiProfileHists_
TH2F * EEM_OccupancyCoarseExclusiveRPC_
std::map< int, TH1F * > FEDsAndFrequencyHists_
TH1F * EEP_numberofCosmicsHist_
TH2F * EEP_OccupancyHighEnergyCoarse_
TH1F * EEP_FedsNumXtalsInClusterHist_
TH3F * EEP_FedsTimingTTHistHCAL_
TH3F * HighEnergy_1tracks_occu3D
TH1F * allFedsenergyOnlyHighHist_
std::map< int, TH1F * > FEDsAndenergyHists_
TH1F * EEP_triggerExclusiveHist_
TH2F * EEP_OccupancyCoarseExclusiveECAL_
TH1F * EEM_FedsSeedEnergyHist_
TH3F * HighEnergy_100GeV_occu3D
std::map< int, TH2F * > FEDsAndenergyvsE1Hists_
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_
const EcalElectronicsMapping * ecalElectronicsMap_
TrackDetectorAssociator trackAssociator_
TH1F * numberofCosmicsTopBottomHist_
TH2F * EEP_OccupancySingleXtal_
TH2F * EEM_OccupancyCoarseExclusiveECAL_
TH1F * allFedsTimingHistEcalMuon_
TH2F * EEP_OccupancyExclusiveECAL_
TrackAssociatorParameters trackParameters_
TH1F * EEM_triggerExclusiveHist_
TH1F * EEM_FedsTimingHistHCAL_
TH1F * HighEnergy_TracksAngleTopBottom
std::map< int, TH2F * > FEDsAndOccupancyHists_
TH1F * EEP_FedsTimingHistECAL_
TH2F * allFedsTimingPhiEbpHist_
TH2F * allOccupancyExclusiveDT_
TH2F * EEM_OccupancyCoarseExclusiveHCAL_
TH2F * allOccupancySingleXtal_
TH2F * EEP_OccupancyCoarseExclusiveCSC_
TH2F * allFedsTimingVsAmpHist_
TH3F * allFedsTimingPhiEtaHist_
TH1F * ratioAssocClustersHist_
edm::InputTag l1GMTReadoutRecTag_
TH2F * EEM_FedsenergyvsE1Hist_
TH2F * EEM_OccupancyCoarseCSC_
TH2F * allOccupancyExclusiveCSC_
TH1F * HighEnergy_numClusHighEn
TH2F * allFedsFreqTimeVsEtaHist_
TH2F * EEP_OccupancyExclusiveRPC_
void beginRun(edm::Run const &, edm::EventSetup const &) override
std::vector< int > l1Accepts_
TH1F * EEM_FedsTimingHistECAL_
TH2F * allFedsTimingLMHistRPC_
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_
std::map< int, TH1F * > FEDsAndiEtaProfileHists_
TH2F * EEM_OccupancyCoarseExclusiveDT_
std::map< int, TH1F * > FEDsAndTimingHists_
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_
edm::InputTag l1GTReadoutRecTag_
edm::InputTag barrelClusterCollection_
TH2F * EEM_OccupancyHighEnergyCoarse_
TH1F * allFedsTimingEbmBottomHist_
TH1F * EEP_FedsenergyOnlyHighHist_
std::map< int, TH1F * > FEDsAndHists_
std::map< int, TH2F * > FEDsAndTimingVsFreqHists_
Definition: Run.h:45
edm::InputTag ecalRecHitCollectionEB_
TH1F * HighEnergy_numRecoTrackBarrel
TH2F * EEP_OccupancyCoarseExclusiveDT_
TH3F * HighEnergy_0tracks_occu3DXtal
TH2F * allOccupancyCoarseHCAL_
edm::InputTag ecalRecHitCollectionEE_