10 #include "G4ThreeVector.hh" 37 vector<G4ThreeVector> pos;
38 vector<G4ThreeVector> Lpos;
39 vector<G4ThreeVector> vert;
43 vector<G4ThreeVector> mom;
51 vector<G4ThreeVector> mvert;
52 vector<string> materialName;
53 vector<int> processID;
55 vector<detector> Detectors;
57 vector<identifier> identity;
60 vector<double> signalT;
61 vector<double> signalV;
65 vector<int> quantumTR;
71 inline void SetPos(G4ThreeVector xyz) { pos.push_back(xyz); }
72 inline vector<G4ThreeVector>
GetPos() {
return pos; }
73 inline G4ThreeVector
GetLastPos() {
if(pos.size())
return pos[pos.size()-1];
else return G4ThreeVector(0,0,0); }
75 inline void SetLPos(G4ThreeVector xyz) { Lpos.push_back(xyz); }
76 inline vector<G4ThreeVector>
GetLPos() {
return Lpos; }
78 inline void SetVert(G4ThreeVector ver) { vert.push_back(ver); }
79 inline G4ThreeVector
GetVert() {
return vert[0]; }
80 inline vector<G4ThreeVector>
GetVerts() {
return vert; }
82 inline void SetEdep(
double depe) { edep.push_back(depe); }
83 inline vector<double>
GetEdep() {
return edep; }
85 inline void SetDx(
double Dx) { dx.push_back(Dx); }
86 inline vector<double>
GetDx() {
return dx; }
88 inline void SetTime(
double ctime) { time.push_back(ctime); }
89 inline vector<double>
GetTime() {
return time; }
91 inline void SetMom(G4ThreeVector pxyz) { mom.push_back(pxyz); }
92 inline G4ThreeVector
GetMom() {
return mom[0]; }
93 inline vector<G4ThreeVector>
GetMoms() {
return mom; }
95 inline void SetE(
double ene) { E.push_back(ene); }
96 inline double GetE() {
return E[0]; }
97 inline vector<double>
GetEs() {
return E; }
99 inline void SetTrackId(
int tid) { trackID.push_back(tid); }
100 inline int GetTId() {
return trackID[0]; }
101 inline vector<int>
GetTIds() {
return trackID; }
103 inline vector<identifier>
GetId() {
return identity; }
104 inline void SetId(vector<identifier> iden) { identity = iden; }
110 inline void SetPID(
int pid) { PID.push_back(pid); }
129 inline void SetmPID(
int mpid) { mPID.push_back(mpid); }
130 inline void SetmPIDs(vector<int> mpid) { mPID = mpid; }
134 inline void SetmVert(G4ThreeVector ver) { mvert.push_back(ver); }
135 inline void SetmVerts(vector<G4ThreeVector> ver) { mvert = ver; }
136 inline G4ThreeVector
GetmVert() {
return mvert[0]; }
137 inline vector<G4ThreeVector>
GetmVerts() {
return mvert; }
139 inline void SetMatName(
string mname) { materialName.push_back(mname); }
140 inline void SetMatNames(vector<string> mnames) { materialName = mnames; }
144 inline void SetProcID(
int procID) { processID.push_back(procID); }
145 inline void SetProcID(vector<int> procIDs) { processID = procIDs; }
158 for(map< double, double >::iterator it = VT.begin(); it!=VT.end(); it++)
160 signalT.push_back(it->first);
161 signalV.push_back(it->second);
173 for(map< int, int >::iterator it = QS.begin(); it!=QS.end(); it++)
175 quantumT.push_back(it->first);
176 quantumQ.push_back(it->second);
193 #include "G4THitsCollection.hh" void setSignal(map< double, double > VT)
void SetMatNames(vector< string > mnames)
void setQuantum(map< int, int > QS)
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 setQuantumTR(vector< int > t)
vector< int > getQuantumTR()
void SetEdep(double depe)
vector< G4ThreeVector > GetLPos()
void SetMom(G4ThreeVector pxyz)
vector< G4ThreeVector > GetPos()
void SetProcID(int procID)
vector< int > getQuantumT()
vector< int > GetProcIDs()
vector< G4ThreeVector > GetmVerts()
G4THitsCollection< MHit > MHitCollection
void SetId(vector< identifier > iden)
void SetoTrackIds(vector< int > tid)
vector< int > getQuantumQ()
vector< double > GetTime()
void SetmVert(G4ThreeVector ver)
const MHit & operator=(const MHit &)
void SetProcID(vector< int > procIDs)
void SetSDID(sensitiveID s)
vector< string > GetMatNames()
void SetLPos(G4ThreeVector xyz)
void SetMatName(string mname)
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)