CGEM BOSS 6.6.5.f
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.
 
 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)
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
 
 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)
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
 

Static Public Member Functions

static const CLID & classID ()
 
static const CLID & classID ()
 

Additional Inherited Members

- Protected Member Functions inherited from RawData
 RawData (const RawData &)
 
RawDataoperator= (const 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

Constructor & Destructor Documentation

◆ EmcDigi() [1/6]

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}

◆ EmcDigi() [2/6]

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/6]

EmcDigi::EmcDigi ( const unsigned int  id)

Definition at line 16 of file EmcDigi.cxx.

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

◆ EmcDigi() [4/6]

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

◆ EmcDigi() [5/6]

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

◆ EmcDigi() [6/6]

EmcDigi::EmcDigi ( const unsigned int  id)

Member Function Documentation

◆ classID() [1/2]

static const CLID & EmcDigi::classID ( )
inlinestatic

Definition at line 31 of file Emc/EmcRawEvent/EmcRawEvent-00-02-05/EmcRawEvent/EmcDigi.h.

31{ return CLID_EmcDigi; }
const CLID & CLID_EmcDigi
Definition: EventModel.cxx:264

Referenced by clID().

◆ classID() [2/2]

static const CLID & EmcDigi::classID ( )
inlinestatic

Definition at line 31 of file InstallArea/include/EmcRawEvent/EmcRawEvent/EmcDigi.h.

31{ return CLID_EmcDigi; }

◆ clID() [1/2]

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

◆ clID() [2/2]

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

Definition at line 30 of file InstallArea/include/EmcRawEvent/EmcRawEvent/EmcDigi.h.

30{ return EmcDigi::classID(); }

◆ fillStream() [1/2]

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

Fill the ASCII output stream.

Reimplemented from RawData.

Definition at line 45 of file Emc/EmcRawEvent/EmcRawEvent-00-02-05/EmcRawEvent/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
Definition: HelloServer.cpp:11

◆ fillStream() [2/2]

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

Fill the ASCII output stream.

Reimplemented from RawData.

◆ getMeasure() [1/2]

unsigned int EmcDigi::getMeasure ( ) const
inline

◆ getMeasure() [2/2]

unsigned int EmcDigi::getMeasure ( ) const
inline

Definition at line 27 of file InstallArea/include/EmcRawEvent/EmcRawEvent/EmcDigi.h.

27{ return m_measure; }

◆ operator+=() [1/2]

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 wave1.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_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
double max(int &binOfMax) const
Definition: EmcWaveform.cxx:77
void makeWaveform(double energy, double time)
static double EmcCharge(int measure, int chargeChannel)
virtual Identifier identify() const
Definition: RawData.cxx:15
unsigned int getChargeChannel() const
Definition: RawData.cxx:45
unsigned int getTimeChannel() const
Definition: RawData.cxx:40

◆ operator+=() [2/2]

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

◆ setMeasure() [1/2]

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

◆ setMeasure() [2/2]

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

Definition at line 24 of file InstallArea/include/EmcRawEvent/EmcRawEvent/EmcDigi.h.

24{ m_measure = measure; }

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