CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorHitCorrection.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorHitCorrection_h
2 #define CastorSim_CastorHitCorrection_h
3 
14 #include <map>
15 
17 {
18 public:
19  typedef std::map<DetId, double> ChargeSumsByChannel;
20 
21  CastorHitCorrection(const CaloVSimParameterMap * parameterMap);
22  virtual ~CastorHitCorrection() {}
23 
25 
26  void clear();
27 
29  double charge(const PCaloHit & hit) const;
30 
32  double delay(const PCaloHit & hit) const;
33 
35  virtual void correct(PCaloHit & hit) const;
36 
38  int timeBin(const PCaloHit & hit) const;
39 
41  double timeOfFlight(const DetId & id) const;
42 
43 private:
44 
46 
48 
49 };
50 
51 #endif
52 
double timeOfFlight(const DetId &id) const
simple average approximation
virtual void correct(PCaloHit &hit) const
applies the delay to the hit
int timeBin(const PCaloHit &hit) const
which time bin the peak of the signal will fall in
void fillChargeSums(MixCollection< PCaloHit > &hits)
double delay(const PCaloHit &hit) const
how much delay this hit will get
std::map< DetId, double > ChargeSumsByChannel
CastorHitCorrection(const CaloVSimParameterMap *parameterMap)
Definition: DetId.h:20
const CaloVSimParameterMap * theParameterMap
double charge(const PCaloHit &hit) const
how much charge we expect from this hit
ChargeSumsByChannel theChargeSumsForTimeBin[10]