BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/TofSim/TofSim-00-02-37/TofSim/ScintSingle.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description:
5//Author: Dengzy
6//Created: Mar, 2004
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10// $Id: ScintSingle.hh
11
12#ifndef ScintSingle_h
13#define ScintSingle_h 1
14
15#include <vector>
16using namespace std;
17
18class ScintSingle
19{
20 public:
21
23 {
24 hitIndexes = new vector<G4int>;
25 }
27 {
28 partId = right.partId;
29 scinNb = right.scinNb;
30 hitIndexes =right.hitIndexes;
31 }
32 const ScintSingle& operator=(const ScintSingle& right)
33 {
34 partId = right.partId;
35 scinNb = right.scinNb;
36 hitIndexes =right.hitIndexes;
37 return *this;
38 }
40 {
41 delete hitIndexes;
42 }
43
44 G4int GetPartId() {return partId;}
45 G4int GetScinNb() {return scinNb;}
46 G4double GetEdep() {return edep;}
47 vector<G4int>* GetHitIndexes() {return hitIndexes;}
48 vector<G4int>* GetHitIndexes_mrpc() {return hitIndexes;}
49 G4int GetModule_mrpc() {return scinNb;}
50
51 void SetPartId(G4int id) {partId = id;}
52 void SetScinNb(G4int nb) {scinNb = nb;}
53 void SetEdep(G4double e) {edep = e;}
54 void AddEdep(G4double e) {edep += e;}
55 private:
56
57 G4int partId;
58 G4int scinNb;
59 G4double edep;
60 vector<G4int>* hitIndexes;
61};
62
63#endif
64
const ScintSingle & operator=(const ScintSingle &right)