BOSS 8.0.0
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 "EmcSim/BesEmcDigi.hh"
13
14G4Allocator<BesEmcDigi> BesEmcDigiAllocator;
15
17 m_partId = 0;
18 m_nTheta = 0;
19 m_nPhi = 0;
20 m_energy = 0;
21 m_time = 0;
22 digiWaveform = new BesEmcWaveform();
23}
24
26 if ( digiWaveform ) delete digiWaveform;
27}
28
29BesEmcDigi::BesEmcDigi( const BesEmcDigi& right ) : G4VDigi() {
30 m_partId = right.m_partId;
31 m_nTheta = right.m_nTheta;
32 m_nPhi = right.m_nPhi;
33 m_energy = right.m_energy;
34 m_time = right.m_time;
35}
36
38 m_partId = right.m_partId;
39 m_nTheta = right.m_nTheta;
40 m_nPhi = right.m_nPhi;
41 m_energy = right.m_energy;
42 m_time = right.m_time;
43 return *this;
44}
45
47 BesEmcDigi* digi = const_cast<BesEmcDigi*>( &right );
48 digiWaveform->updateWaveform( digi );
49
50 G4long bin;
51 m_energy = digiWaveform->max( bin );
52 m_time = (G4double)bin;
53
54 return *this;
55}
56
57int BesEmcDigi::operator==( const BesEmcDigi& right ) const {
58 return ( this == &right ) ? 1 : 0;
59}
60
62
64
65void BesEmcDigi::MakeWaveform() { digiWaveform->updateWaveform( this ); }
*******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
G4Allocator< BesEmcDigi > BesEmcDigiAllocator
Definition BesEmcDigi.cc:14
virtual G4int operator==(const BesEmcDigi &) const
Definition BesEmcDigi.cc:57
virtual void Print()
Definition BesEmcDigi.cc:63
virtual void Draw()
Definition BesEmcDigi.cc:61
virtual ~BesEmcDigi()
Definition BesEmcDigi.cc:25
virtual BesEmcDigi & operator+=(const BesEmcDigi &)
Definition BesEmcDigi.cc:46
const BesEmcDigi & operator=(const BesEmcDigi &)
Definition BesEmcDigi.cc:37
void MakeWaveform()
Definition BesEmcDigi.cc:65