![]() |
ATLAS Offline Software
|
This class provides general information about an event. More...
#include <MergedEventInfo.h>
Public Types | |
enum for event flags which indicate the subsystem | |
detector to which the flags belong | |
| enum | EventFlagSubDet { Pixel , SCT , TRT , LAr , Tile , Muon , ForwardDet , Core , Background , Lumi , nDets } |
enum for event errors states | |
| enum | EventFlagErrorState { NotSet , Warning , Error } |
enum for bits in Background EventFlag word | |
| enum | BackgroundEventFlag { MBTSTimeDiffHalo , MBTSTimeDiffCol , LArECTimeDiffHalo , LArECTimeDiffCol , PixMultiplicityHuge , PixSPNonEmpty , SCTMultiplicityHuge , SCTSPNonEmpty , CSCTimeDiffHalo , CSCTimeDiffCol , BCMTimeDiffHalo , BCMTimeDiffCol , MuonTimingCol , MuonTimingCosmic , MBTSBeamVeto , BCMBeamVeto , LUCIDBeamVeto , HaloMuonSegment , HaloClusterShape , HaloMuonOneSided , HaloMuonTwoSided , HaloTileClusterPattern , BeamGasPixel , CosmicStandAlone , CosmicStandAloneTight , CosmicCombined , CosmicCombinedTight , BkgdResvBit1 , BkgdResvBit2 , BkgdResvBit3 , BkgdResvBit4 , BkgdResvBit5 , NBackgroundWords } |
Public Member Functions | |
structors | |
| MergedEventInfo () | |
| POOL required. | |
| MergedEventInfo (const EventInfo &origEvent, EventID::number_type newRunNo, EventID::number_type newEvtNo, EventID::number_type newTimeStamp=0) | |
| the constructor to be used | |
| virtual | ~MergedEventInfo () |
| MergedEventInfo (const MergedEventInfo &)=default | |
| MergedEventInfo (MergedEventInfo &&)=default | |
| MergedEventInfo & | operator= (const MergedEventInfo &)=default |
| MergedEventInfo & | operator= (MergedEventInfo &&)=default |
Event information accessors | |
| EventID * | event_ID () |
| the unique identification of the event. | |
| EventType * | event_type () |
| the type of the event, e.g. simulation, testbeam, etc | |
| const EventType * | event_type () const |
| TriggerInfo * | trigger_info () |
| trigger information (ptr may be NULL) | |
| const TriggerInfo * | trigger_info () const |
| unsigned int | eventFlags (EventFlagSubDet subDet) const |
| event flags for a particular sub-detector | |
| const std::vector< unsigned int > & | eventFlags () const |
| All event flags. | |
| bool | isEventFlagBitSet (EventFlagSubDet subDet, unsigned char bit) const |
| check for a event flag bit for a particular sub-detector | |
| EventFlagErrorState | errorState (EventFlagSubDet subDet) const |
| return error state 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. | |
| bool | setEventFlagBit (EventFlagSubDet subDet, unsigned char bit, bool set=true) |
| Set a bit for an event flag of a particular sub detector. | |
| bool | setErrorState (EventFlagSubDet subDet, EventFlagErrorState errorState) |
| Set error state flag for a particular sub detector. | |
| float | actualInteractionsPerCrossing () const |
| Access to number of interactions per crossing: | |
| float | averageInteractionsPerCrossing () const |
| average interactions per crossing for all BCIDs - for out-of-time pile-up | |
Public Attributes | |
| parser | |
| required | |
| help | |
| args = parser.parse_args() | |
| output = sys.stdout | |
| bool | opened = False |
| log = logging.getLogger('EventInfo') | |
| flags = initConfigFlags() | |
| Files | |
| cfg = MainServicesCfg(flags) | |
| sequenceName | |
| ctype | |
| cname | |
| sc = cfg.run() | |
Private Types | |
| template<class T> | |
| using | owner = T |
Event information accessors | |
| EventID | m_newEventID |
| const EventID * | event_ID () const |
| the new identification of the event. | |
| const EventID * | origEvent_ID () const |
| the original identification of the event. | |
Event information setting | |
| std::unique_ptr< EventID > | m_event_ID |
| std::unique_ptr< EventType > | m_event_type |
| std::unique_ptr< TriggerInfo > | m_trigger_info |
| std::vector< unsigned int > | m_event_flags {std::vector<unsigned int>(nDets, 0)} |
| void | setTriggerInfo (owner< TriggerInfo * > pTrig) |
| Add TriggerInfo to existing object. | |
| void | setTriggerInfo (std::unique_ptr< TriggerInfo > pTrig) |
| void | setActualInteractionsPerCrossing (float interactions) |
| Setting the number of interactions per crossing: | |
| void | setAverageInteractionsPerCrossing (float interactions) |
| average interactions per crossing for all BCIDs - for out-of-time pile-up | |
| enum | { EF_BITS = 0x0FFFFFFF , EF_ERROR_BITS = 0xF0000000 , EF_ERROR_SHIFT = 28 , ACTUAL_INTERACTS_BITS = 0x0000FFFF , AVE_INTERACTS_BITS = 0xFFFF0000 , AVE_INTERACTS_SHIFT = 16 } |
| void | setEventID (owner< EventID * > pid) |
| void | setEventID (std::unique_ptr< EventID > pid) |
| void | setEventType (owner< EventType * >) |
| void | setEventType (std::unique_ptr< EventType > pType) |
DataObject-like clid accessors | |
| const CLID & | clID () const |
| static const CLID & | classID () |
This class provides general information about an event.
It extends MergedEventInfo with a list of sub-evts (the original and the bkg ones)
Definition at line 34 of file MergedEventInfo.h.
|
privateinherited |
Definition at line 54 of file EventInfo/EventInfo/EventInfo.h.
|
privateinherited |
| Enumerator | |
|---|---|
| EF_BITS | |
| EF_ERROR_BITS | |
| EF_ERROR_SHIFT | |
| ACTUAL_INTERACTS_BITS | |
| AVE_INTERACTS_BITS | |
| AVE_INTERACTS_SHIFT | |
Definition at line 207 of file EventInfo/EventInfo/EventInfo.h.
|
inherited |
Definition at line 76 of file EventInfo/EventInfo/EventInfo.h.
|
inherited |
| Enumerator | |
|---|---|
| NotSet | |
| Warning | |
| Error | |
Definition at line 66 of file EventInfo/EventInfo/EventInfo.h.
|
inherited |
| Enumerator | |
|---|---|
| Pixel | |
| SCT | |
| TRT | |
| LAr | |
| Tile | |
| Muon | |
| ForwardDet | |
| Core | |
| Background | |
| Lumi | |
| nDets | |
Definition at line 60 of file EventInfo/EventInfo/EventInfo.h.
| MergedEventInfo::MergedEventInfo | ( | ) |
| MergedEventInfo::MergedEventInfo | ( | const EventInfo & | origEvent, |
| EventID::number_type | newRunNo, | ||
| EventID::number_type | newEvtNo, | ||
| EventID::number_type | newTimeStamp = 0 ) |
|
virtual |
Definition at line 23 of file MergedEventInfo.cxx.
|
default |
|
default |
|
inlineinherited |
Access to number of interactions per crossing:
actual interactions per crossing for the current BCID - for in-time pile-up
average interactions per crossing for the current (or actual) BCID - for in-time pile-up
Definition at line 283 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
average interactions per crossing for all BCIDs - for out-of-time pile-up
Definition at line 296 of file EventInfo/EventInfo/EventInfo.h.
|
inlinestatic |
Definition at line 93 of file MergedEventInfo.h.
|
inline |
Definition at line 85 of file MergedEventInfo.h.
|
inlineinherited |
return error state for a particular sub-detector
test for error state for a particular sub-detector
Definition at line 274 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
the unique identification of the event.
Definition at line 224 of file EventInfo/EventInfo/EventInfo.h.
|
inline |
the new identification of the event.
Definition at line 75 of file MergedEventInfo.h.
|
inlineinherited |
the type of the event, e.g. simulation, testbeam, etc
Definition at line 234 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
Definition at line 239 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
All event flags.
Definition at line 268 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
event flags for a particular sub-detector
Definition at line 254 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
check for a event flag bit for a particular sub-detector
Definition at line 261 of file EventInfo/EventInfo/EventInfo.h.
|
default |
|
default |
|
inline |
the original identification of the event.
Definition at line 80 of file MergedEventInfo.h.
|
inherited |
Setting the number of interactions per crossing:
actual interactions per crossing for the current BCID - for in-time pile-up
Definition at line 156 of file EventInfo.cxx.
|
inherited |
average interactions per crossing for all BCIDs - for out-of-time pile-up
Definition at line 173 of file EventInfo.cxx.
|
inherited |
Set error state flag for a particular sub detector.
Returns true is successfully inserted (i.e. valid subDet).
Definition at line 139 of file EventInfo.cxx.
|
inherited |
Set a bit for an event flag of a particular sub detector.
bit range is 0 - 27. Returns true is successfully inserted (i.e. valid subDet and bit value). Use 'set = false' to unset the bit, default it true.
Definition at line 120 of file EventInfo.cxx.
|
inherited |
Set event flag for a particular sub detector - maximun size is 28 bits.
The bits beyond this will be ignored. Returns true is successfully inserted (i.e. valid subDet).
Definition at line 107 of file EventInfo.cxx.
Definition at line 82 of file EventInfo.cxx.
|
protectedinherited |
Definition at line 86 of file EventInfo.cxx.
Definition at line 90 of file EventInfo.cxx.
|
protectedinherited |
Definition at line 94 of file EventInfo.cxx.
|
inherited |
Add TriggerInfo to existing object.
Definition at line 98 of file EventInfo.cxx.
|
inherited |
Definition at line 102 of file EventInfo.cxx.
|
inlineinherited |
trigger information (ptr may be NULL)
Definition at line 244 of file EventInfo/EventInfo/EventInfo.h.
|
inlineinherited |
Definition at line 249 of file EventInfo/EventInfo/EventInfo.h.
|
inherited |
Definition at line 77 of file EventInfo.py.
|
inherited |
Definition at line 107 of file EventInfo.py.
|
inherited |
Definition at line 120 of file EventInfo.py.
|
inherited |
Definition at line 120 of file EventInfo.py.
|
inherited |
Definition at line 98 of file EventInfo.py.
|
inherited |
Definition at line 97 of file EventInfo.py.
|
inherited |
Definition at line 71 of file EventInfo.py.
|
inherited |
Definition at line 89 of file EventInfo.py.
|
privateinherited |
Definition at line 218 of file EventInfo/EventInfo/EventInfo.h.
|
privateinherited |
Definition at line 215 of file EventInfo/EventInfo/EventInfo.h.
|
privateinherited |
Definition at line 216 of file EventInfo/EventInfo/EventInfo.h.
|
private |
Definition at line 69 of file MergedEventInfo.h.
|
privateinherited |
Definition at line 217 of file EventInfo/EventInfo/EventInfo.h.
|
inherited |
Definition at line 82 of file EventInfo.py.
|
inherited |
Definition at line 81 of file EventInfo.py.
|
inherited |
Definition at line 68 of file EventInfo.py.
|
inherited |
Definition at line 70 of file EventInfo.py.
|
inherited |
Definition at line 136 of file EventInfo.py.
|
inherited |
Definition at line 117 of file EventInfo.py.