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 
10 
12 {
13  public:
14 
18 
20  const XYZPoint & ,
21  const XYZVector& ,
22  const XYZPoint& ,
23  const XYZVector&,
24  const LandauFluctuationGenerator* aGenerator,
25  const RandomEngineAndDistribution* engine);
26 
28 
29  inline void setSpotEnergy(double e) { spotEnergy=e;}
30  bool addHit(double r, double phi, unsigned layer=0);
31 
32  const std::map<CaloHitID,float>& getHits() { return hitMap_ ;} ;
33  // for tuning
34  inline void setMipEnergy(double e1, double e2) { mip1_=e1 ; mip2_=e2;}
35 
36  float totalLayer1() const { return totalLayer1_;}
37  float totalLayer2() const { return totalLayer2_;}
38  float layer1Calibrated() const { return 0.024/81.1E-6*totalLayer1_;}
39  float layer2Calibrated() const { return 0.024*0.7/81.1E-6*totalLayer2_;}
40  float totalCalibrated() const { return 0.024/81.1E-6*(totalLayer1_+0.7*totalLayer2_);}
41 
42  private:
43 
54  double mip1_,mip2_;
55  float totalLayer1_;
56  float totalLayer2_;
60 };
61 
62 #endif
float totalLayer1() const
math::XYZVector XYZPoint
bool addHit(double r, double phi, unsigned layer=0)
math::XYZVector XYZPoint
Definition: CaloHitMaker.h:26
Transform3D locToGlobal1_
const std::map< CaloHitID, float > & getHits()
PreshowerHitMaker(CaloGeometryHelper *calo, const XYZPoint &, const XYZVector &, const XYZPoint &, const XYZVector &, const LandauFluctuationGenerator *aGenerator, const RandomEngineAndDistribution *engine)
float totalCalibrated() const
ROOT::Math::Transform3DPJ Transform3D
void setSpotEnergy(double e)
Float e1
Definition: deltaR.h:22
std::map< CaloHitID, float > hitMap_
Definition: CaloHitMaker.h:65
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
Float e2
Definition: deltaR.h:23
Transform3D locToGlobal2_
float totalLayer2() const
float layer1Calibrated() const
math::XYZVector XYZVector
Definition: CaloHitMaker.h:25
void setMipEnergy(double e1, double e2)
float layer2Calibrated() const
double spotEnergy
Definition: CaloHitMaker.h:51
const LandauFluctuationGenerator * theGenerator
The Landau Fluctuation generator.
const RandomEngineAndDistribution * random
math::XYZVector XYZVector
Definition: DDAxes.h:10