CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalHitMaker.h
Go to the documentation of this file.
1 #ifndef HcalHitMaker_h
2 #define HcalHitMaker_h
3 
8 
9 //#include "Math/GenVector/Transform3D.h"
11 
12 //#include <boost/cstdint.hpp>
13 
14 class CaloGeometryHelper;
15 
16 class HcalHitMaker : public CaloHitMaker
17 {
18  public:
19 
23 
24  HcalHitMaker(EcalHitMaker &, unsigned );
26 
28  inline void setSpotEnergy(double e) { spotEnergy=e;}
29 
31  bool addHit(double r,double phi,unsigned layer=0);
32 
34  bool addHit(const XYZPoint & point ,unsigned layer=0);
35 
36  // get the hits
37  const std::map<uint32_t,float>& getHits() { return hitMap_ ;} ;
38 
40  bool setDepth(double,bool inCm=false);
41 
42  private:
44 
45  const FSimTrack * myTrack;
48  int onHcal;
49 
50  double currentDepth_;
52  double radiusFactor_;
54 
55  public:
56  static int getSubHcalDet(const FSimTrack* t)
57  {
58  // std::cout << " getSubHcalDet " << std::endl;
59  // According to DataFormats/ HcalDetId/ interface/ HcalSubdetector.h
60  // std::cout << " onHcal " << t->onHcal() << " onVFcal " << t->onVFcal() << std::endl;
61  if(t->onHcal()==1) return HcalBarrel;
62  if(t->onHcal()==2) return HcalEndcap;
63  if(t->onVFcal()==2) return HcalForward;
64  return -1;
65  }
66 
67 };
68 #endif
void setSpotEnergy(double e)
Set the spot energy.
Definition: HcalHitMaker.h:28
const FSimTrack * myTrack
Definition: HcalHitMaker.h:45
math::XYZVector XYZPoint
Definition: CaloHitMaker.h:25
Transform3D locToGlobal_
Definition: HcalHitMaker.h:51
double radiusFactor_
Definition: HcalHitMaker.h:52
ROOT::Math::Transform3DPJ Transform3D
Definition: HcalHitMaker.h:22
HcalHitMaker(EcalHitMaker &, unsigned)
Definition: HcalHitMaker.cc:10
int onVFcal() const
Definition: FSimTrack.h:111
const std::map< uint32_t, float > & getHits()
Definition: HcalHitMaker.h:37
bool mapCalculated_
Definition: HcalHitMaker.h:53
XYZPoint ecalEntrance_
Definition: HcalHitMaker.h:46
math::XYZVector XYZVector
Definition: HcalHitMaker.h:20
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
math::XYZVector XYZPoint
EcalHitMaker & myGrid
Definition: HcalHitMaker.h:43
int onHcal() const
Definition: FSimTrack.h:106
math::XYZVector XYZVector
Definition: CaloHitMaker.h:24
math::XYZVector XYZPoint
Definition: HcalHitMaker.h:21
XYZVector particleDirection
Definition: HcalHitMaker.h:47
std::map< uint32_t, float > hitMap_
Definition: CaloHitMaker.h:64
bool addHit(double r, double phi, unsigned layer=0)
add the hit in the HCAL in local coordinates
Definition: HcalHitMaker.cc:28
double spotEnergy
Definition: CaloHitMaker.h:50
double currentDepth_
Definition: HcalHitMaker.h:50
bool setDepth(double, bool inCm=false)
set the depth in X0 or Lambda0 units depending on showerType
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
static int getSubHcalDet(const FSimTrack *t)
Definition: HcalHitMaker.h:56
Definition: DDAxes.h:10