CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
CrystalSingle Class Reference

#include <BesEmcDigitizer.hh>

Public Member Functions

 CrystalSingle ()
 
 CrystalSingle (const CrystalSingle &right)
 
const CrystalSingleoperator= (const CrystalSingle &right)
 
 ~CrystalSingle ()
 
G4int GetPartId ()
 
G4int GetNTheta ()
 
G4int GetNPhi ()
 
G4double GetEdep ()
 
vector< G4int > * GetHitIndexes ()
 
void SetPartId (G4int id)
 
void SetNTheta (G4int theta)
 
void SetNPhi (G4int phi)
 
void SetEdep (G4double e)
 
void AddEdep (G4double e)
 

Friends

class BesEmcDigitizer
 

Detailed Description

Definition at line 26 of file BesEmcDigitizer.hh.

Constructor & Destructor Documentation

◆ CrystalSingle() [1/2]

CrystalSingle::CrystalSingle ( )
inline

Definition at line 32 of file BesEmcDigitizer.hh.

33 {
34 hitIndexes = new vector<G4int>;
35 }

◆ CrystalSingle() [2/2]

CrystalSingle::CrystalSingle ( const CrystalSingle right)
inline

Definition at line 36 of file BesEmcDigitizer.hh.

37 {
38 partId = right.partId;
39 nTheta = right.nTheta;
40 nPhi = right.nPhi;
41 edep = right.edep;
42 hitIndexes =right.hitIndexes;
43 }

◆ ~CrystalSingle()

CrystalSingle::~CrystalSingle ( )
inline

Definition at line 53 of file BesEmcDigitizer.hh.

54 {
55 delete hitIndexes;
56 }

Member Function Documentation

◆ AddEdep()

void CrystalSingle::AddEdep ( G4double  e)
inline

Definition at line 68 of file BesEmcDigitizer.hh.

68{edep += e;}

Referenced by BesEmcDigitizer::GroupHits().

◆ GetEdep()

G4double CrystalSingle::GetEdep ( )
inline

Definition at line 61 of file BesEmcDigitizer.hh.

61{return edep;}

Referenced by BesEmcDigitizer::Digitize().

◆ GetHitIndexes()

vector< G4int > * CrystalSingle::GetHitIndexes ( )
inline

Definition at line 62 of file BesEmcDigitizer.hh.

62{return hitIndexes;}

Referenced by BesEmcDigitizer::Digitize(), and BesEmcDigitizer::GroupHits().

◆ GetNPhi()

G4int CrystalSingle::GetNPhi ( )
inline

Definition at line 60 of file BesEmcDigitizer.hh.

60{return nPhi;}

Referenced by BesEmcDigitizer::Digitize(), and BesEmcDigitizer::GroupHits().

◆ GetNTheta()

G4int CrystalSingle::GetNTheta ( )
inline

Definition at line 59 of file BesEmcDigitizer.hh.

59{return nTheta;}

Referenced by BesEmcDigitizer::Digitize(), and BesEmcDigitizer::GroupHits().

◆ GetPartId()

G4int CrystalSingle::GetPartId ( )
inline

Definition at line 58 of file BesEmcDigitizer.hh.

58{return partId;}

Referenced by BesEmcDigitizer::Digitize(), and BesEmcDigitizer::GroupHits().

◆ operator=()

const CrystalSingle & CrystalSingle::operator= ( const CrystalSingle right)
inline

Definition at line 44 of file BesEmcDigitizer.hh.

45 {
46 partId = right.partId;
47 nTheta = right.nTheta;
48 nPhi = right.nPhi;
49 edep = right.edep;
50 hitIndexes =right.hitIndexes;
51 return *this;
52 }

◆ SetEdep()

void CrystalSingle::SetEdep ( G4double  e)
inline

Definition at line 67 of file BesEmcDigitizer.hh.

67{edep = e;}

Referenced by BesEmcDigitizer::GroupHits().

◆ SetNPhi()

void CrystalSingle::SetNPhi ( G4int  phi)
inline

Definition at line 66 of file BesEmcDigitizer.hh.

66{nPhi = phi;}

Referenced by BesEmcDigitizer::GroupHits().

◆ SetNTheta()

void CrystalSingle::SetNTheta ( G4int  theta)
inline

Definition at line 65 of file BesEmcDigitizer.hh.

65{nTheta = theta;}

Referenced by BesEmcDigitizer::GroupHits().

◆ SetPartId()

void CrystalSingle::SetPartId ( G4int  id)
inline

Definition at line 64 of file BesEmcDigitizer.hh.

64{partId = id;}

Referenced by BesEmcDigitizer::GroupHits().

Friends And Related Function Documentation

◆ BesEmcDigitizer

friend class BesEmcDigitizer
friend

Definition at line 28 of file BesEmcDigitizer.hh.


The documentation for this class was generated from the following file: