10 #include "G4ThreeVector.hh" 37 vector<G4ThreeVector> pos;
38 vector<G4ThreeVector> Lpos;
39 vector<G4ThreeVector> vert;
43 vector<G4ThreeVector> mom;
51 vector<G4ThreeVector> mvert;
53 vector<detector> Detectors;
55 vector<identifier> identity;
58 vector<double> signalT;
59 vector<double> signalV;
64 inline void SetPos(G4ThreeVector xyz) { pos.push_back(xyz); }
65 inline vector<G4ThreeVector>
GetPos() {
return pos; }
66 inline G4ThreeVector
GetLastPos() {
if(pos.size())
return pos[pos.size()-1];
else return G4ThreeVector(0,0,0); }
68 inline void SetLPos(G4ThreeVector xyz) { Lpos.push_back(xyz); }
69 inline vector<G4ThreeVector>
GetLPos() {
return Lpos; }
71 inline void SetVert(G4ThreeVector ver) { vert.push_back(ver); }
72 inline G4ThreeVector
GetVert() {
return vert[0]; }
73 inline vector<G4ThreeVector>
GetVerts() {
return vert; }
75 inline void SetEdep(
double depe) { edep.push_back(depe); }
76 inline vector<double>
GetEdep() {
return edep; }
78 inline void SetDx(
double Dx) { dx.push_back(Dx); }
79 inline vector<double>
GetDx() {
return dx; }
81 inline void SetTime(
double ctime) { time.push_back(ctime); }
82 inline vector<double>
GetTime() {
return time; }
84 inline void SetMom(G4ThreeVector pxyz) { mom.push_back(pxyz); }
85 inline G4ThreeVector
GetMom() {
return mom[0]; }
86 inline vector<G4ThreeVector>
GetMoms() {
return mom; }
88 inline void SetE(
double ene) { E.push_back(ene); }
89 inline double GetE() {
return E[0]; }
90 inline vector<double>
GetEs() {
return E; }
92 inline void SetTrackId(
int tid) { trackID.push_back(tid); }
93 inline int GetTId() {
return trackID[0]; }
94 inline vector<int>
GetTIds() {
return trackID; }
96 inline vector<identifier>
GetId() {
return identity; }
97 inline void SetId(vector<identifier> iden) { identity = iden; }
103 inline void SetPID(
int pid) { PID.push_back(pid); }
122 inline void SetmPID(
int mpid) { mPID.push_back(mpid); }
123 inline void SetmPIDs(vector<int> mpid) { mPID = mpid; }
127 inline void SetmVert(G4ThreeVector ver) { mvert.push_back(ver); }
128 inline void SetmVerts(vector<G4ThreeVector> ver) { mvert = ver; }
129 inline G4ThreeVector
GetmVert() {
return mvert[0]; }
130 inline vector<G4ThreeVector>
GetmVerts() {
return mvert; }
141 for(map< double, double >::iterator it = VT.begin(); it!=VT.end(); it++)
143 signalT.push_back(it->first);
144 signalV.push_back(it->second);
154 #include "G4THitsCollection.hh" void setSignal(map< double, double > VT)
void SetmPIDs(vector< int > mpid)
void SetmTrackIds(vector< int > tid)
vector< double > getSignalT()
vector< G4ThreeVector > GetMoms()
void SetPos(G4ThreeVector xyz)
vector< identifier > GetId()
vector< double > getSignalV()
vector< detector > GetDetectors()
void SetDetector(detector det)
vector< int > GetmTrackIds()
void SetEdep(double depe)
vector< G4ThreeVector > GetLPos()
void SetMom(G4ThreeVector pxyz)
vector< G4ThreeVector > GetPos()
vector< G4ThreeVector > GetmVerts()
G4THitsCollection< MHit > MHitCollection
void SetId(vector< identifier > iden)
void SetoTrackIds(vector< int > tid)
vector< double > GetTime()
void SetmVert(G4ThreeVector ver)
const MHit & operator=(const MHit &)
void SetSDID(sensitiveID s)
void SetLPos(G4ThreeVector xyz)
G4ThreeVector GetLastPos()
void SetTime(double ctime)
vector< double > GetEdep()
void SetmVerts(vector< G4ThreeVector > ver)
vector< int > GetoTrackIds()
vector< G4ThreeVector > GetVerts()
void SetVert(G4ThreeVector ver)
vector< int > GetCharges()
void SetoTrackId(int tid)
void SetmTrackId(int tid)