BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcDigi Class Reference

#include <EmcDigi.h>

+ Inheritance diagram for EmcDigi:

Public Member Functions

 EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
 
 EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel, const unsigned int measure)
 
 EmcDigi (const unsigned int id)
 
void setMeasure (const unsigned int measure)
 
unsigned int getMeasure () const
 
virtual const CLID & clID () const
 
EmcDigioperator+= (const EmcDigi &)
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
 
- Public Member Functions inherited from RawData
 RawData (const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
 
 RawData (const unsigned int id)
 
void setTimeChannel (const unsigned int timeChannel)
 
void setChargeChannel (const unsigned int chargeChannel)
 
void setTrackIndex (const int trackIndex)
 
virtual Identifier identify () const
 
unsigned int getIntId () const
 
unsigned int getTimeChannel () const
 
unsigned int getChargeChannel () const
 
int getTrackIndex () const
 
RawDataoperator+= (const RawData &)
 
virtual StreamBuffer & serialize (StreamBuffer &s) const
 Serialize the object for writing.
 
virtual StreamBuffer & serialize (StreamBuffer &s)
 

Static Public Member Functions

static const CLID & classID ()
 

Additional Inherited Members

- Protected Member Functions inherited from RawData
 RawData (const RawData &)
 
RawDataoperator= (const RawData &)
 
- Protected Attributes inherited from RawData
const Identifier m_id
 
unsigned int m_timeChannel
 
unsigned int m_chargeChannel
 
const unsigned int m_intId
 
int m_trackIndex
 

Detailed Description

Definition at line 15 of file EmcDigi.h.

Constructor & Destructor Documentation

◆ EmcDigi() [1/3]

EmcDigi::EmcDigi ( const Identifier & id,
const unsigned int timeChannel,
const unsigned int chargeChannel )

Definition at line 5 of file EmcDigi.cxx.

5 :
6 RawData(id, timeChannel, chargeChannel),
7 m_measure(0) {
8}
RawData(const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
Definition RawData.cxx:4

◆ EmcDigi() [2/3]

EmcDigi::EmcDigi ( const Identifier & id,
const unsigned int timeChannel,
const unsigned int chargeChannel,
const unsigned int measure )

Definition at line 10 of file EmcDigi.cxx.

11 :
12 RawData(id, timeChannel, chargeChannel),
13 m_measure(measure) {
14}

◆ EmcDigi() [3/3]

EmcDigi::EmcDigi ( const unsigned int id)

Definition at line 16 of file EmcDigi.cxx.

16 :
17 RawData(id),
18 m_measure(0) {
19}

Member Function Documentation

◆ classID()

static const CLID & EmcDigi::classID ( )
inlinestatic

Definition at line 31 of file EmcDigi.h.

31{ return CLID_EmcDigi; }
const CLID & CLID_EmcDigi

Referenced by clID().

◆ clID()

virtual const CLID & EmcDigi::clID ( ) const
inlinevirtual

Definition at line 30 of file EmcDigi.h.

30{ return EmcDigi::classID(); }
static const CLID & classID()
Definition EmcDigi.h:31

◆ fillStream()

std::ostream & EmcDigi::fillStream ( std::ostream & s) const
inlinevirtual

Fill the ASCII output stream.

Reimplemented from RawData.

Definition at line 45 of file EmcDigi.h.

45 {
46 s << "class EmcDigi :" << std::endl
47 << " m_id: " << m_intId
48 << " m_timeChannel: " << m_timeChannel
49 << " m_chargeChannel: " << m_chargeChannel
50 << " m_measure: " << m_measure
51 << std::endl;
52 return s;
53}
XmlRpcServer s
unsigned int m_timeChannel
Definition RawData.h:70
unsigned int m_chargeChannel
Definition RawData.h:72
const unsigned int m_intId
Definition RawData.h:74

◆ getMeasure()

unsigned int EmcDigi::getMeasure ( ) const
inline

Definition at line 27 of file EmcDigi.h.

27{ return m_measure; }

Referenced by EmcRawDataProvider::doCalib(), EmcRawDataProvider::isGoodEmcDigi(), and operator+=().

◆ operator+=()

EmcDigi & EmcDigi::operator+= ( const EmcDigi & digi)

Definition at line 22 of file EmcDigi.cxx.

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
unsigned int getMeasure() const
Definition EmcDigi.h:27
double max(int &binOfMax) const
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
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

◆ setMeasure()

void EmcDigi::setMeasure ( const unsigned int measure)
inline

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