BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/TofSim/include/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 {
19public:
20 ScintSingle() { hitIndexes = new vector<G4int>; }
21 ScintSingle( const ScintSingle& right ) {
22 partId = right.partId;
23 scinNb = right.scinNb;
24 hitIndexes = right.hitIndexes;
25 }
26 const ScintSingle& operator=( const ScintSingle& right ) {
27 partId = right.partId;
28 scinNb = right.scinNb;
29 hitIndexes = right.hitIndexes;
30 return *this;
31 }
32 ~ScintSingle() { delete hitIndexes; }
33
34 G4int GetPartId() { return partId; }
35 G4int GetScinNb() { return scinNb; }
36 G4double GetEdep() { return edep; }
37 vector<G4int>* GetHitIndexes() { return hitIndexes; }
38 vector<G4int>* GetHitIndexes_mrpc() { return hitIndexes; }
39 G4int GetModule_mrpc() { return scinNb; }
40
41 void SetPartId( G4int id ) { partId = id; }
42 void SetScinNb( G4int nb ) { scinNb = nb; }
43 void SetEdep( G4double e ) { edep = e; }
44 void AddEdep( G4double e ) { edep += e; }
45
46private:
47 G4int partId;
48 G4int scinNb;
49 G4double edep;
50 vector<G4int>* hitIndexes;
51};
52
53#endif
const ScintSingle & operator=(const ScintSingle &right)