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

#include <BesEmcDigi.hh>

+ Inheritance diagram for BesEmcDigi:

Public Member Functions

 BesEmcDigi ()
 
virtual ~BesEmcDigi ()
 
 BesEmcDigi (const BesEmcDigi &)
 
const BesEmcDigioperator= (const BesEmcDigi &)
 
virtual BesEmcDigioperator+= (const BesEmcDigi &)
 
virtual G4int operator== (const BesEmcDigi &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void MakeWaveform ()
 
void SetPartId (G4int id)
 
void SetThetaNb (G4int nTheta)
 
void SetPhiNb (G4int nPhi)
 
void SetEnergy (G4double energy)
 
void SetTime (G4double time)
 
void SetTrackIndex (G4int index)
 
void SetWaveform (BesEmcWaveform *wave)
 
G4int GetPartId ()
 
G4int GetThetaNb ()
 
G4int GetPhiNb ()
 
G4double GetEnergy ()
 
G4double GetTime ()
 
G4int GetTrackIndex ()
 
BesEmcWaveformGetWaveform ()
 

Detailed Description

Definition at line 20 of file BesEmcDigi.hh.

Constructor & Destructor Documentation

◆ BesEmcDigi() [1/2]

BesEmcDigi::BesEmcDigi ( )

Definition at line 16 of file BesEmcDigi.cc.

17{
18 m_partId=0;
19 m_nTheta=0;
20 m_nPhi=0;
21 m_energy=0;
22 m_time=0;
23 digiWaveform = new BesEmcWaveform();
24}

◆ ~BesEmcDigi()

BesEmcDigi::~BesEmcDigi ( )
virtual

Definition at line 26 of file BesEmcDigi.cc.

27{
28 if(digiWaveform)
29 delete digiWaveform;
30}

◆ BesEmcDigi() [2/2]

BesEmcDigi::BesEmcDigi ( const BesEmcDigi right)

Definition at line 32 of file BesEmcDigi.cc.

33:G4VDigi()
34{
35 m_partId=right.m_partId;
36 m_nTheta=right.m_nTheta;
37 m_nPhi=right.m_nPhi;
38 m_energy=right.m_energy;
39 m_time=right.m_time;
40}

Member Function Documentation

◆ Draw()

void BesEmcDigi::Draw ( )
virtual

Definition at line 73 of file BesEmcDigi.cc.

74{
75}

◆ GetEnergy()

G4double BesEmcDigi::GetEnergy ( )
inline

◆ GetPartId()

G4int BesEmcDigi::GetPartId ( )
inline

◆ GetPhiNb()

G4int BesEmcDigi::GetPhiNb ( )
inline

◆ GetThetaNb()

G4int BesEmcDigi::GetThetaNb ( )
inline

◆ GetTime()

G4double BesEmcDigi::GetTime ( )
inline

◆ GetTrackIndex()

G4int BesEmcDigi::GetTrackIndex ( )
inline

Definition at line 54 of file BesEmcDigi.hh.

54{ return m_trackIndex; };

Referenced by BesRootIO::SaveEmcDigiRootEvent(), BesRawDataWriter::SaveEmcDigits(), and BesAsciiIO::SaveEmcDigits().

◆ GetWaveform()

BesEmcWaveform * BesEmcDigi::GetWaveform ( )
inline

Definition at line 55 of file BesEmcDigi.hh.

55{ return digiWaveform; };

Referenced by BesEmcDigitizer::AddNoise5x5(), BesEmcDigitizer::AddNoiseAll(), and BesEmcDigitizer::Digitize().

◆ MakeWaveform()

void BesEmcDigi::MakeWaveform ( )

Definition at line 82 of file BesEmcDigi.cc.

83{
84 digiWaveform->updateWaveform(this);
85}
void updateWaveform(BesEmcHit *)

◆ operator delete()

void BesEmcDigi::operator delete ( void *  aDigi)
inline

Definition at line 80 of file BesEmcDigi.hh.

81{
82 BesEmcDigiAllocator.FreeSingle((BesEmcDigi*) aDigi);
83}
G4Allocator< BesEmcDigi > BesEmcDigiAllocator
Definition: BesEmcDigi.cc:14

◆ operator new()

void * BesEmcDigi::operator new ( size_t  )
inline

Definition at line 73 of file BesEmcDigi.hh.

74{
75 void *aDigi;
76 aDigi = (void *) BesEmcDigiAllocator.MallocSingle();
77 return aDigi;
78}

◆ operator+=()

BesEmcDigi & BesEmcDigi::operator+= ( const BesEmcDigi right)
virtual

Definition at line 54 of file BesEmcDigi.cc.

55{
56 BesEmcDigi *digi = const_cast<BesEmcDigi*>(&right);
57 digiWaveform->updateWaveform(digi);
58
59 G4long bin;
60 m_energy=digiWaveform->max(bin);
61 m_time=(G4double)bin;
62
63 return *this;
64}
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
Definition: FoamA.h:85
G4double max(G4long &binOfMax) const

◆ operator=()

const BesEmcDigi & BesEmcDigi::operator= ( const BesEmcDigi right)

Definition at line 43 of file BesEmcDigi.cc.

44{
45 m_partId=right.m_partId;
46 m_nTheta=right.m_nTheta;
47 m_nPhi=right.m_nPhi;
48 m_energy=right.m_energy;
49 m_time=right.m_time;
50 return *this;
51}

◆ operator==()

int BesEmcDigi::operator== ( const BesEmcDigi right) const
virtual

Definition at line 67 of file BesEmcDigi.cc.

68{
69 return (this==&right) ? 1 : 0;
70}

◆ Print()

void BesEmcDigi::Print ( )
virtual

Definition at line 78 of file BesEmcDigi.cc.

79{
80}

◆ SetEnergy()

void BesEmcDigi::SetEnergy ( G4double  energy)
inline

Definition at line 44 of file BesEmcDigi.hh.

44{ m_energy = energy; };
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
Definition: KK2f.h:50

Referenced by BesEmcDigitizer::AddNoise5x5(), BesEmcDigitizer::AddNoiseAll(), BesEmcDigitizer::Digitize(), and BesTuningIO::GetEmcRootDigi().

◆ SetPartId()

void BesEmcDigi::SetPartId ( G4int  id)
inline

◆ SetPhiNb()

void BesEmcDigi::SetPhiNb ( G4int  nPhi)
inline

◆ SetThetaNb()

void BesEmcDigi::SetThetaNb ( G4int  nTheta)
inline

◆ SetTime()

void BesEmcDigi::SetTime ( G4double  time)
inline

◆ SetTrackIndex()

void BesEmcDigi::SetTrackIndex ( G4int  index)
inline

◆ SetWaveform()

void BesEmcDigi::SetWaveform ( BesEmcWaveform wave)
inline

Definition at line 47 of file BesEmcDigi.hh.

47{ digiWaveform = wave; };

Referenced by BesEmcDigitizer::AddNoise5x5(), BesEmcDigitizer::AddNoiseAll(), and BesEmcDigitizer::Digitize().


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