CMS 3D CMS Logo

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