CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalMixingModuleValidation.h
Go to the documentation of this file.
1 #ifndef EcalMixingModuleValidation_H
2 #define EcalMixingModuleValidation_H
3 
4 /*
5  * \file EcalMixingModuleValidation.h
6  *
7  * \author F. Cossutti
8  *
9 */
10 
13 
18 
21 
24 
33 
40 
42 //#include "SimCalorimetry/EcalSimAlgos/interface/EcalShape.h"
49 
59 
60 #include <iostream>
61 #include <fstream>
62 #include <vector>
63 #include <map>
65 
67 
68  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
69 
70 public:
71 
74 
77 
78 protected:
79 
81 void analyze(edm::Event const & e, edm::EventSetup const & c);
82 
83 // BeginRun
84 void beginRun(edm::Run const &, edm::EventSetup const & c);
85 
86 // EndRun
87 void endRun(const edm::Run& r, const edm::EventSetup& c);
88 
89 // EndJob
90 void endJob(void);
91 
92 private:
93 
94  void checkPedestals(const edm::EventSetup & c);
95 
96  void findPedestal(const DetId & detId, int gainId, double & ped) const;
97 
98  void checkCalibrations(edm::EventSetup const & c);
99 
100  bool verbose_;
101 
103 
105 
107 
111 
113 
114  std::map<int, double, std::less<int> > gainConv_;
115 
118 
121 
124 
128 
129  static const int nBunch = 21;
130 
134 
138 
142 
144  //const CaloVShape * theEcalShape;
148 
149 
150  //CaloHitResponse * theEcalResponse;
154 
155  void computeSDBunchDigi(const edm::EventSetup & eventSetup, MixCollection<PCaloHit> & theHits, MapType & ebSignalSimMap, const EcalSubdetector & thisDet, const double & theSimThreshold);
156 
157  void bunchSumTest(std::vector<MonitorElement *> & theBunches, MonitorElement* & theTotal, MonitorElement* & theRatio, int nSample);
158 
159  double esBaseline_;
160  double esADCtokeV_;
161  double esThreshold_;
162 
165 
167 
168  // the pedestals
170 
171  int m_ESgain ;
174  double m_ESeffwei ;
175 
176 };
177 
178 #endif
void checkPedestals(const edm::EventSetup &c)
const ESIntercalibConstants * m_ESmips
void computeSDBunchDigi(const edm::EventSetup &eventSetup, MixCollection< PCaloHit > &theHits, MapType &ebSignalSimMap, const EcalSubdetector &thisDet, const double &theSimThreshold)
edm::EDGetTokenT< CrossingFrame< PCaloHit > > crossingFramePCaloHitESToken_
void findPedestal(const DetId &detId, int gainId, double &ped) const
int gainId(sample_type sample)
get the gainId (2 bits)
edm::EDGetTokenT< edm::HepMCProduct > HepMCToken_
void checkCalibrations(edm::EventSetup const &c)
MonitorElement * meEEBunchShape_[nBunch]
edm::EDGetTokenT< EBDigiCollection > EBdigiCollectionToken_
MonitorElement * meEBBunchShape_[nBunch]
edm::EDGetTokenT< CrossingFrame< PCaloHit > > crossingFramePCaloHitEEToken_
void bunchSumTest(std::vector< MonitorElement * > &theBunches, MonitorElement *&theTotal, MonitorElement *&theRatio, int nSample)
MonitorElement * meESBunchShape_[nBunch]
Creates electronics signals from hits.
edm::EDGetTokenT< CrossingFrame< PCaloHit > > crossingFramePCaloHitEBToken_
Definition: EBShape.h:6
std::map< int, double, std::less< int > > gainConv_
void analyze(edm::Event const &e, edm::EventSetup const &c)
Analyze.
Definition: DetId.h:18
const EcalSimParameterMap * theParameterMap
std::map< uint32_t, float, std::less< uint32_t > > MapType
edm::EDGetTokenT< ESDigiCollection > ESdigiCollectionToken_
void endRun(const edm::Run &r, const edm::EventSetup &c)
void beginRun(edm::Run const &, edm::EventSetup const &c)
EcalMixingModuleValidation(const edm::ParameterSet &ps)
Constructor.
EcalSubdetector
edm::EDGetTokenT< EEDigiCollection > EEdigiCollectionToken_
Definition: Run.h:41
Definition: EEShape.h:6