CMS 3D CMS Logo

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 public:
21 
22  HcalHitMaker(EcalHitMaker&, unsigned);
23  ~HcalHitMaker() override { ; }
24 
26  inline void setSpotEnergy(double e) override { spotEnergy = e; }
27 
29  bool addHit(double r, double phi, unsigned layer = 0) override;
30 
32  bool addHit(const XYZPoint& point, unsigned layer = 0);
33 
34  // get the hits
35  const std::map<CaloHitID, float>& getHits() override { return hitMap_; };
36 
38  bool setDepth(double, bool inCm = false);
39 
40 private:
42 
46  int onHcal;
47 
48  double currentDepth_;
50  double radiusFactor_;
52 
53 public:
54  static int getSubHcalDet(const FSimTrack* t) {
55  // std::cout << " getSubHcalDet " << std::endl;
56  // According to DataFormats/ HcalDetId/ interface/ HcalSubdetector.h
57  // std::cout << " onHcal " << t->onHcal() << " onVFcal " << t->onVFcal() << std::endl;
58  if (t->onHcal() == 1)
59  return HcalBarrel;
60  if (t->onHcal() == 2)
61  return HcalEndcap;
62  if (t->onVFcal() == 2)
63  return HcalForward;
64  return -1;
65  }
66 };
67 #endif
HcalHitMaker::Transform3D
ROOT::Math::Transform3DPJ Transform3D
Definition: HcalHitMaker.h:20
CaloHitMaker::XYZPoint
math::XYZVector XYZPoint
Definition: CaloHitMaker.h:23
HcalHitMaker::XYZVector
math::XYZVector XYZVector
Definition: HcalHitMaker.h:18
HcalHitMaker::particleDirection
XYZVector particleDirection
Definition: HcalHitMaker.h:45
HcalHitMaker::mapCalculated_
bool mapCalculated_
Definition: HcalHitMaker.h:51
HcalHitMaker::locToGlobal_
Transform3D locToGlobal_
Definition: HcalHitMaker.h:49
FSimTrack.h
HcalHitMaker::getHits
const std::map< CaloHitID, float > & getHits() override
Definition: HcalHitMaker.h:35
HcalBarrel
Definition: HcalAssistant.h:33
EcalHitMaker.h
HcalHitMaker::myGrid
EcalHitMaker & myGrid
Definition: HcalHitMaker.h:41
HcalHitMaker::ecalEntrance_
XYZPoint ecalEntrance_
Definition: HcalHitMaker.h:44
HcalHitMaker::XYZPoint
math::XYZVector XYZPoint
Definition: HcalHitMaker.h:19
OrderedSet.t
t
Definition: OrderedSet.py:90
HcalHitMaker::currentDepth_
double currentDepth_
Definition: HcalHitMaker.h:48
HcalHitMaker::getSubHcalDet
static int getSubHcalDet(const FSimTrack *t)
Definition: HcalHitMaker.h:54
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
HcalHitMaker
Definition: HcalHitMaker.h:16
HcalSubdetector.h
ROOT::Math::Transform3DPJ
Definition: Transform3DPJ.h:62
CaloHitMaker::spotEnergy
double spotEnergy
Definition: CaloHitMaker.h:48
XYZPoint
math::XYZVector XYZPoint
Definition: CalorimetryManager.cc:66
HcalHitMaker::setDepth
bool setDepth(double, bool inCm=false)
set the depth in X0 or Lambda0 units depending on showerType
Definition: HcalHitMaker.cc:114
alignCSCRings.r
r
Definition: alignCSCRings.py:93
CaloHitMaker
Definition: CaloHitMaker.h:20
HcalForward
Definition: HcalAssistant.h:36
DDAxes::phi
Transform3DPJ.h
HcalEndcap
Definition: HcalAssistant.h:34
HcalHitMaker::~HcalHitMaker
~HcalHitMaker() override
Definition: HcalHitMaker.h:23
CaloHitMaker::hitMap_
std::map< CaloHitID, float > hitMap_
Definition: CaloHitMaker.h:61
EcalHitMaker
Definition: EcalHitMaker.h:24
HcalHitMaker::onHcal
int onHcal
Definition: HcalHitMaker.h:46
FSimTrack
Definition: FSimTrack.h:30
HcalHitMaker::addHit
bool addHit(double r, double phi, unsigned layer=0) override
add the hit in the HCAL in local coordinates
Definition: HcalHitMaker.cc:30
HcalHitMaker::radiusFactor_
double radiusFactor_
Definition: HcalHitMaker.h:50
point
*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
CaloGeometryHelper
Definition: CaloGeometryHelper.h:18
HcalHitMaker::setSpotEnergy
void setSpotEnergy(double e) override
Set the spot energy.
Definition: HcalHitMaker.h:26
HcalHitMaker::myTrack
const FSimTrack * myTrack
Definition: HcalHitMaker.h:43
CaloHitMaker::XYZVector
math::XYZVector XYZVector
Definition: CaloHitMaker.h:22
HcalHitMaker::HcalHitMaker
HcalHitMaker(EcalHitMaker &, unsigned)
Definition: HcalHitMaker.cc:10
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CaloHitMaker.h