BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcDigi.cxx
Go to the documentation of this file.
4
5EmcDigi::EmcDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel) :
6 RawData(id, timeChannel, chargeChannel),
7 m_measure(0) {
8}
9
10EmcDigi::EmcDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel,
11 const unsigned int measure) :
12 RawData(id, timeChannel, chargeChannel),
13 m_measure(measure) {
14}
15
16EmcDigi::EmcDigi(const unsigned int id) :
17 RawData(id),
18 m_measure(0) {
19}
20
21//mixing two digi with EmcWaveform
23{
24 if(m_id != digi.identify()) // do nothing
25 return *this;
26
30 double t2=RawDataUtil::EmcTime(digi.getTimeChannel());
31
32 EmcWaveform wave1,wave2;
33 wave1.makeWaveform(e1,t1);
34 wave2.makeWaveform(e2,t2);
35
36 //mixing
37 wave1 += wave2;
38
39 double energy;
40 int time;
41 energy = wave1.max(time);
42
46
47 return *this;
48}
Double_t time
Double_t e1
Double_t e2
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP 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
EmcDigi & operator+=(const EmcDigi &)
Definition: EmcDigi.cxx:22
unsigned int getMeasure() const
Definition: EmcDigi.h:27
EmcDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
Definition: EmcDigi.cxx:5
double max(int &binOfMax) const
Definition: EmcWaveform.cxx:77
void makeWaveform(double energy, double time)
static double EmcTime(int timeChannel)
Definition: RawDataUtil.h:14
static int EmcChargeChannel(double charge)
Definition: RawDataUtil.h:37
static int EmcChargeMeasure(double charge)
Definition: RawDataUtil.h:50
static int EmcTimeChannel(double time)
Definition: RawDataUtil.h:15
static double EmcCharge(int measure, int chargeChannel)
Definition: RawDataUtil.h:17
unsigned int m_timeChannel
Definition: RawData.h:70
unsigned int m_chargeChannel
Definition: RawData.h:72
virtual Identifier identify() const
Definition: RawData.cxx:15
const Identifier m_id
Definition: RawData.h:68
unsigned int getChargeChannel() const
Definition: RawData.cxx:45
unsigned int getTimeChannel() const
Definition: RawData.cxx:40