00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ScintSingle_h
00013 #define ScintSingle_h 1
00014
00015 #include <vector>
00016 using namespace std;
00017
00018 class ScintSingle
00019 {
00020 public:
00021
00022 ScintSingle()
00023 {
00024 hitIndexes = new vector<G4int>;
00025 }
00026 ScintSingle(const ScintSingle& right)
00027 {
00028 partId = right.partId;
00029 scinNb = right.scinNb;
00030 hitIndexes =right.hitIndexes;
00031 }
00032 const ScintSingle& operator=(const ScintSingle& right)
00033 {
00034 partId = right.partId;
00035 scinNb = right.scinNb;
00036 hitIndexes =right.hitIndexes;
00037 return *this;
00038 }
00039 ~ScintSingle()
00040 {
00041 delete hitIndexes;
00042 }
00043
00044 G4int GetPartId() {return partId;}
00045 G4int GetScinNb() {return scinNb;}
00046 G4double GetEdep() {return edep;}
00047 vector<G4int>* GetHitIndexes() {return hitIndexes;}
00048
00049 void SetPartId(G4int id) {partId = id;}
00050 void SetScinNb(G4int nb) {scinNb = nb;}
00051 void SetEdep(G4double e) {edep = e;}
00052 void AddEdep(G4double e) {edep += e;}
00053 private:
00054
00055 G4int partId;
00056 G4int scinNb;
00057 G4double edep;
00058 vector<G4int>* hitIndexes;
00059 };
00060
00061 #endif
00062