CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
DstHltInf Class Reference

#include <DstHltInf.h>

+ Inheritance diagram for DstHltInf:

Public Member Functions

 DstHltInf (const unsigned int type, const unsigned int alg, const unsigned int cri, const unsigned int ver, const float etot)
 
 DstHltInf ()
 
 DstHltInf (const DstHltInf &)
 
DstHltInfoperator= (const DstHltInf &)
 
virtual ~DstHltInf ()
 
virtual const CLID & clID () const
 
void setEventType (const unsigned int i)
 
void setAlgProcess (const unsigned int i)
 
void setCriteriaTable (const unsigned int i)
 
void setVersion (const unsigned int i)
 
void setTotalEnergy (const float etot)
 
void setNumber (const unsigned int i)
 
void setNMDC (const unsigned int i)
 
void setNTOF (const unsigned int i)
 
void setNEMC (const unsigned int i)
 
void setNMUC (const unsigned int i)
 
void setNCGEM (const unsigned int i)
 
void setNCON (const unsigned int i)
 
uint32_t getEventType () const
 
uint32_t getAlgProcess () const
 
uint32_t getCriteriaTable () const
 
uint32_t getVersion () const
 
float getTotalEnergy () const
 
uint32_t getNumber () const
 
uint32_t getNMDC () const
 
uint32_t getNTOF () const
 
uint32_t getNEMC () const
 
uint32_t getNMUC () const
 
uint32_t getNCGEM () const
 
uint32_t getNCON () const
 
const string & getEventName () const
 
bool isType (string &type) const
 
virtual void push_mdc (uint32_t)
 
virtual void push_cgem (uint32_t)
 
virtual void push_tof (uint32_t)
 
virtual void push_emc (uint32_t)
 
virtual void push_muc (uint32_t)
 
virtual void push_con (uint32_t)
 
virtual void push_mdc (float)
 
virtual void push_cgem (float)
 
virtual void push_tof (float)
 
virtual void push_emc (float)
 
virtual void push_muc (float)
 
virtual void push_con (float)
 
virtual bool setData (const Identifier &, uint32_t)
 
virtual bool setData (const Identifier &, float)
 
virtual void setMdcData (const std::vector< uint32_t > &)
 
virtual void setCgemData (const std::vector< uint32_t > &)
 
virtual void setTofData (const std::vector< uint32_t > &)
 
virtual void setEmcData (const std::vector< uint32_t > &)
 
virtual void setMucData (const std::vector< uint32_t > &)
 
virtual void setConData (const std::vector< uint32_t > &)
 
virtual bool getData (const Identifier &, uint32_t *)
 
virtual void print () const
 
- Public Member Functions inherited from IHltInterface
 IHltInterface ()
 
virtual ~IHltInterface ()
 

Static Public Member Functions

static const CLID & classID ()
 

Protected Attributes

uint32_t m_eventType
 
uint32_t m_algProcess
 
uint32_t m_criTable
 
uint32_t m_version
 
float m_eTotal
 
uint32_t m_number
 
uint32_t m_ncon
 

Static Protected Attributes

static const std::string s_chn [32]
 
static const std::string s_err ="EventFilterError"
 

Detailed Description

Definition at line 16 of file DstHltInf.h.

Constructor & Destructor Documentation

◆ DstHltInf() [1/3]

DstHltInf::DstHltInf ( const unsigned int type,
const unsigned int alg,
const unsigned int cri,
const unsigned int ver,
const float etot )

Definition at line 14 of file DstHltInf.cxx.

15 :
16 DataObject(),IHltInterface(),
17 m_eventType(type),
18 m_algProcess(alg),
19 m_criTable(cri),
20 m_version(ver),
22 m_number(0),
23 m_ncon(0){
24}
Double_t etot
uint32_t m_number
Definition DstHltInf.h:89
uint32_t m_ncon
Definition DstHltInf.h:90
uint32_t m_criTable
Definition DstHltInf.h:86
float m_eTotal
Definition DstHltInf.h:88
uint32_t m_version
Definition DstHltInf.h:87
uint32_t m_eventType
Definition DstHltInf.h:84
uint32_t m_algProcess
Definition DstHltInf.h:85

◆ DstHltInf() [2/3]

DstHltInf::DstHltInf ( )

Definition at line 26 of file DstHltInf.cxx.

26 :
27 DataObject(),IHltInterface(),
28 m_eventType(0),
29 m_algProcess(0),
30 m_criTable(0),
31 m_version(0),
32 m_eTotal(0),
33 m_number(0),
34 m_ncon(0){
35}

◆ DstHltInf() [3/3]

DstHltInf::DstHltInf ( const DstHltInf & other)

Definition at line 37 of file DstHltInf.cxx.

37 :
38 DataObject(),IHltInterface(),
39 m_eventType(other.m_eventType),
40 m_algProcess(other.m_algProcess),
41 m_criTable(other.m_criTable),
42 m_version(other.m_version),
43 m_eTotal(other.m_eTotal),
44 m_number(other.m_number),
45 m_ncon(other.m_ncon) {
46}
Index other(Index i, Index j)

◆ ~DstHltInf()

virtual DstHltInf::~DstHltInf ( )
inlinevirtual

Definition at line 25 of file DstHltInf.h.

25{}

Member Function Documentation

◆ classID()

static const CLID & DstHltInf::classID ( )
inlinestatic

Definition at line 28 of file DstHltInf.h.

28{ return CLID_DstHltInf; }
const CLID & CLID_DstHltInf

Referenced by clID().

◆ clID()

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

Reimplemented in HltInf.

Definition at line 27 of file DstHltInf.h.

27{ return DstHltInf::classID(); }
static const CLID & classID()
Definition DstHltInf.h:28

Referenced by main().

◆ getAlgProcess()

uint32_t DstHltInf::getAlgProcess ( ) const
inline

◆ getCriteriaTable()

uint32_t DstHltInf::getCriteriaTable ( ) const
inline

◆ getData()

virtual bool DstHltInf::getData ( const Identifier & ,
uint32_t *  )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 79 of file DstHltInf.h.

79{ return false;};

◆ getEventName()

const string & DstHltInf::getEventName ( ) const

Definition at line 61 of file DstHltInf.cxx.

61 {
62 for(int i=0;i<32;i++){
63 if(m_eventType&(1<<i)) return (s_chn[i]);
64 }
65 return s_err;
66}
static const std::string s_chn[32]
Definition DstHltInf.h:3
static const std::string s_err
Definition DstHltInf.h:93

Referenced by MixerAlg::eventType(), and EventFilter::execute().

◆ getEventType()

uint32_t DstHltInf::getEventType ( ) const
inline

◆ getNCGEM()

uint32_t DstHltInf::getNCGEM ( ) const
inline

Definition at line 53 of file DstHltInf.h.

53{ return (m_number>>32)&0xFF; };

◆ getNCON()

uint32_t DstHltInf::getNCON ( ) const
inline

Definition at line 54 of file DstHltInf.h.

54{ return m_ncon; };

Referenced by DstHltInfCnv::DataObjectToTObject(), and HltInfCnv::DataObjectToTObject().

◆ getNEMC()

uint32_t DstHltInf::getNEMC ( ) const
inline

Definition at line 51 of file DstHltInf.h.

51{ return (m_number>>16)&0xFF; };

◆ getNMDC()

uint32_t DstHltInf::getNMDC ( ) const
inline

Definition at line 49 of file DstHltInf.h.

49{ return m_number&0xFF; };

◆ getNMUC()

uint32_t DstHltInf::getNMUC ( ) const
inline

Definition at line 52 of file DstHltInf.h.

52{ return (m_number>>24)&0xFF; };

◆ getNTOF()

uint32_t DstHltInf::getNTOF ( ) const
inline

Definition at line 50 of file DstHltInf.h.

50{ return (m_number>>8)&0xFF; };

◆ getNumber()

uint32_t DstHltInf::getNumber ( ) const
inline

Definition at line 48 of file DstHltInf.h.

48{ return m_number; };

Referenced by DstHltInfCnv::DataObjectToTObject(), and HltInfCnv::DataObjectToTObject().

◆ getTotalEnergy()

float DstHltInf::getTotalEnergy ( ) const
inline

◆ getVersion()

uint32_t DstHltInf::getVersion ( ) const
inline

◆ isType()

bool DstHltInf::isType ( string & type) const

Definition at line 68 of file DstHltInf.cxx.

68 {
69 for(int i=0;i<32;i++){
70 if(type!=s_chn[i]) continue;
71 if(m_eventType&(1<<i))return true;
72 }
73 return false;
74}

Referenced by EventFilter::execute().

◆ operator=()

DstHltInf & DstHltInf::operator= ( const DstHltInf & h)

Definition at line 48 of file DstHltInf.cxx.

48 {
49 if( &h != this ){
56 m_ncon =h.m_ncon;
57 }
58 return *this;
59}

Referenced by HltInf::operator=().

◆ print()

virtual void DstHltInf::print ( ) const
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 81 of file DstHltInf.h.

81{ cout << *this; }

Referenced by EventFilter::execute(), and main().

◆ push_cgem() [1/2]

virtual void DstHltInf::push_cgem ( float )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 66 of file DstHltInf.h.

66{};

◆ push_cgem() [2/2]

virtual void DstHltInf::push_cgem ( uint32_t )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 60 of file DstHltInf.h.

60{};

◆ push_con() [1/2]

virtual void DstHltInf::push_con ( float )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 70 of file DstHltInf.h.

70{};

◆ push_con() [2/2]

virtual void DstHltInf::push_con ( uint32_t )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 64 of file DstHltInf.h.

64{};

◆ push_emc() [1/2]

virtual void DstHltInf::push_emc ( float )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 68 of file DstHltInf.h.

68{};

◆ push_emc() [2/2]

virtual void DstHltInf::push_emc ( uint32_t )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 62 of file DstHltInf.h.

62{};

◆ push_mdc() [1/2]

virtual void DstHltInf::push_mdc ( float )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 65 of file DstHltInf.h.

65{};

◆ push_mdc() [2/2]

virtual void DstHltInf::push_mdc ( uint32_t )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 59 of file DstHltInf.h.

59{};

◆ push_muc() [1/2]

virtual void DstHltInf::push_muc ( float )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 69 of file DstHltInf.h.

69{};

◆ push_muc() [2/2]

virtual void DstHltInf::push_muc ( uint32_t )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 63 of file DstHltInf.h.

63{};

◆ push_tof() [1/2]

virtual void DstHltInf::push_tof ( float )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 67 of file DstHltInf.h.

67{};

◆ push_tof() [2/2]

virtual void DstHltInf::push_tof ( uint32_t )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 61 of file DstHltInf.h.

61{};

◆ setAlgProcess()

void DstHltInf::setAlgProcess ( const unsigned int i)
inline

◆ setCgemData()

virtual void DstHltInf::setCgemData ( const std::vector< uint32_t > & )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 74 of file DstHltInf.h.

74{};

◆ setConData()

virtual void DstHltInf::setConData ( const std::vector< uint32_t > & )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 78 of file DstHltInf.h.

78{};

◆ setCriteriaTable()

void DstHltInf::setCriteriaTable ( const unsigned int i)
inline

◆ setData() [1/2]

virtual bool DstHltInf::setData ( const Identifier & ,
float  )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 72 of file DstHltInf.h.

72{return false;};

◆ setData() [2/2]

virtual bool DstHltInf::setData ( const Identifier & ,
uint32_t  )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 71 of file DstHltInf.h.

71{return false;};

◆ setEmcData()

virtual void DstHltInf::setEmcData ( const std::vector< uint32_t > & )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 76 of file DstHltInf.h.

76{};

◆ setEventType()

void DstHltInf::setEventType ( const unsigned int i)
inline

◆ setMdcData()

virtual void DstHltInf::setMdcData ( const std::vector< uint32_t > & )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 73 of file DstHltInf.h.

73{};

◆ setMucData()

virtual void DstHltInf::setMucData ( const std::vector< uint32_t > & )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 77 of file DstHltInf.h.

77{};

◆ setNCGEM()

void DstHltInf::setNCGEM ( const unsigned int i)
inline

Definition at line 40 of file DstHltInf.h.

40{ m_number = (m_number&0xFFFFFF00)|(i<<32); };

◆ setNCON()

void DstHltInf::setNCON ( const unsigned int i)
inline

◆ setNEMC()

void DstHltInf::setNEMC ( const unsigned int i)
inline

Definition at line 38 of file DstHltInf.h.

38{ m_number = (m_number&0xFF00FFFF)|(i<<16); };

◆ setNMDC()

void DstHltInf::setNMDC ( const unsigned int i)
inline

Definition at line 36 of file DstHltInf.h.

36{ m_number = (m_number&0xFFFFFF00)|i ; };

◆ setNMUC()

void DstHltInf::setNMUC ( const unsigned int i)
inline

Definition at line 39 of file DstHltInf.h.

39{ m_number = (m_number&0x00FFFFFF)|(i<<24); };

◆ setNTOF()

void DstHltInf::setNTOF ( const unsigned int i)
inline

Definition at line 37 of file DstHltInf.h.

37{ m_number = (m_number&0xFFFF00FF)|(i<<8); };

◆ setNumber()

void DstHltInf::setNumber ( const unsigned int i)
inline

◆ setTofData()

virtual void DstHltInf::setTofData ( const std::vector< uint32_t > & )
inlinevirtual

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 75 of file DstHltInf.h.

75{};

◆ setTotalEnergy()

void DstHltInf::setTotalEnergy ( const float etot)
inline

◆ setVersion()

void DstHltInf::setVersion ( const unsigned int i)
inline

Member Data Documentation

◆ m_algProcess

uint32_t DstHltInf::m_algProcess
protected

Definition at line 85 of file DstHltInf.h.

Referenced by getAlgProcess(), operator=(), and setAlgProcess().

◆ m_criTable

uint32_t DstHltInf::m_criTable
protected

Definition at line 86 of file DstHltInf.h.

Referenced by getCriteriaTable(), operator=(), and setCriteriaTable().

◆ m_eTotal

float DstHltInf::m_eTotal
protected

Definition at line 88 of file DstHltInf.h.

Referenced by getTotalEnergy(), operator=(), and setTotalEnergy().

◆ m_eventType

uint32_t DstHltInf::m_eventType
protected

Definition at line 84 of file DstHltInf.h.

Referenced by getEventName(), getEventType(), isType(), operator=(), and setEventType().

◆ m_ncon

uint32_t DstHltInf::m_ncon
protected

Definition at line 90 of file DstHltInf.h.

Referenced by getNCON(), operator=(), and setNCON().

◆ m_number

uint32_t DstHltInf::m_number
protected

◆ m_version

uint32_t DstHltInf::m_version
protected

Definition at line 87 of file DstHltInf.h.

Referenced by getVersion(), operator=(), and setVersion().

◆ s_chn

const std::string DstHltInf::s_chn
staticprotected
Initial value:
={
"Junk","GJunk","Beamgas","GBeamgas",
"Cosmic","GCosmic","EBhabha","GEBhabha",
"BBhabha","GBBhabha","Dimuon","GDimuon",
"Diphoton","GDiphoton","Hadron","GHadron",
"Twophoton","Twophoton","","",
"","","","",
"","EMCEBhabha","","",
"","Other","Error","RandomTrg"}

Definition at line 3 of file DstHltInf.h.

Referenced by getEventName(), and isType().

◆ s_err

const std::string DstHltInf::s_err ="EventFilterError"
staticprotected

Definition at line 93 of file DstHltInf.h.

Referenced by getEventName().


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