CMS 3D CMS Logo

GflashShowino.h
Go to the documentation of this file.
1 #ifndef GflashShowino_H
2 #define GflashShowino_H
3 
7 
8 class GflashShowino {
9 public:
10  //-------------------------
11  // Constructor, destructor
12  //-------------------------
13  GflashShowino();
15 
16  void initialize(int showerType,
17  double energy,
18  double globalTime,
19  double charge,
21  Gflash3Vector &momentum,
22  double magneticField);
23 
24  void updateShowino(double deltaStep);
25 
26  int getShowerType() { return theShowerType; }
27  double getEnergy() { return theEnergy; }
34 
35  double getGlobalTime() { return theGlobalTime; }
36  double getPathLength() { return thePathLength; }
39  double getDepth() { return (thePathLength - thePathLengthAtShower); }
40 
41  void setGlobalTime(double globalTime) { theGlobalTime = globalTime; }
42  void setPathLength(double pathLength) { thePathLength = pathLength; }
45 
46 private:
48  int convertShowerType(int fastSimShowerType, const Gflash3Vector &pos);
49  void evaluateLengths();
50 
51 private:
52  // fixed at the shower starting point
54  double theEnergy;
60 
61  // updated along the showino trajectory line
62  double thePathLength;
63  double theGlobalTime;
66 
69 };
70 
71 #endif
GflashShowino::thePositionAtShower
Gflash3Vector thePositionAtShower
Definition: GflashShowino.h:55
GflashTrajectory.h
GflashShowino::getDepth
double getDepth()
Definition: GflashShowino.h:39
GflashShowino::getStepLengthToOut
double getStepLengthToOut()
Definition: GflashShowino.h:32
GflashNameSpace.h
Gflash3Vector.h
pos
Definition: PixelAliasList.h:18
GflashShowino::getStepLengthToHcal
double getStepLengthToHcal()
Definition: GflashShowino.h:31
GflashShowino::initialize
void initialize(int showerType, double energy, double globalTime, double charge, Gflash3Vector &position, Gflash3Vector &momentum, double magneticField)
Definition: GflashShowino.cc:21
GflashShowino::updateShowino
void updateShowino(double deltaStep)
Definition: GflashShowino.cc:53
HLT_FULL_cff.magneticField
magneticField
Definition: HLT_FULL_cff.py:348
GflashShowino::setPathLength
void setPathLength(double pathLength)
Definition: GflashShowino.h:42
GflashShowino::thePosition
Gflash3Vector thePosition
Definition: GflashShowino.h:64
GflashShowino::getEnergyDeposited
double getEnergyDeposited()
Definition: GflashShowino.h:38
GflashTrajectory
Definition: GflashTrajectory.h:6
GflashShowino::thePathLength
double thePathLength
Definition: GflashShowino.h:62
GflashShowino::convertShowerType
int convertShowerType(int fastSimShowerType, const Gflash3Vector &pos)
GflashShowino
Definition: GflashShowino.h:8
GflashShowino::getPathLength
double getPathLength()
Definition: GflashShowino.h:36
GflashShowino::getPathLengthOnEcal
double getPathLengthOnEcal()
Definition: GflashShowino.h:28
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
GflashShowino::~GflashShowino
~GflashShowino()
Definition: GflashShowino.cc:19
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
GflashShowino::setPosition
void setPosition(const Gflash3Vector &position)
Definition: GflashShowino.h:43
GflashShowino::getPosition
Gflash3Vector & getPosition()
Definition: GflashShowino.h:37
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
GflashShowino::getShowerType
int getShowerType()
Definition: GflashShowino.h:26
GflashShowino::simulateFirstInteractionPoint
Gflash3Vector & simulateFirstInteractionPoint(int showType, Gflash3Vector &pos)
Definition: GflashShowino.cc:98
GflashShowino::evaluateLengths
void evaluateLengths()
Definition: GflashShowino.cc:64
Gflash3Vector
CLHEP::Hep3Vector Gflash3Vector
Definition: Gflash3Vector.h:6
GflashShowino::getEnergy
double getEnergy()
Definition: GflashShowino.h:27
GflashShowino::GflashShowino
GflashShowino()
Definition: GflashShowino.cc:4
GflashShowino::thePathLengthOnEcal
double thePathLengthOnEcal
Definition: GflashShowino.h:57
GflashShowino::addEnergyDeposited
void addEnergyDeposited(double energy)
Definition: GflashShowino.h:44
GflashShowino::getGlobalTime
double getGlobalTime()
Definition: GflashShowino.h:35
GflashShowino::theEnergyDeposited
double theEnergyDeposited
Definition: GflashShowino.h:65
GflashShowino::thePathLengthAtShower
double thePathLengthAtShower
Definition: GflashShowino.h:56
GflashShowino::theStepLengthToHcal
double theStepLengthToHcal
Definition: GflashShowino.h:58
GflashShowino::getHelix
GflashTrajectory * getHelix()
Definition: GflashShowino.h:33
GflashShowino::theHelix
GflashTrajectory * theHelix
Definition: GflashShowino.h:67
GflashShowino::getPositionAtShower
Gflash3Vector & getPositionAtShower()
Definition: GflashShowino.h:30
GflashShowino::theShowerType
int theShowerType
Definition: GflashShowino.h:53
GflashShowino::theEnergy
double theEnergy
Definition: GflashShowino.h:54
GflashShowino::theGlobalTime
double theGlobalTime
Definition: GflashShowino.h:63
GflashShowino::setGlobalTime
void setGlobalTime(double globalTime)
Definition: GflashShowino.h:41
GflashShowino::getPathLengthAtShower
double getPathLengthAtShower()
Definition: GflashShowino.h:29
GflashShowino::theStepLengthToOut
double theStepLengthToOut
Definition: GflashShowino.h:59
GflashTrajectoryPoint
Definition: GflashTrajectoryPoint.h:8
GflashShowino::theTrajectoryPoint
GflashTrajectoryPoint theTrajectoryPoint
Definition: GflashShowino.h:68