CGEM BOSS 6.6.5.f
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 ()
 
 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

Constructor & Destructor Documentation

◆ BesEmcDigi() [1/4]

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() [1/2]

BesEmcDigi::~BesEmcDigi ( )
virtual

Definition at line 26 of file BesEmcDigi.cc.

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

◆ BesEmcDigi() [2/4]

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}

◆ BesEmcDigi() [3/4]

BesEmcDigi::BesEmcDigi ( )

◆ ~BesEmcDigi() [2/2]

virtual BesEmcDigi::~BesEmcDigi ( )
virtual

◆ BesEmcDigi() [4/4]

BesEmcDigi::BesEmcDigi ( const BesEmcDigi )

Member Function Documentation

◆ Draw() [1/2]

void BesEmcDigi::Draw ( )
virtual

Definition at line 73 of file BesEmcDigi.cc.

74{
75}

◆ Draw() [2/2]

virtual void BesEmcDigi::Draw ( )
virtual

◆ GetEnergy() [1/2]

◆ GetEnergy() [2/2]

G4double BesEmcDigi::GetEnergy ( )
inline

Definition at line 52 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

52{ return m_energy; };

◆ GetPartId() [1/2]

◆ GetPartId() [2/2]

G4int BesEmcDigi::GetPartId ( )
inline

Definition at line 49 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

49{return m_partId;};

◆ GetPhiNb() [1/2]

◆ GetPhiNb() [2/2]

G4int BesEmcDigi::GetPhiNb ( )
inline

Definition at line 51 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

51{ return m_nPhi; };

◆ GetThetaNb() [1/2]

◆ GetThetaNb() [2/2]

G4int BesEmcDigi::GetThetaNb ( )
inline

Definition at line 50 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

50{ return m_nTheta;};

◆ GetTime() [1/2]

G4double BesEmcDigi::GetTime ( )
inline

◆ GetTime() [2/2]

G4double BesEmcDigi::GetTime ( )
inline

Definition at line 53 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

53{ return m_time; };

◆ GetTrackIndex() [1/2]

G4int BesEmcDigi::GetTrackIndex ( )
inline

◆ GetTrackIndex() [2/2]

G4int BesEmcDigi::GetTrackIndex ( )
inline

Definition at line 54 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

54{ return m_trackIndex; };

◆ GetWaveform() [1/2]

BesEmcWaveform * BesEmcDigi::GetWaveform ( )
inline

◆ GetWaveform() [2/2]

BesEmcWaveform * BesEmcDigi::GetWaveform ( )
inline

Definition at line 55 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

55{ return digiWaveform; };

◆ MakeWaveform() [1/2]

void BesEmcDigi::MakeWaveform ( )

Definition at line 82 of file BesEmcDigi.cc.

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

◆ MakeWaveform() [2/2]

void BesEmcDigi::MakeWaveform ( )

◆ operator delete() [1/2]

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

Definition at line 80 of file InstallArea/include/EmcSim/EmcSim/BesEmcDigi.hh.

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

◆ operator delete() [2/2]

void BesEmcDigi::operator delete ( void *  )
inline

◆ operator new() [1/2]

void * BesEmcDigi::operator new ( size_t  )
inline

Definition at line 73 of file InstallArea/include/EmcSim/EmcSim/BesEmcDigi.hh.

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

◆ operator new() [2/2]

void * BesEmcDigi::operator new ( size_t  )
inline

◆ operator+=() [1/2]

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+=() [2/2]

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

◆ operator=() [1/2]

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=() [2/2]

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

◆ operator==() [1/2]

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

Definition at line 67 of file BesEmcDigi.cc.

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

◆ operator==() [2/2]

virtual G4int BesEmcDigi::operator== ( const BesEmcDigi ) const
virtual

◆ Print() [1/2]

void BesEmcDigi::Print ( )
virtual

Definition at line 78 of file BesEmcDigi.cc.

79{
80}

◆ Print() [2/2]

virtual void BesEmcDigi::Print ( )
virtual

◆ SetEnergy() [1/2]

void BesEmcDigi::SetEnergy ( G4double  energy)
inline

Definition at line 44 of file InstallArea/include/EmcSim/EmcSim/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().

◆ SetEnergy() [2/2]

void BesEmcDigi::SetEnergy ( G4double  energy)
inline

Definition at line 44 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

44{ m_energy = energy; };

◆ SetPartId() [1/2]

void BesEmcDigi::SetPartId ( G4int  id)
inline

◆ SetPartId() [2/2]

void BesEmcDigi::SetPartId ( G4int  id)
inline

Definition at line 41 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

41{ m_partId = id; };

◆ SetPhiNb() [1/2]

◆ SetPhiNb() [2/2]

void BesEmcDigi::SetPhiNb ( G4int  nPhi)
inline

Definition at line 43 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

43{ m_nPhi = nPhi; };

◆ SetThetaNb() [1/2]

void BesEmcDigi::SetThetaNb ( G4int  nTheta)
inline

◆ SetThetaNb() [2/2]

void BesEmcDigi::SetThetaNb ( G4int  nTheta)
inline

Definition at line 42 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

42{ m_nTheta = nTheta; };

◆ SetTime() [1/2]

void BesEmcDigi::SetTime ( G4double  time)
inline

◆ SetTime() [2/2]

void BesEmcDigi::SetTime ( G4double  time)
inline

Definition at line 45 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

45{ m_time = time;};

◆ SetTrackIndex() [1/2]

void BesEmcDigi::SetTrackIndex ( G4int  index)
inline

◆ SetTrackIndex() [2/2]

void BesEmcDigi::SetTrackIndex ( G4int  index)
inline

Definition at line 46 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

46{ m_trackIndex = index; };

◆ SetWaveform() [1/2]

void BesEmcDigi::SetWaveform ( BesEmcWaveform wave)
inline

◆ SetWaveform() [2/2]

void BesEmcDigi::SetWaveform ( BesEmcWaveform wave)
inline

Definition at line 47 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcDigi.hh.

47{ digiWaveform = wave; };

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