CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BscG4Hit.h
Go to the documentation of this file.
1 // File: BscG4Hit.h
3 // Date: 02.2006
4 //
5 // Package: Bsc
6 // Class : BscG4Hit
7 //
9 #ifndef BscG4Hit_h
10 #define BscG4Hit_h
11 
12 #include "G4VHit.hh"
13 #include <CLHEP/Vector/ThreeVector.h>
14 #include <boost/cstdint.hpp>
15 #include <iostream>
16 
17 #include "G4Step.hh"
18 //#include "G4StepPoint.hh"
19 
20 class BscG4Hit : public G4VHit {
21 
22 public:
23 
24  BscG4Hit();
25  ~BscG4Hit();
26  BscG4Hit(const BscG4Hit &right);
27  const BscG4Hit& operator=(const BscG4Hit &right);
28  int operator==(const BscG4Hit &){return 0;}
29 
30  void Draw(){}
31  void Print();
32 
33 public:
34 
35  G4ThreeVector getEntry() const;
36  void setEntry(const G4ThreeVector& xyz);
37 
38  G4ThreeVector getEntryLocalP() const;
39  void setEntryLocalP(const G4ThreeVector& xyz1);
40 
41  G4ThreeVector getExitLocalP() const;
42  void setExitLocalP(const G4ThreeVector& xyz1);
43 
44  double getEM() const;
45  void setEM (double e);
46 
47  double getHadr() const;
48  void setHadr (double e);
49 
50  double getIncidentEnergy() const;
51  void setIncidentEnergy (double e);
52 
53  G4int getTrackID() const;
54  void setTrackID (int i);
55 
56  unsigned int getUnitID() const;
57  void setUnitID (unsigned int i);
58 
59  double getTimeSlice() const;
60  void setTimeSlice(double d);
61  int getTimeSliceID() const;
62 
63  void addEnergyDeposit(double em, double hd);
64  void addEnergyDeposit(const BscG4Hit& aHit);
65 
66  double getEnergyDeposit() const;
67 
68  float getPabs() const;
69  float getTof() const;
70  float getEnergyLoss() const;
71  int getParticleType() const;
72 
73  void setPabs(float e) ;
74  void setTof(float e) ;
75  void setEnergyLoss(float e) ;
76  void setParticleType(short i) ;
77 
78  float getThetaAtEntry() const;
79  float getPhiAtEntry() const;
80 
81  void setThetaAtEntry(float t);
82  void setPhiAtEntry(float f) ;
83 
84  float getX() const;
85  void setX(float t);
86  float getY() const;
87  float getZ() const;
88  void setY(float t);
89  void setZ(float t);
90 
91 
92  int getParentId() const;
93  float getVx() const;
94  float getVy() const;
95  float getVz() const;
96 
97  void setParentId(int p);
98  void setVx(float p);
99  void setVy(float p);
100  void setVz(float p);
101 
102 
103 private:
104 
105  G4ThreeVector entry; //Entry point
106  G4ThreeVector entrylp; //Entry local point
107  G4ThreeVector exitlp; //Exit local point
108  double elem; //EnergyDeposit of EM particles
109  double hadr; //EnergyDeposit of HD particles
110  double theIncidentEnergy; //Energy of the primary particle
111  G4int theTrackID; //Identification number of the primary
112  //particle
113  double theTimeSlice; //Time Slice Identification
114 
115  int theUnitID; //Bsc Unit Number
116 
117  float theX;
118  float theY;
119  float theZ;
120  float thePabs ;
121  float theTof ;
124 
125 
128 
130  float theVx;
131  float theVy;
132  float theVz;
133 
134 
135 };
136 
137 std::ostream& operator<<(std::ostream&, const BscG4Hit&);
138 
139 #endif
140 
float getVy() const
Definition: BSCG4Hit.cc:179
void setTof(float e)
Definition: BSCG4Hit.cc:154
int i
Definition: DBlmapReader.cc:9
float theVx
Definition: BscG4Hit.h:130
void setEntry(const G4ThreeVector &xyz)
Definition: BSCG4Hit.cc:116
G4ThreeVector getEntryLocalP() const
Definition: BSCG4Hit.cc:118
float getPhiAtEntry() const
Definition: BSCG4Hit.cc:159
float theVy
Definition: BscG4Hit.h:131
void setVx(float p)
Definition: BSCG4Hit.cc:177
int getParticleType() const
Definition: BSCG4Hit.cc:151
G4int getTrackID() const
Definition: BSCG4Hit.cc:133
float getVz() const
Definition: BSCG4Hit.cc:182
float theX
Definition: BscG4Hit.h:117
float theVz
Definition: BscG4Hit.h:132
G4ThreeVector entry
Definition: BscG4Hit.h:105
void setTrackID(int i)
Definition: BSCG4Hit.cc:134
void setEnergyLoss(float e)
Definition: BSCG4Hit.cc:155
void setParentId(int p)
Definition: BSCG4Hit.cc:174
int theUnitID
Definition: BscG4Hit.h:115
void setUnitID(unsigned int i)
Definition: BSCG4Hit.cc:137
float getTof() const
Definition: BSCG4Hit.cc:149
float getPabs() const
Definition: BSCG4Hit.cc:148
BscG4Hit()
Definition: BSCG4Hit.cc:9
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void setVy(float p)
Definition: BSCG4Hit.cc:180
void setY(float t)
Definition: BSCG4Hit.cc:168
unsigned int getUnitID() const
Definition: BSCG4Hit.cc:136
float getY() const
Definition: BSCG4Hit.cc:167
float theEnergyLoss
Definition: BscG4Hit.h:122
float theTof
Definition: BscG4Hit.h:121
int getTimeSliceID() const
Definition: BSCG4Hit.cc:141
int theParticleType
Definition: BscG4Hit.h:123
void setThetaAtEntry(float t)
Definition: BSCG4Hit.cc:161
tuple d
Definition: ztail.py:151
void setX(float t)
Definition: BSCG4Hit.cc:165
void setPabs(float e)
Definition: BSCG4Hit.cc:153
double getHadr() const
Definition: BSCG4Hit.cc:127
void setEntryLocalP(const G4ThreeVector &xyz1)
Definition: BSCG4Hit.cc:119
const BscG4Hit & operator=(const BscG4Hit &right)
Definition: BSCG4Hit.cc:72
float thePabs
Definition: BscG4Hit.h:120
void setPhiAtEntry(float f)
Definition: BSCG4Hit.cc:162
double hadr
Definition: BscG4Hit.h:109
~BscG4Hit()
Definition: BSCG4Hit.cc:38
double f[11][100]
void Draw()
Definition: BscG4Hit.h:30
float getThetaAtEntry() const
Definition: BSCG4Hit.cc:158
int operator==(const BscG4Hit &)
Definition: BscG4Hit.h:28
void addEnergyDeposit(double em, double hd)
Definition: BSCG4Hit.cc:143
G4int theTrackID
Definition: BscG4Hit.h:111
void setEM(double e)
Definition: BSCG4Hit.cc:125
void setTimeSlice(double d)
Definition: BSCG4Hit.cc:140
void setParticleType(short i)
Definition: BSCG4Hit.cc:156
void Print()
Definition: BSCG4Hit.cc:111
void setVz(float p)
Definition: BSCG4Hit.cc:183
float theZ
Definition: BscG4Hit.h:119
G4ThreeVector exitlp
Definition: BscG4Hit.h:107
G4ThreeVector getExitLocalP() const
Definition: BSCG4Hit.cc:121
int theParentId
Definition: BscG4Hit.h:129
float theThetaAtEntry
Definition: BscG4Hit.h:126
float thePhiAtEntry
Definition: BscG4Hit.h:127
double theTimeSlice
Definition: BscG4Hit.h:113
float getVx() const
Definition: BSCG4Hit.cc:176
double getEnergyDeposit() const
Definition: BSCG4Hit.cc:146
double elem
Definition: BscG4Hit.h:108
G4ThreeVector getEntry() const
Definition: BSCG4Hit.cc:115
double theIncidentEnergy
Definition: BscG4Hit.h:110
void setZ(float t)
Definition: BSCG4Hit.cc:171
G4ThreeVector entrylp
Definition: BscG4Hit.h:106
void setHadr(double e)
Definition: BSCG4Hit.cc:128
double getIncidentEnergy() const
Definition: BSCG4Hit.cc:130
int getParentId() const
Definition: BSCG4Hit.cc:173
float getZ() const
Definition: BSCG4Hit.cc:170
float getX() const
Definition: BSCG4Hit.cc:164
void setExitLocalP(const G4ThreeVector &xyz1)
Definition: BSCG4Hit.cc:122
void setIncidentEnergy(double e)
Definition: BSCG4Hit.cc:131
double getTimeSlice() const
Definition: BSCG4Hit.cc:139
double getEM() const
Definition: BSCG4Hit.cc:124
float getEnergyLoss() const
Definition: BSCG4Hit.cc:150
float theY
Definition: BscG4Hit.h:118