BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
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
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
vector< G4int > * GetHitIndexes_mrpc()
Definition: ScintSingle.hh:48
const ScintSingle & operator=(const ScintSingle &right)
Definition: ScintSingle.hh:32
void SetEdep(G4double e)
Definition: ScintSingle.hh:53
G4int GetModule_mrpc()
Definition: ScintSingle.hh:49
G4int GetPartId()
Definition: ScintSingle.hh:44
void SetScinNb(G4int nb)
Definition: ScintSingle.hh:52
vector< G4int > * GetHitIndexes()
Definition: ScintSingle.hh:47
G4int GetScinNb()
Definition: ScintSingle.hh:45
ScintSingle(const ScintSingle &right)
Definition: ScintSingle.hh:26
void SetPartId(G4int id)
Definition: ScintSingle.hh:51
G4double GetEdep()
Definition: ScintSingle.hh:46
void AddEdep(G4double e)
Definition: ScintSingle.hh:54