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 
10 public:
11  //-------------------------
12  // Constructor, destructor
13  //-------------------------
14  GflashShowino();
16 
17  void initialize(int showerType, double energy, double globalTime,double charge,
19  double magneticField);
20 
21  void updateShowino(double deltaStep);
22 
23  int getShowerType() { return theShowerType; }
24  double getEnergy() { return theEnergy; }
31 
32  double getGlobalTime() { return theGlobalTime; }
33  double getPathLength() { return thePathLength; }
35  double getEnergyDeposited() { return theEnergyDeposited ; }
37 
38  void setGlobalTime(double globalTime) { theGlobalTime = globalTime; }
39  void setPathLength(double pathLength) { thePathLength = pathLength; }
40  void setPosition(const Gflash3Vector& position) { thePosition = position; }
41  void addEnergyDeposited(double energy ) { theEnergyDeposited += energy; }
42 
43 private:
45  int convertShowerType(int fastSimShowerType, const Gflash3Vector& pos);
46  void evaluateLengths();
47 
48 private:
49 
50  //fixed at the shower starting point
52  double theEnergy;
58 
59  //updated along the showino trajectory line
60  double thePathLength;
61  double theGlobalTime;
64 
67 };
68 
69 #endif
70 
71 
Gflash3Vector & getPosition()
Definition: GflashShowino.h:34
double thePathLengthAtShower
Definition: GflashShowino.h:54
GflashTrajectory * getHelix()
Definition: GflashShowino.h:30
GflashTrajectory * theHelix
Definition: GflashShowino.h:65
double getEnergy()
Definition: GflashShowino.h:24
int getShowerType()
Definition: GflashShowino.h:23
double getPathLength()
Definition: GflashShowino.h:33
Gflash3Vector & simulateFirstInteractionPoint(int showType, Gflash3Vector &pos)
void evaluateLengths()
int convertShowerType(int fastSimShowerType, const Gflash3Vector &pos)
void addEnergyDeposited(double energy)
Definition: GflashShowino.h:41
double theStepLengthToHcal
Definition: GflashShowino.h:56
double getStepLengthToHcal()
Definition: GflashShowino.h:28
double getPathLengthAtShower()
Definition: GflashShowino.h:26
double thePathLength
Definition: GflashShowino.h:60
double getEnergyDeposited()
Definition: GflashShowino.h:35
Gflash3Vector thePosition
Definition: GflashShowino.h:62
void setPathLength(double pathLength)
Definition: GflashShowino.h:39
Gflash3Vector & getPositionAtShower()
Definition: GflashShowino.h:27
double theEnergy
Definition: GflashShowino.h:52
double getDepth()
Definition: GflashShowino.h:36
Gflash3Vector thePositionAtShower
Definition: GflashShowino.h:53
CLHEP::Hep3Vector Gflash3Vector
Definition: Gflash3Vector.h:6
double getGlobalTime()
Definition: GflashShowino.h:32
double thePathLengthOnEcal
Definition: GflashShowino.h:55
double getPathLengthOnEcal()
Definition: GflashShowino.h:25
double theEnergyDeposited
Definition: GflashShowino.h:63
void setGlobalTime(double globalTime)
Definition: GflashShowino.h:38
void setPosition(const Gflash3Vector &position)
Definition: GflashShowino.h:40
static int position[264][3]
Definition: ReadPGInfo.cc:509
double theStepLengthToOut
Definition: GflashShowino.h:57
GflashTrajectoryPoint theTrajectoryPoint
Definition: GflashShowino.h:66
double getStepLengthToOut()
Definition: GflashShowino.h:29
double theGlobalTime
Definition: GflashShowino.h:61
void initialize(int showerType, double energy, double globalTime, double charge, Gflash3Vector &position, Gflash3Vector &momentum, double magneticField)
void updateShowino(double deltaStep)