CMS 3D CMS Logo

GlobalHitsHistogrammer.h
Go to the documentation of this file.
1 #ifndef GlobalHitsHistogrammer_h
2 #define GlobalHitsHistogrammer_h
3 
11 // framework & common header files
21 //#include "Geometry/CommonDetUnit/interface/GeomDet.h"
22 //#include "DataFormats/DetId/interface/DetId.h"
23 
24 // DQM services
28 
29 // tracker info
30 //#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
31 //#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
32 //#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
33 //#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
34 
35 // muon info
36 //#include "Geometry/Records/interface/MuonGeometryRecord.h"
37 //#include "Geometry/CSCGeometry/interface/CSCGeometry.h"
38 //#include "Geometry/DTGeometry/interface/DTGeometry.h"
39 //#include "Geometry/RPCGeometry/interface/RPCGeometry.h"
40 //#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
41 //#include "DataFormats/MuonDetId/interface/RPCDetId.h"
42 //#include "DataFormats/MuonDetId/interface/DTWireId.h"
43 
44 // calorimeter info
45 //#include "Geometry/Records/interface/IdealGeometryRecord.h"
46 //#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
47 //#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
48 //#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
49 //#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
50 //#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
51 
52 // data in edm::event
53 //#include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
54 //#include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
55 //#include "SimDataFormats/Track/interface/SimTrackContainer.h"
56 //#include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
57 //#include "SimDataFormats/CaloHit/interface/PCaloHitContainer.h"
59 
60 // helper files
61 //#include <CLHEP/Vector/LorentzVector.h>
62 #include "CLHEP/Units/GlobalSystemOfUnits.h"
64 
65 #include <cstdlib>
66 #include <iostream>
67 #include <memory>
68 #include <string>
69 #include <vector>
70 
71 #include "TString.h"
72 
74 public:
75  // typedef std::vector<float> FloatVector;
76 
77  explicit GlobalHitsHistogrammer(const edm::ParameterSet &);
78  ~GlobalHitsHistogrammer() override;
79  void analyze(const edm::Event &, const edm::EventSetup &) override;
80  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
81 
82 private:
83  // parameter information
85  int verbosity;
86  int frequency;
87  int vtxunit;
91 
93  bool doOutput;
94 
97 
98  // G4MC info
107 
108  // Electromagnetic info
109  // ECal info
115 
116  // Preshower info
122 
123  // Hadronic info
124  // HCal info
130 
131  // Tracker info
132  // Pixel info
135  int nPxlHits;
143 
144  // Strip info
145  int nSiHits;
155 
156  // Muon info
161 
162  // DT info
166 
167  // CSC info
171 
172  // RPC info
179 
180  // private statistics information
181  unsigned int count;
182 
183 }; // end class declaration
184 
185 #endif
GlobalHitsHistogrammer::nPxlFwdHits
int nPxlFwdHits
Definition: GlobalHitsHistogrammer.h:134
GlobalHitsHistogrammer::meCaloHcalEta
MonitorElement * meCaloHcalEta
Definition: GlobalHitsHistogrammer.h:129
GlobalHitsHistogrammer::GlobalHitSrc_
edm::InputTag GlobalHitSrc_
Definition: GlobalHitsHistogrammer.h:95
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
GlobalHitsHistogrammer::meMuon
MonitorElement * meMuon[2]
Definition: GlobalHitsHistogrammer.h:157
Handle.h
MessageLogger.h
GlobalHitsHistogrammer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: GlobalHitsHistogrammer.cc:500
GlobalHitsHistogrammer::meCaloEcalPhi
MonitorElement * meCaloEcalPhi
Definition: GlobalHitsHistogrammer.h:113
ESHandle.h
GlobalHitsHistogrammer::meMuonEta
MonitorElement * meMuonEta
Definition: GlobalHitsHistogrammer.h:159
GlobalHitsHistogrammer::meGeantVtxX
MonitorElement * meGeantVtxX[2]
Definition: GlobalHitsHistogrammer.h:101
GlobalHitsHistogrammer::nSiFwdHits
int nSiFwdHits
Definition: GlobalHitsHistogrammer.h:147
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< PGlobalSimHit >
GlobalHitsHistogrammer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: GlobalHitsHistogrammer.cc:60
GlobalHitsHistogrammer::meMuonRpcBToF
MonitorElement * meMuonRpcBToF[2]
Definition: GlobalHitsHistogrammer.h:177
GlobalHitsHistogrammer::meTrackerSiFToF
MonitorElement * meTrackerSiFToF
Definition: GlobalHitsHistogrammer.h:153
GlobalHitsHistogrammer::meCaloHcalPhi
MonitorElement * meCaloHcalPhi
Definition: GlobalHitsHistogrammer.h:128
GlobalHitsHistogrammer::nPxlHits
int nPxlHits
Definition: GlobalHitsHistogrammer.h:135
GlobalHitsHistogrammer::nSiBrlHits
int nSiBrlHits
Definition: GlobalHitsHistogrammer.h:146
GlobalHitsHistogrammer::meMuonCscToF
MonitorElement * meMuonCscToF[2]
Definition: GlobalHitsHistogrammer.h:169
GlobalHitsHistogrammer::~GlobalHitsHistogrammer
~GlobalHitsHistogrammer() override
Definition: GlobalHitsHistogrammer.cc:498
DQMStore.h
GlobalHitsHistogrammer::meCaloPreShPhi
MonitorElement * meCaloPreShPhi
Definition: GlobalHitsHistogrammer.h:120
GlobalHitsHistogrammer
Definition: GlobalHitsHistogrammer.h:73
GlobalHitsHistogrammer::nMuonCscHits
int nMuonCscHits
Definition: GlobalHitsHistogrammer.h:168
GlobalHitsHistogrammer::outputfile
std::string outputfile
Definition: GlobalHitsHistogrammer.h:92
GlobalHitsHistogrammer::GlobalHitsHistogrammer
GlobalHitsHistogrammer(const edm::ParameterSet &)
Definition: GlobalHitsHistogrammer.cc:11
GlobalHitsHistogrammer::meCaloEcalE
MonitorElement * meCaloEcalE[2]
Definition: GlobalHitsHistogrammer.h:111
GlobalHitsHistogrammer::count
unsigned int count
Definition: GlobalHitsHistogrammer.h:181
GlobalHitsHistogrammer::meTrackerSiBToF
MonitorElement * meTrackerSiBToF
Definition: GlobalHitsHistogrammer.h:151
MakerMacros.h
GlobalHitsHistogrammer::meMuonDtToF
MonitorElement * meMuonDtToF[2]
Definition: GlobalHitsHistogrammer.h:164
GlobalHitsHistogrammer::meMuonRpcFZ
MonitorElement * meMuonRpcFZ
Definition: GlobalHitsHistogrammer.h:176
GlobalHitsHistogrammer::nMuonDtHits
int nMuonDtHits
Definition: GlobalHitsHistogrammer.h:163
GlobalHitsHistogrammer::meCaloPreShEta
MonitorElement * meCaloPreShEta
Definition: GlobalHitsHistogrammer.h:121
Service.h
GlobalHitsHistogrammer::meCaloPreShE
MonitorElement * meCaloPreShE[2]
Definition: GlobalHitsHistogrammer.h:118
Provenance.h
GlobalHitsHistogrammer::meTrackerSiFZ
MonitorElement * meTrackerSiFZ
Definition: GlobalHitsHistogrammer.h:154
GlobalHitsHistogrammer::meTrackerPxFZ
MonitorElement * meTrackerPxFZ
Definition: GlobalHitsHistogrammer.h:142
GlobalHitsHistogrammer::meTrackerSi
MonitorElement * meTrackerSi[2]
Definition: GlobalHitsHistogrammer.h:148
DQMEDAnalyzer.h
GlobalHitsHistogrammer::meCaloPreSh
MonitorElement * meCaloPreSh[2]
Definition: GlobalHitsHistogrammer.h:117
GlobalHitsHistogrammer::meTrackerPxPhi
MonitorElement * meTrackerPxPhi
Definition: GlobalHitsHistogrammer.h:137
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
GlobalHitsHistogrammer::nSiHits
int nSiHits
Definition: GlobalHitsHistogrammer.h:145
GlobalHitsHistogrammer::nMuonRpcFwdHits
int nMuonRpcFwdHits
Definition: GlobalHitsHistogrammer.h:174
edm::ParameterSet
Definition: ParameterSet.h:47
GlobalHitsHistogrammer::meTrackerSiEta
MonitorElement * meTrackerSiEta
Definition: GlobalHitsHistogrammer.h:150
GlobalHitsHistogrammer::meTrackerSiBR
MonitorElement * meTrackerSiBR
Definition: GlobalHitsHistogrammer.h:152
Event.h
GlobalHitsHistogrammer::meGeantVtxY
MonitorElement * meGeantVtxY[2]
Definition: GlobalHitsHistogrammer.h:102
GlobalHitsHistogrammer::meTrackerPxFToF
MonitorElement * meTrackerPxFToF
Definition: GlobalHitsHistogrammer.h:141
GlobalHitsHistogrammer::meCaloEcalEta
MonitorElement * meCaloEcalEta
Definition: GlobalHitsHistogrammer.h:114
GlobalHitsHistogrammer::meMCG4Trk
MonitorElement * meMCG4Trk[2]
Definition: GlobalHitsHistogrammer.h:104
GlobalHitsHistogrammer::meCaloEcal
MonitorElement * meCaloEcal[2]
Definition: GlobalHitsHistogrammer.h:110
LorentzVector.h
GlobalHitsHistogrammer::nMuonHits
int nMuonHits
Definition: GlobalHitsHistogrammer.h:160
GlobalHitsHistogrammer::meTrackerPxEta
MonitorElement * meTrackerPxEta
Definition: GlobalHitsHistogrammer.h:138
GlobalHitsHistogrammer::meMuonPhi
MonitorElement * meMuonPhi
Definition: GlobalHitsHistogrammer.h:158
GlobalHitsHistogrammer::meMCRGP
MonitorElement * meMCRGP[2]
Definition: GlobalHitsHistogrammer.h:99
GlobalHitsHistogrammer::meMuonDtR
MonitorElement * meMuonDtR
Definition: GlobalHitsHistogrammer.h:165
GlobalHitsHistogrammer::meGeantTrkPt
MonitorElement * meGeantTrkPt
Definition: GlobalHitsHistogrammer.h:105
edm::EventSetup
Definition: EventSetup.h:58
GlobalHitsHistogrammer::meCaloPreShToF
MonitorElement * meCaloPreShToF[2]
Definition: GlobalHitsHistogrammer.h:119
GlobalHitsHistogrammer::getAllProvenances
bool getAllProvenances
Definition: GlobalHitsHistogrammer.h:89
GlobalHitsHistogrammer::label
std::string label
Definition: GlobalHitsHistogrammer.h:88
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalHitsHistogrammer::meMuonRpcBR
MonitorElement * meMuonRpcBR
Definition: GlobalHitsHistogrammer.h:178
GlobalHitsHistogrammer::meTrackerPxBToF
MonitorElement * meTrackerPxBToF
Definition: GlobalHitsHistogrammer.h:139
GlobalHitsHistogrammer::meTrackerSiPhi
MonitorElement * meTrackerSiPhi
Definition: GlobalHitsHistogrammer.h:149
GlobalHitsHistogrammer::printProvenanceInfo
bool printProvenanceInfo
Definition: GlobalHitsHistogrammer.h:90
GlobalHitsHistogrammer::meGeantTrkE
MonitorElement * meGeantTrkE
Definition: GlobalHitsHistogrammer.h:106
GlobalHitsHistogrammer::doOutput
bool doOutput
Definition: GlobalHitsHistogrammer.h:93
Frameworkfwd.h
GlobalHitsHistogrammer::frequency
int frequency
Definition: GlobalHitsHistogrammer.h:86
GlobalHitsHistogrammer::meCaloHcalE
MonitorElement * meCaloHcalE[2]
Definition: GlobalHitsHistogrammer.h:126
EventSetup.h
GlobalHitsHistogrammer::nMuonRpcBrlHits
int nMuonRpcBrlHits
Definition: GlobalHitsHistogrammer.h:173
GlobalHitsHistogrammer::verbosity
int verbosity
Definition: GlobalHitsHistogrammer.h:85
GlobalHitsHistogrammer::meCaloEcalToF
MonitorElement * meCaloEcalToF[2]
Definition: GlobalHitsHistogrammer.h:112
dqm::implementation::IBooker
Definition: DQMStore.h:43
GlobalHitsHistogrammer::GlobalHitSrc_Token_
edm::EDGetTokenT< PGlobalSimHit > GlobalHitSrc_Token_
Definition: GlobalHitsHistogrammer.h:96
GlobalHitsHistogrammer::meMuonRpcFToF
MonitorElement * meMuonRpcFToF[2]
Definition: GlobalHitsHistogrammer.h:175
GlobalHitsHistogrammer::meMuonCscZ
MonitorElement * meMuonCscZ
Definition: GlobalHitsHistogrammer.h:170
GlobalHitsHistogrammer::fName
std::string fName
Definition: GlobalHitsHistogrammer.h:84
ParameterSet.h
GlobalHitsHistogrammer::meTrackerPx
MonitorElement * meTrackerPx[2]
Definition: GlobalHitsHistogrammer.h:136
GlobalHitsHistogrammer::meCaloHcalToF
MonitorElement * meCaloHcalToF[2]
Definition: GlobalHitsHistogrammer.h:127
GlobalHitsHistogrammer::nPxlBrlHits
int nPxlBrlHits
Definition: GlobalHitsHistogrammer.h:133
GlobalHitsHistogrammer::meTrackerPxBR
MonitorElement * meTrackerPxBR
Definition: GlobalHitsHistogrammer.h:140
edm::Event
Definition: Event.h:73
GlobalHitsHistogrammer::vtxunit
int vtxunit
Definition: GlobalHitsHistogrammer.h:87
GlobalHitsHistogrammer::meMCG4Vtx
MonitorElement * meMCG4Vtx[2]
Definition: GlobalHitsHistogrammer.h:100
edm::InputTag
Definition: InputTag.h:15
GlobalHitsHistogrammer::meGeantVtxZ
MonitorElement * meGeantVtxZ[2]
Definition: GlobalHitsHistogrammer.h:103
PValidationFormats.h
GlobalHitsHistogrammer::meCaloHcal
MonitorElement * meCaloHcal[2]
Definition: GlobalHitsHistogrammer.h:125