DstHltInf Class Reference

#include <DstHltInf.h>

Inheritance diagram for DstHltInf:

IHltInterface HltInf List of all members.

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 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 getNCON () const
const stringgetEventName () const
bool isType (string &type) const
virtual void push_mdc (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_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 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

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::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.

00015                                                                                        :
00016   DataObject(),IHltInterface(),
00017   m_eventType(type),
00018   m_algProcess(alg),
00019   m_criTable(cri),
00020   m_version(ver),
00021   m_eTotal(etot),
00022   m_number(0),
00023   m_ncon(0){
00024 }

DstHltInf::DstHltInf (  ) 

Definition at line 26 of file DstHltInf.cxx.

00026                     :
00027   DataObject(),IHltInterface(),
00028   m_eventType(0),
00029   m_algProcess(0),
00030   m_criTable(0),
00031   m_version(0),
00032   m_eTotal(0),
00033   m_number(0),
00034   m_ncon(0){
00035 }

DstHltInf::DstHltInf ( const DstHltInf  ) 

Definition at line 37 of file DstHltInf.cxx.

00037                                           :
00038   DataObject(),IHltInterface(),
00039   m_eventType(other.m_eventType),
00040   m_algProcess(other.m_algProcess),
00041   m_criTable(other.m_criTable),
00042   m_version(other.m_version),
00043   m_eTotal(other.m_eTotal),
00044   m_number(other.m_number),
00045   m_ncon(other.m_ncon) {
00046 }

virtual DstHltInf::~DstHltInf (  )  [inline, virtual]

Definition at line 25 of file DstHltInf.h.

00025 {}


Member Function Documentation

static const CLID& DstHltInf::classID (  )  [inline, static]

Reimplemented in HltInf.

Definition at line 28 of file DstHltInf.h.

References CLID_DstHltInf.

Referenced by clID().

00028 { return CLID_DstHltInf; }

virtual const CLID& DstHltInf::clID (  )  const [inline, virtual]

Reimplemented in HltInf.

Definition at line 27 of file DstHltInf.h.

References classID().

Referenced by main().

00027 { return DstHltInf::classID(); }

uint32_t DstHltInf::getAlgProcess (  )  const [inline]

Definition at line 43 of file DstHltInf.h.

References m_algProcess.

Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().

00043 { return m_algProcess;       }

uint32_t DstHltInf::getCriteriaTable (  )  const [inline]

Definition at line 44 of file DstHltInf.h.

References m_criTable.

Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().

00044 { return m_criTable;    }

virtual bool DstHltInf::getData ( const Identifier ,
uint32_t *   
) [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 74 of file DstHltInf.h.

00074 { return false;};

const string & DstHltInf::getEventName (  )  const

Definition at line 61 of file DstHltInf.cxx.

References genRecEmupikp::i, m_eventType, s_chn, and s_err.

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

00061                                            {
00062   for(int i=0;i<32;i++){
00063     if(m_eventType&(1<<i)) return (s_chn[i]);
00064   }
00065   return s_err;
00066 }

uint32_t DstHltInf::getEventType (  )  const [inline]

Definition at line 42 of file DstHltInf.h.

References m_eventType.

Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), EventFilter::execute(), DstHltMaker::execute(), BbEmc::execute(), and operator<<().

00042 { return m_eventType;}

uint32_t DstHltInf::getNCON (  )  const [inline]

Definition at line 52 of file DstHltInf.h.

References m_ncon.

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

00052 { return m_ncon; };

uint32_t DstHltInf::getNEMC (  )  const [inline]

Definition at line 50 of file DstHltInf.h.

References m_number.

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

uint32_t DstHltInf::getNMDC (  )  const [inline]

Definition at line 48 of file DstHltInf.h.

References m_number.

00048 { return m_number&0xFF; };

uint32_t DstHltInf::getNMUC (  )  const [inline]

Definition at line 51 of file DstHltInf.h.

References m_number.

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

uint32_t DstHltInf::getNTOF (  )  const [inline]

Definition at line 49 of file DstHltInf.h.

References m_number.

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

uint32_t DstHltInf::getNumber (  )  const [inline]

Definition at line 47 of file DstHltInf.h.

References m_number.

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

00047 { return m_number; };

float DstHltInf::getTotalEnergy (  )  const [inline]

Definition at line 46 of file DstHltInf.h.

References m_eTotal.

Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().

00046 { return m_eTotal;     }

uint32_t DstHltInf::getVersion (  )  const [inline]

Definition at line 45 of file DstHltInf.h.

References m_version.

Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().

00045 { return m_version;       }

bool DstHltInf::isType ( string type  )  const

Definition at line 68 of file DstHltInf.cxx.

References genRecEmupikp::i, m_eventType, and s_chn.

Referenced by EventFilter::execute().

00068                                         {
00069   for(int i=0;i<32;i++){
00070     if(type!=s_chn[i]) continue;
00071     if(m_eventType&(1<<i))return true;
00072   }
00073   return false;
00074 }

DstHltInf & DstHltInf::operator= ( const DstHltInf  ) 

Reimplemented in HltInf.

Definition at line 48 of file DstHltInf.cxx.

References m_algProcess, m_criTable, m_eTotal, m_eventType, m_ncon, m_number, and m_version.

Referenced by HltInf::operator=().

00048                                                   {
00049   if( &h != this ){
00050     m_eventType =h.m_eventType;
00051     m_algProcess=h.m_algProcess;
00052     m_criTable  =h.m_criTable;
00053     m_version   =h.m_version;
00054     m_eTotal    =h.m_eTotal;
00055     m_number    =h.m_number;
00056     m_ncon      =h.m_ncon;
00057   }
00058   return *this;
00059 }

virtual void DstHltInf::print ( void   )  const [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 76 of file DstHltInf.h.

Referenced by EventFilter::execute().

00076 { cout << *this; }

virtual void DstHltInf::push_con ( float   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 66 of file DstHltInf.h.

00066 {};

virtual void DstHltInf::push_con ( uint32_t   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 61 of file DstHltInf.h.

00061 {};

virtual void DstHltInf::push_emc ( float   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 64 of file DstHltInf.h.

00064 {};

virtual void DstHltInf::push_emc ( uint32_t   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 59 of file DstHltInf.h.

00059 {};

virtual void DstHltInf::push_mdc ( float   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 62 of file DstHltInf.h.

00062 {};

virtual void DstHltInf::push_mdc ( uint32_t   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 57 of file DstHltInf.h.

00057 {};

virtual void DstHltInf::push_muc ( float   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 65 of file DstHltInf.h.

00065 {};

virtual void DstHltInf::push_muc ( uint32_t   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 60 of file DstHltInf.h.

00060 {};

virtual void DstHltInf::push_tof ( float   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 63 of file DstHltInf.h.

00063 {};

virtual void DstHltInf::push_tof ( uint32_t   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 58 of file DstHltInf.h.

00058 {};

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

Definition at line 31 of file DstHltInf.h.

References m_algProcess.

Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00031 { m_algProcess=i; }

virtual void DstHltInf::setConData ( const std::vector< uint32_t > &   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 73 of file DstHltInf.h.

00073 {};

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

Definition at line 32 of file DstHltInf.h.

References m_criTable.

Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00032 { m_criTable=i;       }

virtual bool DstHltInf::setData ( const Identifier ,
float   
) [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 68 of file DstHltInf.h.

00068 {return false;};

virtual bool DstHltInf::setData ( const Identifier ,
uint32_t   
) [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 67 of file DstHltInf.h.

00067 {return false;};

virtual void DstHltInf::setEmcData ( const std::vector< uint32_t > &   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 71 of file DstHltInf.h.

00071 {};

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

Definition at line 30 of file DstHltInf.h.

References m_eventType.

Referenced by MixerAlg::eventType(), HltEventMaker::execute(), DstHltMaker::execute(), main(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00030 { m_eventType = i;    }

virtual void DstHltInf::setMdcData ( const std::vector< uint32_t > &   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 69 of file DstHltInf.h.

00069 {};

virtual void DstHltInf::setMucData ( const std::vector< uint32_t > &   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 72 of file DstHltInf.h.

00072 {};

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

Definition at line 40 of file DstHltInf.h.

References m_ncon.

Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00040 { m_ncon   = i; };

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

Definition at line 38 of file DstHltInf.h.

References m_number.

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

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

Definition at line 36 of file DstHltInf.h.

References m_number.

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

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

Definition at line 39 of file DstHltInf.h.

References m_number.

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

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

Definition at line 37 of file DstHltInf.h.

References m_number.

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

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

Definition at line 35 of file DstHltInf.h.

References m_number.

Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00035 { m_number=i; };

virtual void DstHltInf::setTofData ( const std::vector< uint32_t > &   )  [inline, virtual]

Implements IHltInterface.

Reimplemented in HltInf.

Definition at line 70 of file DstHltInf.h.

00070 {};

void DstHltInf::setTotalEnergy ( const float  etot  )  [inline]

Definition at line 34 of file DstHltInf.h.

References m_eTotal.

Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00034 { m_eTotal = etot;     }

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

Definition at line 33 of file DstHltInf.h.

References m_version.

Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().

00033 { m_version=i; }


Member Data Documentation

uint32_t DstHltInf::m_algProcess [protected]

Definition at line 80 of file DstHltInf.h.

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

uint32_t DstHltInf::m_criTable [protected]

Definition at line 81 of file DstHltInf.h.

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

float DstHltInf::m_eTotal [protected]

Definition at line 83 of file DstHltInf.h.

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

uint32_t DstHltInf::m_eventType [protected]

Definition at line 79 of file DstHltInf.h.

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

uint32_t DstHltInf::m_ncon [protected]

Definition at line 85 of file DstHltInf.h.

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

uint32_t DstHltInf::m_number [protected]

Definition at line 84 of file DstHltInf.h.

Referenced by getNEMC(), getNMDC(), getNMUC(), getNTOF(), getNumber(), operator=(), setNEMC(), setNMDC(), setNMUC(), setNTOF(), and setNumber().

uint32_t DstHltInf::m_version [protected]

Definition at line 82 of file DstHltInf.h.

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

const std::string DstHltInf::s_chn [static, protected]

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 87 of file DstHltInf.h.

Referenced by getEventName(), and isType().

const std::string DstHltInf::s_err = "EventFilterError" [static, protected]

Definition at line 88 of file DstHltInf.h.

Referenced by getEventName().


Generated on Tue Nov 29 23:18:31 2016 for BOSS_7.0.2 by  doxygen 1.4.7