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 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include <vector>
23 #include <map>
24 #include <set>
25 
26 // user include files
33 
43 
45 
47 
48 #include "TFile.h"
49 #include "TH1F.h"
50 #include "TH2F.h"
51 #include "TH3F.h"
52 #include "TGraph.h"
53 #include "TNtuple.h"
54 
55 
56 // *** for TrackAssociation
64 // ***
65 
66 //
67 // class declaration
68 //
69 
71  public:
72  explicit EcalCosmicsHists(const edm::ParameterSet&);
74 
75 
76  private:
77  virtual void beginRun(edm::Run const &, edm::EventSetup const &) ;
78  virtual void analyze(edm::Event const &, edm::EventSetup const &);
79  virtual void endJob() ;
81  void initHists(int);
82  std::vector<bool> determineTriggers(const edm::Event&, const edm::EventSetup& eventSetup);
83 
84  // ----------member data ---------------------------
85 
93 
94  int runNum_;
101 
102  double *ttEtaBins;
103  double *modEtaBins;
106 
109 
110  std::map<int,TH1F*> FEDsAndHists_;
111  std::map<int,TH1F*> FEDsAndE2Hists_;
112  std::map<int,TH1F*> FEDsAndenergyHists_;
113  std::map<int,TH1F*> FEDsAndTimingHists_;
114  std::map<int,TH1F*> FEDsAndFrequencyHists_;
115  std::map<int,TH1F*> FEDsAndiPhiProfileHists_;
116  std::map<int,TH1F*> FEDsAndNumXtalsInClusterHists_;
117  std::map<int,TH1F*> FEDsAndiEtaProfileHists_;
118  std::map<int,TH2F*> FEDsAndTimingVsFreqHists_;
119  std::map<int,TH2F*> FEDsAndTimingVsAmpHists_;
120  std::map<int,TH2F*> FEDsAndE2vsE1Hists_;
121  std::map<int,TH2F*> FEDsAndenergyvsE1Hists_;
122  std::map<int,TH2F*> FEDsAndOccupancyHists_;
123  std::map<int,TH2F*> FEDsAndTimingVsPhiHists_;
124  std::map<int,TH2F*> FEDsAndTimingVsEtaHists_;
125  std::map<int,TH2F*> FEDsAndTimingVsModuleHists_;
126  std::map<int,TH2F*> FEDsAndDCCRuntypeVsBxHists_;
127 
142 
144 
145  //TH1F* numberofSCCosmicsHist_;//SC Num cosmics
146  TH1F* numberofBCinSC_;//SC Num cosmics
148 
151 
154 
157  TH2F* allOccupancy_; //New file to do eta-phi occupancy
158  TH2F* TrueOccupancy_; //New file to do eta-phi occupancy
159  TH2F* allOccupancyCoarse_; //New file to do eta-phi occupancy
160  TH2F* TrueOccupancyCoarse_; //New file to do eta-phi occupancy
161 
162  // single xtal clusters
165 
175 
182 
191 
200 
209 
218 
227 
229 
232 
236 
238  TH1F* deltaRHist_;
246 
247  // DCC Event type (runtype) vs. bx
254 
255  // track association
260 
261  // top & bottom
264 
265  // hcal energy
270 
271  // high energy analysis (inherited from serena)
277 
280 
283 
288 
295 
299 
300  //for timestamp information
306 
307  // Plots for EE
317 
323 
325 
328 
332 
339 
346 
353 
360 
367 
370 
373 
374  // EE-
384 
390 
392 
395 
399 
406 
413 
420 
427 
434 
437 
440 
442 
443  TFile* file;
444 
450 
451  std::vector<int> l1Accepts_;
452  std::vector<std::string> l1Names_;
453 
455 
456 };
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_
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:41
edm::InputTag ecalRecHitCollectionEB_
TH1F * HighEnergy_numRecoTrackBarrel
TH2F * EEP_OccupancyCoarseExclusiveDT_
TH3F * HighEnergy_0tracks_occu3DXtal
TH2F * allOccupancyCoarseHCAL_
edm::InputTag ecalRecHitCollectionEE_