Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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   
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 

Generated on Wed Feb 2 15:42:09 2011 for BOSS6.5.5 by  doxygen 1.3.9.1