CMS 3D CMS Logo

MuonSimHitsValidAnalyzer.h
Go to the documentation of this file.
1 #ifndef Validation_MuonHits_MuonSimHitsValidAnalyzer_h
2 #define Validation_MuonHits_MuonSimHitsValidAnalyzer_h
3 
16 
19 
26 
32 
33 #include <iostream>
34 #include <cstdlib>
35 #include <string>
36 #include <memory>
37 #include <vector>
38 
39 #include "TString.h"
40 
41 class TH1F;
42 class TFile;
43 
44 namespace edm {
45  class ParameterSet;
46  class Event;
47  class EventSetup;
48 } // namespace edm
49 
51 public:
52  typedef std::vector<float> FloatVector;
53  typedef std::vector<int> IntegerVector;
54  typedef std::vector<long int> LongIntegerVector;
55  typedef std::vector<unsigned int> UnsigIntegerVector;
56 
58  ~MuonSimHitsValidAnalyzer() override;
59  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
60  void analyze(const edm::Event&, const edm::EventSetup&) override;
61 
62 private:
63  void fillDT(const edm::Event&, const edm::EventSetup&);
64 
65 private:
68  int verbosity;
72 
75 
76  unsigned int iden;
79  Int_t path, pathchamber;
81  Int_t touche1, touche4;
82  Float_t pow6;
83  Float_t mom1, mom4, mome1, mome4;
84  Float_t costeta, radius, sinteta;
87 
90 
91  // Monitor elements
92  // DT
126 
128  unsigned int count;
129 
130 };
131 
133 
134 static const int dMuon = 2;
135 
136 static const int sdMuonDT = 1;
137 static const int sdMuonCSC = 2;
138 static const int sdMuonRPC = 3;
139 
140 #endif
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
MuonSimHitsValidAnalyzer::meGlobalXvsZWm1
MonitorElement * meGlobalXvsZWm1
Definition: MuonSimHitsValidAnalyzer.h:105
Handle.h
MuonSimHitsValidAnalyzer::globposeta
Float_t globposeta
Definition: MuonSimHitsValidAnalyzer.h:86
MuonSimHitsValidAnalyzer::nummu_DT
Int_t nummu_DT
Definition: MuonSimHitsValidAnalyzer.h:80
MessageLogger.h
MuonSimHitsValidAnalyzer::globposphi
Float_t globposphi
Definition: MuonSimHitsValidAnalyzer.h:86
MuonSimHitsValidAnalyzer::meLocalXvsY
MonitorElement * meLocalXvsY
Definition: MuonSimHitsValidAnalyzer.h:101
ESHandle.h
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< edm::PSimHitContainer >
edm
HLT enums.
Definition: AlignableModifier.h:19
MuonSimHitsValidAnalyzer::MuonSimHitsValidAnalyzer
MuonSimHitsValidAnalyzer(const edm::ParameterSet &)
Definition: MuonSimHitsValidAnalyzer.cc:14
PSimHitContainer.h
MuonSimHitsValidAnalyzer::meSectorOccup
MonitorElement * meSectorOccup
Definition: MuonSimHitsValidAnalyzer.h:116
MuonSimHitsValidAnalyzer::meMuDTHits
MonitorElement * meMuDTHits
Definition: MuonSimHitsValidAnalyzer.h:94
DQMStore.h
MuonSimHitsValidAnalyzer::label
std::string label
Definition: MuonSimHitsValidAnalyzer.h:69
MuonSimHitsValidAnalyzer::meGlobalXvsZWp2
MonitorElement * meGlobalXvsZWp2
Definition: MuonSimHitsValidAnalyzer.h:108
MuonSimHitsValidAnalyzer::meSuperLOccup
MonitorElement * meSuperLOccup
Definition: MuonSimHitsValidAnalyzer.h:117
MuonSimHitsValidAnalyzer::meAllDTHits
MonitorElement * meAllDTHits
Definition: MuonSimHitsValidAnalyzer.h:93
MuonSimHitsValidAnalyzer::iden
unsigned int iden
Definition: MuonSimHitsValidAnalyzer.h:76
MuonSimHitsValidAnalyzer::pathchamber
Int_t pathchamber
Definition: MuonSimHitsValidAnalyzer.h:79
MuonSimHitsValidAnalyzer::nummu_RPC
Int_t nummu_RPC
Definition: MuonSimHitsValidAnalyzer.h:80
MuonSimHitsValidAnalyzer::meHitRadius
MonitorElement * meHitRadius
Definition: MuonSimHitsValidAnalyzer.h:122
MuonSimHitsValidAnalyzer::roll
Int_t roll
Definition: MuonSimHitsValidAnalyzer.h:78
MuonSimHitsValidAnalyzer::region
Int_t region
Definition: MuonSimHitsValidAnalyzer.h:78
MuonSimHitsValidAnalyzer::layer
Int_t layer
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::meStationOccup
MonitorElement * meStationOccup
Definition: MuonSimHitsValidAnalyzer.h:115
sdMuonDT
static const int sdMuonDT
Definition: MuonSimHitsValidAnalyzer.h:136
MuonSimHitsValidAnalyzer::verbosity
int verbosity
Definition: MuonSimHitsValidAnalyzer.h:68
MuonSimHitsValidAnalyzer::DTHitsToken_
edm::EDGetTokenT< edm::PSimHitContainer > DTHitsToken_
Input tags.
Definition: MuonSimHitsValidAnalyzer.h:89
MuonSimHitsValidAnalyzer::station
Int_t station
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::wire
Int_t wire
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::FloatVector
std::vector< float > FloatVector
Definition: MuonSimHitsValidAnalyzer.h:52
MakerMacros.h
MuonSimHitsValidAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MuonSimHitsValidAnalyzer.cc:254
MuonSimHitsValidAnalyzer::meWireOccup
MonitorElement * meWireOccup
Definition: MuonSimHitsValidAnalyzer.h:119
MuonSimHitsValidAnalyzer::meMomentumMB1
MonitorElement * meMomentumMB1
Definition: MuonSimHitsValidAnalyzer.h:97
sdMuonRPC
static const int sdMuonRPC
Definition: MuonSimHitsValidAnalyzer.h:138
MuonSimHitsValidAnalyzer::mome1
Float_t mome1
Definition: MuonSimHitsValidAnalyzer.h:83
Service.h
MuonSimHitsValidAnalyzer::touche4
Int_t touche4
Definition: MuonSimHitsValidAnalyzer.h:81
Provenance.h
MuonSimHitsValidAnalyzer::UnsigIntegerVector
std::vector< unsigned int > UnsigIntegerVector
Definition: MuonSimHitsValidAnalyzer.h:55
MuonSimHitsValidAnalyzer::meGlobalXvsYW0
MonitorElement * meGlobalXvsYW0
Definition: MuonSimHitsValidAnalyzer.h:111
MuonSimHitsValidAnalyzer::meWheelOccup
MonitorElement * meWheelOccup
Definition: MuonSimHitsValidAnalyzer.h:114
MuonSimHitsValidAnalyzer::radius
Float_t radius
Definition: MuonSimHitsValidAnalyzer.h:84
Event
MuonSimHitsValidAnalyzer::meGlobalXvsYWp1
MonitorElement * meGlobalXvsYWp1
Definition: MuonSimHitsValidAnalyzer.h:112
MuonSimHitsValidAnalyzer::touche1
Int_t touche1
Definition: MuonSimHitsValidAnalyzer.h:81
MuonSimHitsValidAnalyzer::meLossMomIron
MonitorElement * meLossMomIron
Definition: MuonSimHitsValidAnalyzer.h:99
MuonSimHitsValidAnalyzer::count
unsigned int count
private statistics information
Definition: MuonSimHitsValidAnalyzer.h:128
MuonSimHitsValidAnalyzer::mom1
Float_t mom1
Definition: MuonSimHitsValidAnalyzer.h:83
MuonSimHitsValidAnalyzer::meGlobalXvsY
MonitorElement * meGlobalXvsY
Definition: MuonSimHitsValidAnalyzer.h:103
MuonSimHitsValidAnalyzer::meToF
MonitorElement * meToF
Definition: MuonSimHitsValidAnalyzer.h:95
DQMEDAnalyzer.h
MuonSimHitsValidAnalyzer::nRawGenPart
int nRawGenPart
G4MC info.
Definition: MuonSimHitsValidAnalyzer.h:74
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonSimHitsValidAnalyzer::meChamberOccup
MonitorElement * meChamberOccup
Definition: MuonSimHitsValidAnalyzer.h:121
DTGeometry.h
MuonSimHitsValidAnalyzer::wheel
Int_t wheel
Definition: MuonSimHitsValidAnalyzer.h:77
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
sdMuonCSC
static const int sdMuonCSC
Definition: MuonSimHitsValidAnalyzer.h:137
MuonSimHitsValidAnalyzer::meGlobalXvsYWm1
MonitorElement * meGlobalXvsYWm1
Definition: MuonSimHitsValidAnalyzer.h:110
edm::ParameterSet
Definition: ParameterSet.h:36
MuonSimHitsValidAnalyzer::meCosTheta
MonitorElement * meCosTheta
Definition: MuonSimHitsValidAnalyzer.h:123
MuonSimHitsValidAnalyzer::pow6
Float_t pow6
Definition: MuonSimHitsValidAnalyzer.h:82
Event.h
ParameterSet
Definition: Functions.h:16
MuonSimHitsValidAnalyzer::fName
std::string fName
parameter information
Definition: MuonSimHitsValidAnalyzer.h:67
MuonSimHitsValidAnalyzer::IntegerVector
std::vector< int > IntegerVector
Definition: MuonSimHitsValidAnalyzer.h:53
MuonSimHitsValidAnalyzer::mome4
Float_t mome4
Definition: MuonSimHitsValidAnalyzer.h:83
MuonSimHitsValidAnalyzer::meLayerOccup
MonitorElement * meLayerOccup
Definition: MuonSimHitsValidAnalyzer.h:118
MuonSimHitsValidAnalyzer::nummu_CSC
Int_t nummu_CSC
Definition: MuonSimHitsValidAnalyzer.h:80
MuonSimHitsValidAnalyzer::meGlobalXvsZWp1
MonitorElement * meGlobalXvsZWp1
Definition: MuonSimHitsValidAnalyzer.h:107
edm::EventSetup
Definition: EventSetup.h:57
MuonSimHitsValidAnalyzer::meGlobalXvsZW0
MonitorElement * meGlobalXvsZW0
Definition: MuonSimHitsValidAnalyzer.h:106
MuonSimHitsValidAnalyzer::meGlobalXvsZWm2
MonitorElement * meGlobalXvsZWm2
Definition: MuonSimHitsValidAnalyzer.h:104
MuonSimHitsValidAnalyzer::meGlobalEta
MonitorElement * meGlobalEta
Definition: MuonSimHitsValidAnalyzer.h:124
MuonSubdetId.h
MuonSimHitsValidAnalyzer::globposy
Float_t globposy
Definition: MuonSimHitsValidAnalyzer.h:85
MuonSimHitsValidAnalyzer::meEnergyLoss
MonitorElement * meEnergyLoss
Definition: MuonSimHitsValidAnalyzer.h:96
MuonSimHitsValidAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MuonSimHitsValidAnalyzer.cc:75
MuonSimHitsValidAnalyzer::globposx
Float_t globposx
Definition: MuonSimHitsValidAnalyzer.h:85
MuonSimHitsValidAnalyzer::costeta
Float_t costeta
Definition: MuonSimHitsValidAnalyzer.h:84
MuonSimHitsValidAnalyzer::superlayer
Int_t superlayer
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::sinteta
Float_t sinteta
Definition: MuonSimHitsValidAnalyzer.h:84
MuonSimHitsValidAnalyzer::path
Int_t path
Definition: MuonSimHitsValidAnalyzer.h:79
Frameworkfwd.h
MuonSimHitsValidAnalyzer::globposz
Float_t globposz
Definition: MuonSimHitsValidAnalyzer.h:85
MuonSimHitsValidAnalyzer::meMomentumMB4
MonitorElement * meMomentumMB4
Definition: MuonSimHitsValidAnalyzer.h:98
MuonSimHitsValidAnalyzer::LongIntegerVector
std::vector< long int > LongIntegerVector
Definition: MuonSimHitsValidAnalyzer.h:54
EventSetup.h
MuonSimHitsValidAnalyzer::meGlobalXvsZ
MonitorElement * meGlobalXvsZ
Definition: MuonSimHitsValidAnalyzer.h:102
MuonSimHitsValidAnalyzer::meGlobalXvsYWm2
MonitorElement * meGlobalXvsYWm2
Definition: MuonSimHitsValidAnalyzer.h:109
MuonSimHitsValidAnalyzer::ring
Int_t ring
Definition: MuonSimHitsValidAnalyzer.h:78
MuonSimHitsValidAnalyzer::touch4
Int_t touch4
Definition: MuonSimHitsValidAnalyzer.h:80
dqm::implementation::IBooker
Definition: DQMStore.h:43
BoundPlane.h
MuonSimHitsValidAnalyzer::fillDT
void fillDT(const edm::Event &, const edm::EventSetup &)
Definition: MuonSimHitsValidAnalyzer.cc:303
MuonSimHitsValidAnalyzer::sector
Int_t sector
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::mom4
Float_t mom4
Definition: MuonSimHitsValidAnalyzer.h:83
MuonSimHitsValidAnalyzer::mePathMuon
MonitorElement * mePathMuon
Definition: MuonSimHitsValidAnalyzer.h:120
dMuon
static const int dMuon
end class declaration
Definition: MuonSimHitsValidAnalyzer.h:134
MuonSimHitsValidAnalyzer
Definition: MuonSimHitsValidAnalyzer.h:50
EventSetup
ParameterSet.h
HepMCProduct.h
MuonSimHitsValidAnalyzer::getAllProvenances
bool getAllProvenances
Definition: MuonSimHitsValidAnalyzer.h:70
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
MuonSimHitsValidAnalyzer::touch1
Int_t touch1
Definition: MuonSimHitsValidAnalyzer.h:80
MuonSimHitsValidAnalyzer::meLocalXvsZ
MonitorElement * meLocalXvsZ
Definition: MuonSimHitsValidAnalyzer.h:100
MuonSimHitsValidAnalyzer::meGlobalPhi
MonitorElement * meGlobalPhi
Definition: MuonSimHitsValidAnalyzer.h:125
RPCGeometry.h
SimTrackContainer.h
MuonSimHitsValidAnalyzer::~MuonSimHitsValidAnalyzer
~MuonSimHitsValidAnalyzer() override
Definition: MuonSimHitsValidAnalyzer.cc:73
SimVertexContainer.h
MuonSimHitsValidAnalyzer::printProvenanceInfo
bool printProvenanceInfo
Definition: MuonSimHitsValidAnalyzer.h:71
MuonSimHitsValidAnalyzer::subsector
Int_t subsector
Definition: MuonSimHitsValidAnalyzer.h:78
MuonSimHitsValidAnalyzer::meGlobalXvsYWp2
MonitorElement * meGlobalXvsYWp2
Definition: MuonSimHitsValidAnalyzer.h:113
CSCGeometry.h