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  * $Date: 2010/03/29 01:30:40 $
8  * $Revision: 1.12 $
9  * \author F. Cossutti
10  *
11 */
12 
15 
20 
23 
26 
35 
42 
44 //#include "SimCalorimetry/EcalSimAlgos/interface/EcalShape.h"
51 
61 
62 #include <iostream>
63 #include <fstream>
64 #include <vector>
65 #include <map>
67 
69 
70  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
71 
72 public:
73 
76 
79 
80 protected:
81 
83 void analyze(edm::Event const & e, edm::EventSetup const & c);
84 
85 // BeginRun
86 void beginRun(edm::Run const &, edm::EventSetup const & c);
87 
88 // EndRun
89 void endRun(const edm::Run& r, const edm::EventSetup& c);
90 
91 // EndJob
92 void endJob(void);
93 
94 private:
95 
96  void checkPedestals(const edm::EventSetup & c);
97 
98  void findPedestal(const DetId & detId, int gainId, double & ped) const;
99 
100  void checkCalibrations(edm::EventSetup const & c);
101 
102  std::string HepMCLabel;
103  std::string hitsProducer_;
104 
105  bool verbose_;
106 
108 
109  std::string outputFile_;
110 
114 
115  std::map<int, double, std::less<int> > gainConv_;
116 
119 
122 
125 
129 
130  static const int nBunch = 21;
131 
135 
139 
143 
145  //const CaloVShape * theEcalShape;
149 
150 
151  //CaloHitResponse * theEcalResponse;
155 
156  void computeSDBunchDigi(const edm::EventSetup & eventSetup, MixCollection<PCaloHit> & theHits, MapType & ebSignalSimMap, const EcalSubdetector & thisDet, const double & theSimThreshold);
157 
158  void bunchSumTest(std::vector<MonitorElement *> & theBunches, MonitorElement* & theTotal, MonitorElement* & theRatio, int nSample);
159 
160  double esBaseline_;
161  double esADCtokeV_;
162  double esThreshold_;
163 
166 
168 
169  // the pedestals
171 
172  int m_ESgain ;
175  double m_ESeffwei ;
176 
177 };
178 
179 #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)
void findPedestal(const DetId &detId, int gainId, double &ped) const
int gainId(sample_type sample)
get the gainId (2 bits)
void checkCalibrations(edm::EventSetup const &c)
MonitorElement * meEEBunchShape_[nBunch]
MonitorElement * meEBBunchShape_[nBunch]
void bunchSumTest(std::vector< MonitorElement * > &theBunches, MonitorElement *&theTotal, MonitorElement *&theRatio, int nSample)
MonitorElement * meESBunchShape_[nBunch]
Creates electronics signals from hits.
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:20
const EcalSimParameterMap * theParameterMap
std::map< uint32_t, float, std::less< uint32_t > > MapType
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
Definition: Run.h:33
Definition: EEShape.h:6