BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EventInfo Class Reference

This class provides general information about an event. It extends EventInfo with a list of sub-evts (the original and the bkg ones) More...

#include <EventInfo.h>

Public Member Functions

structors
 EventInfo ()
 
 EventInfo (EventID *id, EventType *type)
 
 EventInfo (EventID *id, EventType *type, TriggerInfo *trig_info)
 
 EventInfo (const EventInfo &e)
 
virtual ~EventInfo ()
 

Event information accessors

class MixingEventSelector
 
EventIDevent_ID () const
 the unique identification of the event.
 
EventTypeevent_type () const
 the type of the event, e.g. simulation, testbeam, etc
 
TriggerInfotrigger_info () const
 trigger information (ptr may be NULL)
 
void setTriggerInfo (TriggerInfo *)
 
void setEventID (EventID *pid)
 

DataObject-like clid accessors

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

Detailed Description

This class provides general information about an event. It extends EventInfo with a list of sub-evts (the original and the bkg ones)

Author
ATLAS Collaboration
Id
EventInfo.h,v 1.1.1.1 2007/04/25 11:46:57 zoujh Exp

Definition at line 34 of file EventInfo.h.

Constructor & Destructor Documentation

◆ EventInfo() [1/4]

EventInfo::EventInfo ( )

Definition at line 25 of file EventInfo.cxx.

26 :
27 m_event_ID (new EventID(0,0)),
28 m_event_type (new EventType()),
29 m_trigger_info(new TriggerInfo())
30{}

◆ EventInfo() [2/4]

EventInfo::EventInfo ( EventID id,
EventType type 
)

Definition at line 32 of file EventInfo.cxx.

33 :
34 m_event_ID (id),
35 m_event_type(type),
36 m_trigger_info(0)
37{}

◆ EventInfo() [3/4]

EventInfo::EventInfo ( EventID id,
EventType type,
TriggerInfo trig_info 
)

Definition at line 39 of file EventInfo.cxx.

40 :
41 m_event_ID (id),
42 m_event_type(type),
43 m_trigger_info(trig_info)
44{}

◆ EventInfo() [4/4]

EventInfo::EventInfo ( const EventInfo e)

Definition at line 47 of file EventInfo.cxx.

48 :
49 m_event_ID( e.m_event_ID ?
50 new EventID( *(e.m_event_ID) ) :
51 new EventID(0,0) ),
52 m_event_type( e.m_event_type ?
53 new EventType( *(e.m_event_type) ):
54 new EventType() ),
55 m_trigger_info( e.m_trigger_info?
56 new TriggerInfo(*(e.m_trigger_info) ) :
57 new TriggerInfo() )
58{}

◆ ~EventInfo()

EventInfo::~EventInfo ( )
virtual

Definition at line 61 of file EventInfo.cxx.

62{
63 delete m_event_ID;
64 delete m_event_type;
65 delete m_trigger_info;
66}

Member Function Documentation

◆ classID()

const CLID & EventInfo::classID ( )
inlinestatic

Definition at line 112 of file EventInfo.h.

113{
114 return CLID_EventInfo; //hxt ClassID_traits<EventInfo>::ID();
115}
const CLID & CLID_EventInfo

Referenced by clID().

◆ clID()

const CLID & EventInfo::clID ( ) const
inline

Definition at line 98 of file EventInfo.h.

99{
100 return classID();
101}
static const CLID & classID()
Definition: EventInfo.h:112

◆ event_ID()

EventID * EventInfo::event_ID ( ) const
inline

the unique identification of the event.

Definition at line 79 of file EventInfo.h.

80{
81 return (m_event_ID);
82}

◆ event_type()

EventType * EventInfo::event_type ( ) const
inline

the type of the event, e.g. simulation, testbeam, etc

Definition at line 85 of file EventInfo.h.

86{
87 return (m_event_type);
88}

◆ setEventID()

void EventInfo::setEventID ( EventID pid)
protected

Definition at line 69 of file EventInfo.cxx.

69 {
70 delete m_event_ID; m_event_ID=pid;
71}

◆ setTriggerInfo()

void EventInfo::setTriggerInfo ( TriggerInfo pTrig)

Definition at line 75 of file EventInfo.cxx.

75 {
76 delete m_trigger_info; m_trigger_info = pTrig;
77}

◆ trigger_info()

TriggerInfo * EventInfo::trigger_info ( ) const
inline

trigger information (ptr may be NULL)

Definition at line 91 of file EventInfo.h.

92{
93 return (m_trigger_info);
94}

Friends And Related Function Documentation

◆ MixingEventSelector

friend class MixingEventSelector
friend

Definition at line 64 of file EventInfo.h.


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