CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalRecHitsValidation.h
Go to the documentation of this file.
1 #ifndef HcalRecHitsValidation_H
2 #define HcalRecHitsValidation_H
3 
14 
16 
19 
23 
30 
33 
34 #include <vector>
35 #include <utility>
36 #include <ostream>
37 #include <string>
38 #include <algorithm>
39 #include <cmath>
41 
43 // channel status
46 
49 
50 // severity level assignment for HCAL
53 
54 // severity level assignment for ECAL
56 
57 
59  public:
62  virtual void analyze(edm::Event const& ev, edm::EventSetup const& c);
63  virtual void beginJob() ;
64  virtual void endJob() ;
65  private:
66 
67  virtual void fillRecHitsTmp(int subdet_, edm::Event const& ev);
68  double dR(double eta1, double phi1, double eta2, double phi2);
69  double phi12(double phi1, double en1, double phi2, double en2);
70  double dPhiWsign(double phi1,double phi2);
71 
73 
74  std::string outputFile_;
75  std::string hcalselector_;
76  std::string ecalselector_;
77  std::string eventype_;
78  std::string sign_;
79  std::string mc_;
80  bool famos_;
82 
83  //RecHit Collection input tags
87 
88  // choice of subdetector in config : noise/HB/HE/HO/HF/ALL (0/1/2/3/4/5)
89  int subdet_;
90 
91  // single/multi-particle sample (1/2)
92  int etype_;
93  int iz;
94  int imc;
95 
96  // for checking the status of ECAL and HCAL channels stored in the DB
98  // calculator of severety level for HCAL
100  int hcalSevLvl(const CaloRecHit* hit);
101 
103 
108 
109  // RecHits counters
114 
115  // ZS-specific
116 
121 
130 
139 
148 
149  // In ALL other cases : 2D ieta-iphi maps
150  // without and with cuts (a la "Scheme B") on energy
151  // - only in the cone around particle for single-part samples (mc = "yes")
152  // - for all calls in milti-particle samples (mc = "no")
153 
155 
160 
169 
178 
187 
196 
205 
214 
223 
224 
225  // also - energy in the cone around MC particle
230 
231  // for single monoenergetic particles - cone collection profile vs ieta.
239  // Single particles - deviation of cluster from MC truth
242  MonitorElement* meDeltaPhiS; // simcluster
243  MonitorElement* meDeltaEtaS; // simculster
244 
245  //----------- NOISE case
251 
252  // number of rechits above threshold 1GEV
256 
257  // number of rechits in the cone
262 
263  // time?
268 
269  // energy of rechits
274 
283 
290 
295 
302 
303 
308 
309 
316 
317 
320 
325 
326  // Histo (2D plot) for sum of RecHits vs SimHits (hcal only)
333  // profile histo (2D plot) for sum of RecHits vs SimHits (hcal only)
340 
341  // 2D plot of sum of RecHits in HCAL as function of ECAL's one
344 
345  // number of ECAL's rechits in cone 0.3
348 
350 
351  //Status word histos
357 
358  //Aux Status word histos
363 
364  // Filling vectors with essential RecHits data
365  std::vector<int> csub;
366  std::vector<int> cieta;
367  std::vector<int> ciphi;
368  std::vector<int> cdepth;
369  std::vector<double> cen;
370  std::vector<double> ceta;
371  std::vector<double> cphi;
372  std::vector<double> ctime;
373  std::vector<double> cz;
374  std::vector<uint32_t> cstwd;
375  std::vector<uint32_t> cauxstwd;
376 
377  // array or min. e-values ieta x iphi x depth x subdet
378  double emap_min[82][72][4][4];
379 
380  // counter
381  int nevtot;
382 
383 };
384 
385 #endif
MonitorElement * emean_vs_ieta_HB2
MonitorElement * RMS_vs_ieta_HB1
MonitorElement * occupancy_vs_ieta_HO
const HcalSeverityLevelComputer * theHcalSevLvlComputer
MonitorElement * meSumRecHitsEnergyConeHE
MonitorElement * occupancy_seqHB1
const HcalChannelQuality * theHcalChStatus
MonitorElement * occupancy_map_HB1
MonitorElement * occupancy_vs_ieta_HE3
MonitorElement * meRecHitsEnergyHF
MonitorElement * occupancy_vs_ieta_HF1
MonitorElement * RMS_vs_ieta_HF1
double phi12(double phi1, double en1, double phi2, double en2)
std::vector< int > hcalHBSevLvlVec
MonitorElement * meNumRecHitsConeHE
MonitorElement * meSumRecHitsEnergyConeHB
MonitorElement * meTEprofileHE_Low
std::vector< uint32_t > cstwd
MonitorElement * RMS_vs_ieta_HE3
MonitorElement * RecHit_Aux_StatusWord_HB
MonitorElement * RMS_vs_ieta_HE1
MonitorElement * emean_vs_ieta_HB1
MonitorElement * occupancy_seqHO
MonitorElement * occupancy_seqHE3
MonitorElement * meEnConeEtaProfile
MonitorElement * occupancy_map_HE3
double dPhiWsign(double phi1, double phi2)
MonitorElement * meRecHitSimHitProfileHF
MonitorElement * meEcalHcalEnergyHB
int hcalSevLvl(const CaloRecHit *hit)
MonitorElement * meRecHitSimHitProfileHFS
MonitorElement * meEnergyHcalVsEcalHE
MonitorElement * occupancy_map_HF1
MonitorElement * meEcalHcalEnergyConeHE
MonitorElement * meRecHitsEnergyHB
MonitorElement * meSumRecHitsEnergyHF
double emap_min[82][72][4][4]
MonitorElement * meNumRecHitsConeHO
std::vector< double > ceta
MonitorElement * occupancy_seqHF2
MonitorElement * meNumRecHitsConeHB
MonitorElement * RMS_vs_ieta_HB2
MonitorElement * meRecHitSimHitHF
MonitorElement * meRecHitsEnergyHE
MonitorElement * occupancy_map_HE1
MonitorElement * meRecHitSimHitProfileHE
MonitorElement * meSumRecHitsEnergyHB
MonitorElement * meEnConeEtaProfile_E
MonitorElement * meRecHitSimHitHB
MonitorElement * meRecHitSimHitHFS
MonitorElement * RMS_vs_ieta_HO
MonitorElement * meSumRecHitsEnergyConeHFS
MonitorElement * RecHit_Aux_StatusWord_HO
std::vector< double > cphi
MonitorElement * meNumEcalRecHitsConeHB
MonitorElement * meNumRecHitsThreshHB
MonitorElement * meSumRecHitsEnergyHO
std::vector< int > hcalHESevLvlVec
MonitorElement * meEnergyHcalVsEcalHB
MonitorElement * RecHit_StatusWord_HF
MonitorElement * RecHit_Aux_StatusWord_HE
edm::ESHandle< CaloGeometry > geometry
MonitorElement * meSumRecHitsEnergyConeHO
MonitorElement * meEcalHcalEnergyConeHO
MonitorElement * meTEprofileHB
MonitorElement * map_econe_depth1
virtual void fillRecHitsTmp(int subdet_, edm::Event const &ev)
MonitorElement * map_econe_depth4
double dR(double eta1, double phi1, double eta2, double phi2)
MonitorElement * emean_vs_ieta_HE3
MonitorElement * meNumRecHitsThreshHO
MonitorElement * meEcalHcalEnergyConeHB
MonitorElement * meNumRecHitsThreshHE
edm::InputTag theHFRecHitCollectionLabel
std::vector< int > hcalHFSevLvlVec
MonitorElement * occupancy_map_HE2
MonitorElement * occupancy_vs_ieta_HB2
MonitorElement * meSumRecHitsEnergyConeHF
MonitorElement * RecHit_Aux_StatusWord_HF
MonitorElement * meRecHitSimHitHO
MonitorElement * meRecHitSimHitProfileHB
MonitorElement * RecHit_StatusWord_HO
MonitorElement * meEnConeEtaProfile_depth1
tuple conf
Definition: dbtoconf.py:185
MonitorElement * emean_vs_ieta_HF2
virtual void analyze(edm::Event const &ev, edm::EventSetup const &c)
MonitorElement * occupancy_map_HO
edm::InputTag theHORecHitCollectionLabel
MonitorElement * occupancy_vs_ieta_HE2
MonitorElement * meTEprofileHF_Low
MonitorElement * occupancy_map_HF2
MonitorElement * RecHit_StatusWord_HF67
MonitorElement * meTEprofileHO_High
MonitorElement * meTEprofileHE
MonitorElement * occupancy_seqHB2
MonitorElement * occupancy_map_HB2
MonitorElement * RMS_vs_ieta_HE2
MonitorElement * meNumRecHitsConeHF
MonitorElement * meTEprofileHF
MonitorElement * meEnConeEtaProfile_depth3
MonitorElement * emean_vs_ieta_HE1
MonitorElement * meRecHitSimHitProfileHO
std::vector< int > hcalHOSevLvlVec
MonitorElement * emean_vs_ieta_HE2
MonitorElement * occupancy_vs_ieta_HF2
MonitorElement * meEcalHcalEnergyConeHF
std::vector< double > ctime
MonitorElement * map_econe_depth2
MonitorElement * RecHit_StatusWord_HE
MonitorElement * meEnConeEtaProfile_EH
MonitorElement * meRecHitSimHitProfileHFL
std::vector< double > cz
MonitorElement * meEnConeEtaProfile_depth2
MonitorElement * RMS_vs_ieta_HF2
MonitorElement * meRecHitsEnergyHO
std::vector< uint32_t > cauxstwd
edm::InputTag theHBHERecHitCollectionLabel
MonitorElement * emean_vs_ieta_HO
MonitorElement * occupancy_seqHF1
MonitorElement * meSumRecHitsEnergyHE
MonitorElement * meRecHitSimHitHFL
MonitorElement * meSumRecHitsEnergyConeHFL
MonitorElement * meNumEcalRecHitsConeHE
MonitorElement * meEcalHcalEnergyHE
MonitorElement * emean_vs_ieta_HF1
MonitorElement * meTEprofileHO
MonitorElement * meTEprofileHB_Low
MonitorElement * occupancy_vs_ieta_HB1
MonitorElement * occupancy_seqHE2
MonitorElement * meRecHitSimHitHE
HcalRecHitsValidation(edm::ParameterSet const &conf)
MonitorElement * map_econe_depth3
MonitorElement * occupancy_seqHE1
MonitorElement * meTEprofileHB_High
std::vector< double > cen
MonitorElement * meEnConeEtaProfile_depth4
MonitorElement * occupancy_vs_ieta_HE1
MonitorElement * RecHit_StatusWord_HB