BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEmcDigi.cc
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description:
5//Author: Hemiao
6//Created: Sep, 2004
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10// $Id: BesEmcDigi.cc
11
12#include "BesEmcDigi.hh"
13
14G4Allocator<BesEmcDigi> BesEmcDigiAllocator;
15
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}
25
27{
28 if(digiWaveform)
29 delete digiWaveform;
30}
31
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}
41
42
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}
52
53
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}
65
66
67int BesEmcDigi::operator==(const BesEmcDigi& right) const
68{
69 return (this==&right) ? 1 : 0;
70}
71
72
74{
75}
76
77
79{
80}
81
83{
84 digiWaveform->updateWaveform(this);
85}
G4Allocator< BesEmcDigi > BesEmcDigiAllocator
Definition: BesEmcDigi.cc:14
*******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
virtual G4int operator==(const BesEmcDigi &) const
Definition: BesEmcDigi.cc:67
virtual void Print()
Definition: BesEmcDigi.cc:78
virtual void Draw()
Definition: BesEmcDigi.cc:73
virtual ~BesEmcDigi()
Definition: BesEmcDigi.cc:26
virtual BesEmcDigi & operator+=(const BesEmcDigi &)
Definition: BesEmcDigi.cc:54
const BesEmcDigi & operator=(const BesEmcDigi &)
Definition: BesEmcDigi.cc:43
void MakeWaveform()
Definition: BesEmcDigi.cc:82
void updateWaveform(BesEmcHit *)
G4double max(G4long &binOfMax) const