/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/TofSim/TofSim-00-02-33/TofSim/ScintSingle.hh

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------//
00002 //      BOOST --- BESIII Object_Oriented Simulation Tool                     //
00003 //---------------------------------------------------------------------------//
00004 //Description:
00005 //Author: Dengzy
00006 //Created: Mar, 2004
00007 //Modified:
00008 //Comment:
00009 //---------------------------------------------------------------------------//
00010 // $Id: ScintSingle.hh
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     vector<G4int>* GetHitIndexes_mrpc() {return hitIndexes;}
00049     G4int GetModule_mrpc() {return scinNb;}
00050   
00051     void SetPartId(G4int id) {partId = id;}
00052     void SetScinNb(G4int nb) {scinNb = nb;}
00053     void SetEdep(G4double e) {edep = e;}
00054     void AddEdep(G4double e) {edep += e;}
00055   private:
00056 
00057     G4int partId;
00058     G4int scinNb;
00059     G4double edep;
00060     vector<G4int>* hitIndexes;
00061 };
00062 
00063 #endif
00064 

Generated on Tue Nov 29 23:14:32 2016 for BOSS_7.0.2 by  doxygen 1.4.7