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 
15 
18 
25 
31 
32 #include <iostream>
33 #include <cstdlib>
34 #include <string>
35 #include <memory>
36 #include <vector>
37 
38 #include "TString.h"
39 
40 class TH1F;
41 class TFile;
42 
43 namespace edm {
44  class ParameterSet;
45  class Event;
46  class EventSetup;
47 } // namespace edm
48 
50 public:
51  typedef std::vector<float> FloatVector;
52  typedef std::vector<int> IntegerVector;
53  typedef std::vector<long int> LongIntegerVector;
54  typedef std::vector<unsigned int> UnsigIntegerVector;
55 
57  ~MuonSimHitsValidAnalyzer() override;
58  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
59  void analyze(const edm::Event&, const edm::EventSetup&) override;
60 
61 private:
62  void fillDT(const edm::Event&, const edm::EventSetup&);
63 
64 private:
67  int verbosity;
71 
74 
75  unsigned int iden;
78  Int_t path, pathchamber;
80  Int_t touche1, touche4;
81  Float_t pow6;
82  Float_t mom1, mom4, mome1, mome4;
83  Float_t costeta, radius, sinteta;
86 
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:85
MuonSimHitsValidAnalyzer::nummu_DT
Int_t nummu_DT
Definition: MuonSimHitsValidAnalyzer.h:79
MessageLogger.h
MuonSimHitsValidAnalyzer::globposphi
Float_t globposphi
Definition: MuonSimHitsValidAnalyzer.h:85
MuonSimHitsValidAnalyzer::meLocalXvsY
MonitorElement * meLocalXvsY
Definition: MuonSimHitsValidAnalyzer.h:101
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:68
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:75
MuonSimHitsValidAnalyzer::pathchamber
Int_t pathchamber
Definition: MuonSimHitsValidAnalyzer.h:78
MuonSimHitsValidAnalyzer::nummu_RPC
Int_t nummu_RPC
Definition: MuonSimHitsValidAnalyzer.h:79
MuonSimHitsValidAnalyzer::meHitRadius
MonitorElement * meHitRadius
Definition: MuonSimHitsValidAnalyzer.h:122
MuonSimHitsValidAnalyzer::roll
Int_t roll
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::region
Int_t region
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::layer
Int_t layer
Definition: MuonSimHitsValidAnalyzer.h:76
MuonSimHitsValidAnalyzer::meStationOccup
MonitorElement * meStationOccup
Definition: MuonSimHitsValidAnalyzer.h:115
sdMuonDT
static const int sdMuonDT
Definition: MuonSimHitsValidAnalyzer.h:136
MuonSimHitsValidAnalyzer::verbosity
int verbosity
Definition: MuonSimHitsValidAnalyzer.h:67
MuonSimHitsValidAnalyzer::DTHitsToken_
edm::EDGetTokenT< edm::PSimHitContainer > DTHitsToken_
Input tags.
Definition: MuonSimHitsValidAnalyzer.h:88
MuonSimHitsValidAnalyzer::station
Int_t station
Definition: MuonSimHitsValidAnalyzer.h:76
MuonSimHitsValidAnalyzer::wire
Int_t wire
Definition: MuonSimHitsValidAnalyzer.h:76
MuonSimHitsValidAnalyzer::geomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > geomToken_
Definition: MuonSimHitsValidAnalyzer.h:89
MuonSimHitsValidAnalyzer::FloatVector
std::vector< float > FloatVector
Definition: MuonSimHitsValidAnalyzer.h:51
MakerMacros.h
MuonSimHitsValidAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MuonSimHitsValidAnalyzer.cc:255
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:82
Service.h
MuonSimHitsValidAnalyzer::touche4
Int_t touche4
Definition: MuonSimHitsValidAnalyzer.h:80
Provenance.h
MuonSimHitsValidAnalyzer::UnsigIntegerVector
std::vector< unsigned int > UnsigIntegerVector
Definition: MuonSimHitsValidAnalyzer.h:54
MuonSimHitsValidAnalyzer::meGlobalXvsYW0
MonitorElement * meGlobalXvsYW0
Definition: MuonSimHitsValidAnalyzer.h:111
MuonSimHitsValidAnalyzer::meWheelOccup
MonitorElement * meWheelOccup
Definition: MuonSimHitsValidAnalyzer.h:114
MuonSimHitsValidAnalyzer::radius
Float_t radius
Definition: MuonSimHitsValidAnalyzer.h:83
Event
MuonSimHitsValidAnalyzer::meGlobalXvsYWp1
MonitorElement * meGlobalXvsYWp1
Definition: MuonSimHitsValidAnalyzer.h:112
MuonSimHitsValidAnalyzer::touche1
Int_t touche1
Definition: MuonSimHitsValidAnalyzer.h:80
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:82
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:73
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:76
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:47
MuonSimHitsValidAnalyzer::meCosTheta
MonitorElement * meCosTheta
Definition: MuonSimHitsValidAnalyzer.h:123
MuonSimHitsValidAnalyzer::pow6
Float_t pow6
Definition: MuonSimHitsValidAnalyzer.h:81
Event.h
ParameterSet
Definition: Functions.h:16
MuonSimHitsValidAnalyzer::fName
std::string fName
parameter information
Definition: MuonSimHitsValidAnalyzer.h:66
MuonSimHitsValidAnalyzer::IntegerVector
std::vector< int > IntegerVector
Definition: MuonSimHitsValidAnalyzer.h:52
MuonSimHitsValidAnalyzer::mome4
Float_t mome4
Definition: MuonSimHitsValidAnalyzer.h:82
MuonSimHitsValidAnalyzer::meLayerOccup
MonitorElement * meLayerOccup
Definition: MuonSimHitsValidAnalyzer.h:118
MuonSimHitsValidAnalyzer::nummu_CSC
Int_t nummu_CSC
Definition: MuonSimHitsValidAnalyzer.h:79
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
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
MuonSimHitsValidAnalyzer::globposy
Float_t globposy
Definition: MuonSimHitsValidAnalyzer.h:84
MuonSimHitsValidAnalyzer::meEnergyLoss
MonitorElement * meEnergyLoss
Definition: MuonSimHitsValidAnalyzer.h:96
MuonSimHitsValidAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MuonSimHitsValidAnalyzer.cc:76
MuonSimHitsValidAnalyzer::globposx
Float_t globposx
Definition: MuonSimHitsValidAnalyzer.h:84
MuonSimHitsValidAnalyzer::costeta
Float_t costeta
Definition: MuonSimHitsValidAnalyzer.h:83
MuonSimHitsValidAnalyzer::superlayer
Int_t superlayer
Definition: MuonSimHitsValidAnalyzer.h:76
MuonSimHitsValidAnalyzer::sinteta
Float_t sinteta
Definition: MuonSimHitsValidAnalyzer.h:83
MuonSimHitsValidAnalyzer::path
Int_t path
Definition: MuonSimHitsValidAnalyzer.h:78
Frameworkfwd.h
MuonSimHitsValidAnalyzer::globposz
Float_t globposz
Definition: MuonSimHitsValidAnalyzer.h:84
MuonSimHitsValidAnalyzer::meMomentumMB4
MonitorElement * meMomentumMB4
Definition: MuonSimHitsValidAnalyzer.h:98
MuonSimHitsValidAnalyzer::LongIntegerVector
std::vector< long int > LongIntegerVector
Definition: MuonSimHitsValidAnalyzer.h:53
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:77
MuonSimHitsValidAnalyzer::touch4
Int_t touch4
Definition: MuonSimHitsValidAnalyzer.h:79
dqm::implementation::IBooker
Definition: DQMStore.h:43
BoundPlane.h
MuonSimHitsValidAnalyzer::fillDT
void fillDT(const edm::Event &, const edm::EventSetup &)
Definition: MuonSimHitsValidAnalyzer.cc:304
MuonSimHitsValidAnalyzer::sector
Int_t sector
Definition: MuonSimHitsValidAnalyzer.h:76
MuonSimHitsValidAnalyzer::mom4
Float_t mom4
Definition: MuonSimHitsValidAnalyzer.h:82
MuonSimHitsValidAnalyzer::mePathMuon
MonitorElement * mePathMuon
Definition: MuonSimHitsValidAnalyzer.h:120
dMuon
static const int dMuon
end class declaration
Definition: MuonSimHitsValidAnalyzer.h:134
MuonSimHitsValidAnalyzer
Definition: MuonSimHitsValidAnalyzer.h:49
EventSetup
ParameterSet.h
HepMCProduct.h
MuonSimHitsValidAnalyzer::getAllProvenances
bool getAllProvenances
Definition: MuonSimHitsValidAnalyzer.h:69
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
MuonSimHitsValidAnalyzer::touch1
Int_t touch1
Definition: MuonSimHitsValidAnalyzer.h:79
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:74
SimVertexContainer.h
MuonSimHitsValidAnalyzer::printProvenanceInfo
bool printProvenanceInfo
Definition: MuonSimHitsValidAnalyzer.h:70
MuonSimHitsValidAnalyzer::subsector
Int_t subsector
Definition: MuonSimHitsValidAnalyzer.h:77
MuonSimHitsValidAnalyzer::meGlobalXvsYWp2
MonitorElement * meGlobalXvsYWp2
Definition: MuonSimHitsValidAnalyzer.h:113
CSCGeometry.h