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
Gflash3Vector & getPosition()
Definition: GflashShowino.h:37
double thePathLengthAtShower
Definition: GflashShowino.h:56
GflashTrajectory * getHelix()
Definition: GflashShowino.h:33
GflashTrajectory * theHelix
Definition: GflashShowino.h:67
double getEnergy()
Definition: GflashShowino.h:27
int getShowerType()
Definition: GflashShowino.h:26
double getPathLength()
Definition: GflashShowino.h:36
Gflash3Vector & simulateFirstInteractionPoint(int showType, Gflash3Vector &pos)
void evaluateLengths()
int convertShowerType(int fastSimShowerType, const Gflash3Vector &pos)
void addEnergyDeposited(double energy)
Definition: GflashShowino.h:44
double theStepLengthToHcal
Definition: GflashShowino.h:58
double getStepLengthToHcal()
Definition: GflashShowino.h:31
double getPathLengthAtShower()
Definition: GflashShowino.h:29
double thePathLength
Definition: GflashShowino.h:62
double getEnergyDeposited()
Definition: GflashShowino.h:38
Gflash3Vector thePosition
Definition: GflashShowino.h:64
void setPathLength(double pathLength)
Definition: GflashShowino.h:42
Gflash3Vector & getPositionAtShower()
Definition: GflashShowino.h:30
double theEnergy
Definition: GflashShowino.h:54
double getDepth()
Definition: GflashShowino.h:39
Gflash3Vector thePositionAtShower
Definition: GflashShowino.h:55
CLHEP::Hep3Vector Gflash3Vector
Definition: Gflash3Vector.h:6
double getGlobalTime()
Definition: GflashShowino.h:35
double thePathLengthOnEcal
Definition: GflashShowino.h:57
double getPathLengthOnEcal()
Definition: GflashShowino.h:28
double theEnergyDeposited
Definition: GflashShowino.h:65
void setGlobalTime(double globalTime)
Definition: GflashShowino.h:41
void setPosition(const Gflash3Vector &position)
Definition: GflashShowino.h:43
static int position[264][3]
Definition: ReadPGInfo.cc:289
double theStepLengthToOut
Definition: GflashShowino.h:59
GflashTrajectoryPoint theTrajectoryPoint
Definition: GflashShowino.h:68
double getStepLengthToOut()
Definition: GflashShowino.h:32
double theGlobalTime
Definition: GflashShowino.h:63
void initialize(int showerType, double energy, double globalTime, double charge, Gflash3Vector &position, Gflash3Vector &momentum, double magneticField)
void updateShowino(double deltaStep)