CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PreshowerHitMaker.h
Go to the documentation of this file.
1 #ifndef PreshowerHitMaker_h
2 #define PreshowerHitMaker_h
3 
6 
9 
11 {
12  public:
13 
17 
19  const XYZPoint & ,
20  const XYZVector& ,
21  const XYZPoint& ,
22  const XYZVector&,
23  const LandauFluctuationGenerator* aGenerator);
24 
26 
27  inline void setSpotEnergy(double e) { spotEnergy=e;}
28  bool addHit(double r,double phi,unsigned layer=0);
29 
30  const std::map<unsigned,float>& getHits() { return hitMap_ ;} ;
31  // for tuning
32  inline void setMipEnergy(double e1, double e2) { mip1_=e1 ; mip2_=e2;}
33 
34  float totalLayer1() const { return totalLayer1_;}
35  float totalLayer2() const { return totalLayer2_;}
36  float layer1Calibrated() const { return 0.024/81.1E-6*totalLayer1_;}
37  float layer2Calibrated() const { return 0.024*0.7/81.1E-6*totalLayer2_;}
38  float totalCalibrated() const { return 0.024/81.1E-6*(totalLayer1_+0.7*totalLayer2_);}
39 
40  private:
41 
52  double mip1_,mip2_;
53  float totalLayer1_;
54  float totalLayer2_;
57 
58 };
59 
60 #endif
float totalLayer1() const
math::XYZVector XYZPoint
bool addHit(double r, double phi, unsigned layer=0)
math::XYZVector XYZPoint
Definition: CaloHitMaker.h:25
Transform3D locToGlobal1_
float totalCalibrated() const
ROOT::Math::Transform3DPJ Transform3D
const std::map< unsigned, float > & getHits()
void setSpotEnergy(double e)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
Transform3D locToGlobal2_
PreshowerHitMaker(CaloGeometryHelper *calo, const XYZPoint &, const XYZVector &, const XYZPoint &, const XYZVector &, const LandauFluctuationGenerator *aGenerator)
float totalLayer2() const
float layer1Calibrated() const
math::XYZVector XYZVector
Definition: CaloHitMaker.h:24
void setMipEnergy(double e1, double e2)
std::map< uint32_t, float > hitMap_
Definition: CaloHitMaker.h:64
float layer2Calibrated() const
double spotEnergy
Definition: CaloHitMaker.h:50
const LandauFluctuationGenerator * theGenerator
The Landau Fluctuation generator.
math::XYZVector XYZVector
Definition: DDAxes.h:10