CMS 3D CMS Logo

HcalRecHitsValidation.h
Go to the documentation of this file.
1 #ifndef HcalRecHitsValidation_H
2 #define HcalRecHitsValidation_H
3 
14 
17 
21 
28 
31 
33 #include <algorithm>
34 #include <cmath>
35 #include <ostream>
36 #include <string>
37 #include <utility>
38 #include <vector>
39 
41 // channel status
44 
47 
48 // severity level assignment for HCAL
51 
52 // severity level assignment for ECAL
54 
56 public:
58  ~HcalRecHitsValidation() override;
59  void analyze(edm::Event const &ev, edm::EventSetup const &c) override;
60 
61  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
62 
63 private:
64  virtual void fillRecHitsTmp(int subdet_, edm::Event const &ev);
65  double dR(double eta1, double phi1, double eta2, double phi2);
66  double phi12(double phi1, double en1, double phi2, double en2);
67  double dPhiWsign(double phi1, double phi2);
68 
70 
77 
78  // RecHit Collection input tags
86 
87  // choice of subdetector in config : noise/HB/HE/HO/HF/ALL (0/1/2/3/4/5)
88  int subdet_;
89 
90  // single/multi-particle sample (1/2)
91  int iz;
92  int imc;
93 
94  // In ALL other cases : 2D ieta-iphi maps
95  // without and with cuts (a la "Scheme B") on energy
96  // - only in the cone around particle for single-part samples (mc = "yes")
97  // - for all calls in milti-particle samples (mc = "no")
98 
102 
103  // energy of rechits
108 
112 
115 
118 
121 
122  // Histo (2D plot) for sum of RecHits vs SimHits (hcal only)
129  // profile histo (2D plot) for sum of RecHits vs SimHits (hcal only)
136 
137  // 2D plot of sum of RecHits in HCAL as function of ECAL's one
140 
141  // Chi2
144 
147 
149 
150  // Filling vectors with essential RecHits data
151  std::vector<int> csub;
152  std::vector<int> cieta;
153  std::vector<int> ciphi;
154  std::vector<int> cdepth;
155  std::vector<double> cen;
156  std::vector<double> ceta;
157  std::vector<double> cphi;
158  std::vector<double> ctime;
159  std::vector<double> cz;
160  std::vector<uint32_t> cstwd;
161  std::vector<uint32_t> cauxstwd;
162  std::vector<double> cchi2;
163 
164  // counter
165  int nevtot;
166 };
167 
168 #endif
HcalRecHitsValidation::fillRecHitsTmp
virtual void fillRecHitsTmp(int subdet_, edm::Event const &ev)
Definition: HcalRecHitsValidation.cc:524
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
HcalRecHitsValidation::meRecHitSimHitHE
MonitorElement * meRecHitSimHitHE
Definition: HcalRecHitsValidation.h:124
MessageLogger.h
HcalRecHitsValidation::imc
int imc
Definition: HcalRecHitsValidation.h:92
HcalRecHitsValidation::meTEprofileHE_Low
MonitorElement * meTEprofileHE_Low
Definition: HcalRecHitsValidation.h:113
ESHandle.h
HcalRecHitsValidation::meRecHitsM2Chi2HB
MonitorElement * meRecHitsM2Chi2HB
Definition: HcalRecHitsValidation.h:142
edm::Run
Definition: Run.h:45
HcalRecHitsValidation::dPhiWsign
double dPhiWsign(double phi1, double phi2)
Definition: HcalRecHitsValidation.cc:678
edm::EDGetTokenT< edm::HepMCProduct >
HcalRecHitsValidation::tok_hh_
edm::EDGetTokenT< edm::PCaloHitContainer > tok_hh_
Definition: HcalRecHitsValidation.h:82
HcalRecHitsValidation::analyze
void analyze(edm::Event const &ev, edm::EventSetup const &c) override
Definition: HcalRecHitsValidation.cc:189
EBDetId.h
EEDetId.h
HcalRecHitsValidation::tok_evt_
edm::EDGetTokenT< edm::HepMCProduct > tok_evt_
Definition: HcalRecHitsValidation.h:79
HcalRecHitsValidation::meTEprofileHF
MonitorElement * meTEprofileHF
Definition: HcalRecHitsValidation.h:120
HcalRecHitsValidation::meEnergyHcalVsEcalHB
MonitorElement * meEnergyHcalVsEcalHB
Definition: HcalRecHitsValidation.h:138
HcalRecHitsValidation::cdepth
std::vector< int > cdepth
Definition: HcalRecHitsValidation.h:154
HcalRecHitsValidation::meRecHitsEnergyHB
MonitorElement * meRecHitsEnergyHB
Definition: HcalRecHitsValidation.h:104
DQMStore.h
HcalRecHitsValidation::ceta
std::vector< double > ceta
Definition: HcalRecHitsValidation.h:156
HcalRecHitsValidation::meTEprofileHB_Low
MonitorElement * meTEprofileHB_Low
Definition: HcalRecHitsValidation.h:109
HcalRecHitsValidation::cstwd
std::vector< uint32_t > cstwd
Definition: HcalRecHitsValidation.h:160
HcalRecHitsValidation::~HcalRecHitsValidation
~HcalRecHitsValidation() override
Definition: HcalRecHitsValidation.cc:68
HcalRecHitsValidation::meTEprofileHB_High
MonitorElement * meTEprofileHB_High
Definition: HcalRecHitsValidation.h:111
HcalRecHitsValidation::ctime
std::vector< double > ctime
Definition: HcalRecHitsValidation.h:158
HcalRecHitsValidation::cen
std::vector< double > cen
Definition: HcalRecHitsValidation.h:155
HcalRecHitsValidation::cchi2
std::vector< double > cchi2
Definition: HcalRecHitsValidation.h:162
HcalRecHitsValidation::meRecHitsEnergyHO
MonitorElement * meRecHitsEnergyHO
Definition: HcalRecHitsValidation.h:106
EcalRecHitCollections.h
HcalRecHitsValidation::cz
std::vector< double > cz
Definition: HcalRecHitsValidation.h:159
HcalRecHitsValidation::iz
int iz
Definition: HcalRecHitsValidation.h:91
HcalRecHitsValidation::meRecHitSimHitProfileHF
MonitorElement * meRecHitSimHitProfileHF
Definition: HcalRecHitsValidation.h:133
HcalRecHitsValidation::cphi
std::vector< double > cphi
Definition: HcalRecHitsValidation.h:157
HcalRecHitsValidation::tok_hf_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
Definition: HcalRecHitsValidation.h:84
MakerMacros.h
HcalRecHitsValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: HcalRecHitsValidation.cc:70
HcalRecHitsValidation::meRecHitSimHitProfileHFL
MonitorElement * meRecHitSimHitProfileHFL
Definition: HcalRecHitsValidation.h:134
Service.h
HcalDigiCollections.h
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9608
HcalRecHitsValidation::meLog10Chi2profileHE
MonitorElement * meLog10Chi2profileHE
Definition: HcalRecHitsValidation.h:146
HcalRecHitsValidation::meEnConeEtaProfile_EH
MonitorElement * meEnConeEtaProfile_EH
Definition: HcalRecHitsValidation.h:101
HcalRecHitsValidation::meRecHitSimHitHFS
MonitorElement * meRecHitSimHitHFS
Definition: HcalRecHitsValidation.h:128
edm::ESHandle< CaloGeometry >
HcalRecHitsValidation::sign_
std::string sign_
Definition: HcalRecHitsValidation.h:74
HcalRecHitsValidation::meRecHitSimHitProfileHO
MonitorElement * meRecHitSimHitProfileHO
Definition: HcalRecHitsValidation.h:132
HcalRecHitsValidation::topFolderName_
std::string topFolderName_
Definition: HcalRecHitsValidation.h:69
HcalRecHitsValidation::subdet_
int subdet_
Definition: HcalRecHitsValidation.h:88
HcalRecHitsValidation::cauxstwd
std::vector< uint32_t > cauxstwd
Definition: HcalRecHitsValidation.h:161
HcalRecHitsValidation::meRecHitSimHitProfileHB
MonitorElement * meRecHitSimHitProfileHB
Definition: HcalRecHitsValidation.h:130
EcalSeverityLevelAlgo.h
HcalRecHitsValidation::csub
std::vector< int > csub
Definition: HcalRecHitsValidation.h:151
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalSeverityLevelComputerRcd.h
HcalRecHitsValidation::meTEprofileHF_Low
MonitorElement * meTEprofileHF_Low
Definition: HcalRecHitsValidation.h:119
HcalRecHitsValidation::outputFile_
std::string outputFile_
Definition: HcalRecHitsValidation.h:71
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9607
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
HcalRecHitsValidation::meTEprofileHO_High
MonitorElement * meTEprofileHO_High
Definition: HcalRecHitsValidation.h:117
CaloSubdetectorGeometry.h
HcalRecHitsValidation::meRecHitsEnergyHF
MonitorElement * meRecHitsEnergyHF
Definition: HcalRecHitsValidation.h:107
HcalRecHitsValidation::meLog10Chi2profileHB
MonitorElement * meLog10Chi2profileHB
Definition: HcalRecHitsValidation.h:145
edm::ParameterSet
Definition: ParameterSet.h:47
HcalRecHitsValidation::meRecHitsM2Chi2HE
MonitorElement * meRecHitsM2Chi2HE
Definition: HcalRecHitsValidation.h:143
Event.h
HcalRecHitsValidation::testNumber_
bool testNumber_
Definition: HcalRecHitsValidation.h:76
HcalRecHitsValidation::meRecHitSimHitHFL
MonitorElement * meRecHitSimHitHFL
Definition: HcalRecHitsValidation.h:127
HcalRecHitsValidation::meTEprofileHE
MonitorElement * meTEprofileHE
Definition: HcalRecHitsValidation.h:114
HcalRecHitsValidation::meEnergyHcalVsEcalHE
MonitorElement * meEnergyHcalVsEcalHE
Definition: HcalRecHitsValidation.h:139
HcalDetId.h
HcalRecHitsValidation::hcalselector_
std::string hcalselector_
Definition: HcalRecHitsValidation.h:72
HcalRecHitsValidation::meTEprofileHB
MonitorElement * meTEprofileHB
Definition: HcalRecHitsValidation.h:110
ModuleDef.h
HcalRecHitsValidation::tok_hbhe_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: HcalRecHitsValidation.h:83
HcalRecHitsValidation::ciphi
std::vector< int > ciphi
Definition: HcalRecHitsValidation.h:153
HcalRecHitsValidation::meRecHitsEnergyHE
MonitorElement * meRecHitsEnergyHE
Definition: HcalRecHitsValidation.h:105
HcalRecHitsValidation::meRecHitSimHitProfileHE
MonitorElement * meRecHitSimHitProfileHE
Definition: HcalRecHitsValidation.h:131
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
HcalRecHitsValidation::HcalRecHitsValidation
HcalRecHitsValidation(edm::ParameterSet const &conf)
Definition: HcalRecHitsValidation.cc:8
HcalRecHitsValidation::meRecHitSimHitHF
MonitorElement * meRecHitSimHitHF
Definition: HcalRecHitsValidation.h:126
HcalRecHitsValidation::cieta
std::vector< int > cieta
Definition: HcalRecHitsValidation.h:152
HcalElectronicsId.h
HcalRecHitsValidation::meEnConeEtaProfile
MonitorElement * meEnConeEtaProfile
Definition: HcalRecHitsValidation.h:99
HcalChannelQualityRcd.h
HcalChannelQuality.h
CaloCellGeometry.h
HcalRecHitsValidation
Definition: HcalRecHitsValidation.h:55
HcalRecHitsValidation::nevtot
int nevtot
Definition: HcalRecHitsValidation.h:165
HcalRecHitsValidation::meTEprofileHO
MonitorElement * meTEprofileHO
Definition: HcalRecHitsValidation.h:116
HcalRecHitsValidation::tok_EE_
edm::EDGetTokenT< EERecHitCollection > tok_EE_
Definition: HcalRecHitsValidation.h:81
HcalRecHitsValidation::dR
double dR(double eta1, double phi1, double eta2, double phi2)
Definition: HcalRecHitsValidation.cc:645
DetId.h
Frameworkfwd.h
HcalRecHitsValidation::mc_
std::string mc_
Definition: HcalRecHitsValidation.h:75
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
CaloGeometry.h
HcalSourcePositionData.h
EventSetup.h
HcalRecHitCollections.h
HcalSeverityLevelComputer.h
HcalRecHitsValidation::ecalselector_
std::string ecalselector_
Definition: HcalRecHitsValidation.h:73
PCaloHitContainer.h
HcalRecHitsValidation::meEnConeEtaProfile_E
MonitorElement * meEnConeEtaProfile_E
Definition: HcalRecHitsValidation.h:100
dqm::implementation::IBooker
Definition: DQMStore.h:43
HcalRecHitsValidation::meRecHitSimHitHO
MonitorElement * meRecHitSimHitHO
Definition: HcalRecHitsValidation.h:125
HcalRecHitsValidation::meRecHitSimHitHB
MonitorElement * meRecHitSimHitHB
Definition: HcalRecHitsValidation.h:123
HcalRecHitsValidation::phi12
double phi12(double phi1, double en1, double phi2, double en2)
Definition: HcalRecHitsValidation.cc:659
ParameterSet.h
HepMCProduct.h
HcalRecHitsValidation::meRecHitSimHitProfileHFS
MonitorElement * meRecHitSimHitProfileHFS
Definition: HcalRecHitsValidation.h:135
edm::Event
Definition: Event.h:73
HcalRecHitsValidation::geometry
edm::ESHandle< CaloGeometry > geometry
Definition: HcalRecHitsValidation.h:148
EcalChannelStatus.h
EcalChannelStatusRcd.h
HcalRecHitsValidation::tok_ho_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
Definition: HcalRecHitsValidation.h:85
HcalRecHitsValidation::tok_EB_
edm::EDGetTokenT< EBRecHitCollection > tok_EB_
Definition: HcalRecHitsValidation.h:80