6#ifndef EVENTINFO_EVENTINFO_H
7# define EVENTINFO_EVENTINFO_H 1
19#include "GaudiKernel/ClassID.h"
61 Pixel,
SCT,
TRT,
LAr,
Tile,
Muon,
ForwardDet,
Core,
Background,
Lumi,
nDets
105 EventInfo(std::unique_ptr<EventID>
id, std::unique_ptr<EventType>
type);
107 owner<TriggerInfo*> trig_info);
108 EventInfo(std::unique_ptr<EventID>
id, std::unique_ptr<EventType>
type,
109 std::unique_ptr<TriggerInfo> trig_info);
146 const std::vector<unsigned int>&
eventFlags()
const;
196 void setEventID(std::unique_ptr<EventID> pid);
267inline const std::vector<unsigned int>&
273inline EventInfo::EventFlagErrorState
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
uint32_t CLID
The Class ID type.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
void setEventID(owner< EventID * > pid)
friend class EventInfoCnv_p2
friend class EventInfoCnv_p1
bool setEventFlagBit(EventFlagSubDet subDet, unsigned char bit, bool set=true)
Set a bit for an event flag of a particular sub detector.
void setEventType(owner< EventType * >)
float actualInteractionsPerCrossing() const
Access to number of interactions per crossing:
EventInfo & operator=(EventInfo &&e) noexcept
friend class MixingEventSelector
std::unique_ptr< TriggerInfo > m_trigger_info
void setTriggerInfo(owner< TriggerInfo * > pTrig)
Add TriggerInfo to existing object.
EventID * event_ID()
the unique identification of the event.
EventFlagErrorState errorState(EventFlagSubDet subDet) const
return error state for a particular sub-detector
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
bool isEventFlagBitSet(EventFlagSubDet subDet, unsigned char bit) const
check for a event flag bit for a particular sub-detector
bool setEventFlags(EventFlagSubDet subDet, unsigned int flags)
Set event flag for a particular sub detector - maximun size is 28 bits.
EventInfo(EventInfo &&e) noexcept
friend class EventInfoByteStreamCnv
bool setErrorState(EventFlagSubDet subDet, EventFlagErrorState errorState)
Set error state flag for a particular sub detector.
float averageInteractionsPerCrossing() const
average interactions per crossing for all BCIDs - for out-of-time pile-up
void setActualInteractionsPerCrossing(float interactions)
Setting the number of interactions per crossing:
unsigned int eventFlags(EventFlagSubDet subDet) const
event flags for a particular sub-detector
std::unique_ptr< EventType > m_event_type
std::unique_ptr< EventID > m_event_ID
friend class EventInfoCnv_p4
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
std::vector< unsigned int > m_event_flags
static const CLID & classID()
const CLID & clID() const
void setAverageInteractionsPerCrossing(float interactions)
average interactions per crossing for all BCIDs - for out-of-time pile-up
friend class CopyMcEventCollection
friend class LooperKiller
friend class EventInfoCnv_p3
This class represents the "type of event" where the type is given by one or more "characteristics".
a stream of events read from different selectors.
This is a Athena service which manages detector description tag information.
This class contains trigger related information.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.