ATLAS Offline Software
|
Class describing the basic event information. More...
#include <EventInfo_v1.h>
Classes | |
struct | PileUpMixtureID |
Unique pile-up mixture identifier definition. More... | |
class | StreamTag |
Class describing a stream tag on the event. More... | |
class | SubEvent |
Class describing the properties of one pileup sub-event. More... | |
Public Types | |
using | TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | ConstAccessor = SG::ConstAccessor< T, ALLOC > |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | Accessor = SG::Accessor< T, ALLOC > |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | Decorator = SG::Decorator< T, ALLOC > |
Public Member Functions | |
EventInfo_v1 () | |
Default constructor. More... | |
EventInfo_v1 (const EventInfo_v1 &parent) | |
Copy constructor. More... | |
EventInfo_v1 & | operator= (const EventInfo_v1 &rhs) |
Assignment operator. More... | |
void | toPersistent () |
Prepare the object for writing. More... | |
void | toTransient () |
Cleanse the object after being read in. More... | |
void | assign (const AuxElement &other, bool warnUnlocked=false) |
Assignment. More... | |
const SG::AuxVectorData * | container () const |
Return the container holding this element. More... | |
SG::AuxVectorData * | container () |
Return the container holding this element. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type | auxdata (const std::string &name) |
Fetch an aux data variable, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type | auxdata (const std::string &name, const std::string &clsname) |
Fetch an aux data variable, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdata (const std::string &name) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdata (const std::string &name, const std::string &clsname) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name, const std::string &clsname) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailable (const std::string &name, const std::string &clsname="") const |
Check if an aux variable is available for reading. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") |
Check if an aux variable is available for writing. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritableAsDecoration (const std::string &name, const std::string &clsname="") const |
Check if an aux variable is available for writing as a decoration. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name) const |
Fetch an aux decoration, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name, const std::string &clsname) const |
Fetch an aux decoration, as a non-const reference. More... | |
void | makePrivateStore () |
Create a new (empty) private store for this object. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 &other, bool warnUnlocked=false) |
Create a new private store for this object and copy aux data. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 *other, bool warnUnlocked=false) |
Create a new private store for this object and copy aux data. More... | |
void | releasePrivateStore () |
Release and free any private store associated with this object. More... | |
void | setStore (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | setStore (SG::IAuxStore *store) |
Set the store associated with this object. More... | |
void | setStore (const DataLink< SG::IConstAuxStore > &store) |
Set the store associated with this object. More... | |
void | setConstStore (const SG::IConstAuxStore *store) |
Synonym for setStore with IConstAuxStore . More... | |
void | setNonConstStore (SG::IAuxStore *store) |
Synonym for setStore with IAuxStore . More... | |
bool | usingPrivateStore () const |
Test to see if this object is currently using a private store. More... | |
bool | usingStandaloneStore () const |
Test to see if this object is currently using a standalone store. More... | |
const SG::IConstAuxStore * | getConstStore () const |
Return the current store, as a const interface. More... | |
SG::IAuxStore * | getStore () const |
Return the current store, as a non-const interface. More... | |
void | clearCache () |
Clear the cached aux data pointers. More... | |
const SG::auxid_set_t & | getAuxIDs () const |
Return a set of identifiers for existing data items for this object. More... | |
const SG::auxid_set_t & | getDecorIDs () const |
Return a set of identifiers for decorations for this object. More... | |
bool | hasStore () const |
Return true if this object has an associated store. More... | |
bool | hasNonConstStore () const |
Return true if this object has an associated non-const store. More... | |
bool | clearDecorations () const |
Clear all decorations. More... | |
bool | trackIndices () const |
Return true if index tracking is enabled for this object. More... | |
size_t | index () const |
Return the index of this element within its container. More... | |
size_t | index () const |
Return the index of this element within its container. More... | |
Basic event information | |
uint32_t | runNumber () const |
The current event's run number. More... | |
void | setRunNumber (uint32_t value) |
Set the current event's run number. More... | |
uint64_t | eventNumber () const |
The current event's event number. More... | |
void | setEventNumber (uint64_t value) |
Set the current event's event number. More... | |
uint32_t | lumiBlock () const |
The current event's luminosity block number. More... | |
void | setLumiBlock (uint32_t value) |
Set the current event's luminosity block number. More... | |
uint32_t | timeStamp () const |
POSIX time in seconds from 1970. January 1st. More... | |
void | setTimeStamp (uint32_t value) |
Set the POSIX time of the event. More... | |
uint32_t | timeStampNSOffset () const |
Nanosecond time offset wrt. the time stamp. More... | |
void | setTimeStampNSOffset (uint32_t value) |
Set the nanosecond offset wrt. the time stamp. More... | |
uint32_t | bcid () const |
The bunch crossing ID of the event. More... | |
void | setBCID (uint32_t value) |
Set the bunch crossing ID of the event. More... | |
uint32_t | detectorMask0 () const |
Bit field indicating which TTC zones are present in the event. More... | |
void | setDetectorMask0 (uint32_t value) |
Set the bit field indicating with TTC timezones were present. More... | |
uint32_t | detectorMask1 () const |
Bit field indicating which TTC zones are present in the event. More... | |
void | setDetectorMask1 (uint32_t value) |
Set the bit field indicating with TTC timezones were present. More... | |
uint32_t | detectorMask2 () const |
Bit field indicating which TTC zones are present in the event. More... | |
void | setDetectorMask2 (uint32_t value) |
Set the bit field indicating with TTC timezones were present. More... | |
uint32_t | detectorMask3 () const |
Bit field indicating which TTC zones are present in the event. More... | |
void | setDetectorMask3 (uint32_t value) |
Set the bit field indicating with TTC timezones were present. More... | |
uint64_t | detectorMask () const |
Bit field indicating which TTC zones are present in the event. More... | |
void | setDetectorMask (uint32_t mask0, uint32_t mask1) |
Set the bit fields indicating with TTC timezones were present. More... | |
void | setDetectorMask (uint64_t mask) |
Set the bit fields indicating with TTC timezones were present. More... | |
uint64_t | detectorMaskExt () const |
Bit field indicating which TTC zones are present in the event. More... | |
void | setDetectorMaskExt (uint32_t mask2, uint32_t mask3) |
Set the bit fields indicating with TTC timezones were present. More... | |
void | setDetectorMaskExt (uint64_t mask) |
Set the bit fields indicating with TTC timezones were present. More... | |
Trigger related information | |
uint32_t | statusElement () const |
Trigger status element. More... | |
void | setStatusElement (uint32_t value) |
Set the trigger status element. More... | |
uint32_t | extendedLevel1ID () const |
The extended Level-1 identifier. More... | |
void | setExtendedLevel1ID (uint32_t value) |
Set the extended Level-1 identifier. More... | |
uint16_t | level1TriggerType () const |
The Level-1 trigger type. More... | |
void | setLevel1TriggerType (uint16_t value) |
Set the Level-1 trigger type. More... | |
const std::vector< StreamTag > & | streamTags () const |
Get the streams that the event was put in. More... | |
void | setStreamTags (const std::vector< StreamTag > &value) |
Set the streams that the event was put in. More... | |
Beam spot information | |
float | beamPosX () const |
X coordinate of the beam spot position. More... | |
float | beamPosY () const |
Y coordinate of the beam spot position. More... | |
float | beamPosZ () const |
Z coordinate of the beam spot position. More... | |
void | setBeamPos (float x, float y, float z) |
Set the beam spot position. More... | |
float | beamPosSigmaX () const |
The width of the beam spot in the X direction. More... | |
float | beamPosSigmaY () const |
The width of the beam spot in the Y direction. More... | |
float | beamPosSigmaZ () const |
The length of the beam spot in the Z direction. More... | |
void | setBeamPosSigma (float x, float y, float z) |
Set the size of the beam spot. More... | |
float | beamPosSigmaXY () const |
The beam spot shape's X-Y correlation. More... | |
void | setBeamPosSigmaXY (float value) |
Set the beam spot shape's X-Y correlation. More... | |
float | beamTiltXZ () const |
The beam's tilt in radians in XZ. More... | |
void | setBeamTiltXZ (float value) |
Set the beam's tilt in radians in XZ. More... | |
float | beamTiltYZ () const |
The beam's tilt in radians in YZ. More... | |
void | setBeamTiltYZ (float value) |
Set the beam's tilt in radians in YZ. More... | |
uint32_t | beamStatus () const |
The beam spot's status word. More... | |
void | setBeamStatus (uint32_t value) |
Set the beam spot's status word. More... | |
float | beamSpotWeight () const |
Weight for beam spot size reweighting. More... | |
bool | hasBeamSpotWeight () const |
Check if weight for beam spot size reweighting exists. More... | |
void | setBeamSpotWeight (float value) |
Set weight for beam spot size reweighting. More... | |
Static Public Attributes | |
static constexpr bool | supportsThinning = true |
Mark that this type supports thinning operations. More... | |
Protected Member Functions | |
bool | noPrivateData () const |
True if this element has no private data. More... | |
bool | havePrivateData () const |
True if this element currently has private data. More... | |
bool | hadPrivateData () const |
True if this element had private data before it was added to its current container. More... | |
Private Types | |
enum | PrivateStoreState : uint8_t { PrivateStoreState::NO_PRIVATE = 0, PrivateStoreState::HAVE_PRIVATE = 1, PrivateStoreState::HAD_PRIVATE = 2 } |
The current private data state. More... | |
Private Member Functions | |
std::vector< EventInfo_v1::SubEvent > | makeSubEvents () const |
void | releasePrivateStoreForDtor () |
Out-of-line portion of destructor. More... | |
void | setIndex (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
bool | setIndexPrivate (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
void | makePrivateStore1 (const void *other, bool warnUnlocked) |
Create a new private store for this object and copy aux data. More... | |
void | makePrivateStore1 (const AuxElement *other, bool warnUnlocked) |
Create a new private store for this object and copy aux data. More... | |
AuxElementStandaloneData * | setStore1 (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | clearAux () |
Clear all aux data associated with this element. More... | |
void | copyAux (const ConstAuxElement &other, bool warnUnlocked=false) |
Copy aux data from another object. More... | |
void | setNoPrivateData () |
Record that this element does not have private data. More... | |
void | setHavePrivateData () |
Record that this element currently has private data. More... | |
void | setHadPrivateData () |
Record that this element used to have private data. More... | |
Private Attributes | |
CxxUtils::CachedValue< std::vector< StreamTag > > | m_streamTags |
Cached stream tag objects. More... | |
CxxUtils::CachedValue< std::vector< SubEvent > > | m_subEvents |
Cached sub-event objects. More... | |
StoreGateSvc * | m_evtStore |
Transient pointer to the StoreGateSvc instance associated with the event (Needed for pile-up digitisation) More... | |
const SG::AuxVectorData * | m_container |
The container of which this object is an element. More... | |
size_t | m_index |
The index of this element within its container. More... | |
PrivateStoreState | m_privateStoreState |
Event type information | |
enum | EventType { IS_SIMULATION = 1, IS_TESTBEAM = 2, IS_CALIBRATION = 4 } |
Event type codes that can be set/checked in the bitmask. More... | |
typedef std::vector< std::pair< std::string, std::string > > | DetDescrTags_t |
Type of the detector description tags. More... | |
const DetDescrTags_t & | detDescrTags () const |
The detector description tags. More... | |
void | setDetDescrTags (const DetDescrTags_t &value) |
Set the detector description tags. More... | |
uint32_t | mcChannelNumber () const |
The MC generator's channel number. More... | |
void | setMCChannelNumber (uint32_t value) |
Set the MC generator's channel number. More... | |
uint64_t | mcEventNumber () const |
The MC generator's event number. More... | |
void | setMCEventNumber (uint64_t value) |
Set the MC generator's event number. More... | |
const std::vector< float > & | mcEventWeights () const |
The weights of all the MC events used in the simulation. More... | |
void | setMCEventWeights (const std::vector< float > &value) |
Set the weights of all the MC events used in the simulation. More... | |
float | mcEventWeight (size_t i=0) const |
The weight of one specific MC event used in the simulation. More... | |
uint32_t | eventTypeBitmask () const |
The event type bitmask. More... | |
void | setEventTypeBitmask (uint32_t value) |
Set the event type bitmask. More... | |
bool | eventType (EventType type) const |
Check for one particular bitmask value. More... | |
Pileup information | |
enum | PileUpType { Unknown = 99, Signal = 0, MinimumBias = 1, Cavern = 2, HaloGas = 3, HighPtMinimumBias = 4, ZeroBias = 5, PileUp_NTYPES } |
Enumerator describing the types of pileup events. More... | |
float | actualInteractionsPerCrossing () const |
Average interactions per crossing for the current BCID - for in-time pile-up. More... | |
void | setActualInteractionsPerCrossing (float value) |
Set average interactions per crossing for the current BCID. More... | |
float | averageInteractionsPerCrossing () const |
Average interactions per crossing for all BCIDs - for out-of-time pile-up. More... | |
void | setAverageInteractionsPerCrossing (float value) |
Set average interactions per crossing for all BCIDs. More... | |
PileUpMixtureID | pileUpMixtureID () const |
Unique pile-up mixture identifier. More... | |
void | setPileUpMixtureID (const PileUpMixtureID &value) |
Set unique pile-up mixture identifier. More... | |
uint64_t | pileUpMixtureIDLowBits () const |
Unique pile-up mixture identifier low bits. More... | |
void | setPileUpMixtureIDLowBits (uint64_t value) |
Set unique pile-up mixture identifier low bits. More... | |
uint64_t | pileUpMixtureIDHighBits () const |
Unique pile-up mixture identifier high bits. More... | |
void | setPileUpMixtureIDHighBits (uint64_t value) |
Set unique pile-up mixture identifier high bits. More... | |
const std::vector< SubEvent > & | subEvents () const |
Get the pileup events that were used in the simulation. More... | |
void | setSubEvents (const std::vector< SubEvent > &value) |
Set the pileup events that were used in the simulation. More... | |
void | addSubEvent (const SubEvent &subEvent) |
Add one sub-event to the existing list. More... | |
void | clearSubEvents () |
Clear all the currently held sub-events. More... | |
static const std::string & | PileUpType2Name (PileUpType typ) |
Convert PileUpType enum value to string. More... | |
static PileUpType | PileUpInt2Type (unsigned short typ) |
Convert int to PileUpType enum value. More... | |
Detector information | |
enum | EventFlagSubDet { Pixel = 0, SCT = 1, TRT = 2, LAr = 3, Tile = 4, Muon = 5, ForwardDet = 6, Core = 7, Background = 8, Lumi = 9, nDets = 10 } |
Sub-detector types for which we store event-level flags. More... | |
enum | EventFlagErrorState { NotSet = 0, Warning = 1, Error = 2 } |
States that a given sub-detector could be in. More... | |
enum | BackgroundEventFlag { MBTSTimeDiffHalo = 0, MBTSTimeDiffCol = 1, LArECTimeDiffHalo = 2, LArECTimeDiffCol = 3, PixMultiplicityHuge = 4, PixSPNonEmpty = 5, SCTMultiplicityHuge = 6, SCTSPNonEmpty = 7, CSCTimeDiffHalo = 8, CSCTimeDiffCol = 9, BCMTimeDiffHalo = 10, BCMTimeDiffCol = 11, MuonTimingCol = 12, MuonTimingCosmic = 13, MBTSBeamVeto = 14, BCMBeamVeto = 15, LUCIDBeamVeto = 16, HaloMuonSegment = 17, HaloClusterShape = 18, HaloMuonOneSided = 19, HaloMuonTwoSided = 20, HaloTileClusterPattern = 21, BeamGasPixel = 22, CosmicStandAlone = 23, CosmicStandAloneTight = 24, CosmicCombined = 25, CosmicCombinedTight = 26, BkgdResvBit1 = 27, BkgdResvBit2 = 28, BkgdResvBit3 = 29, BkgdResvBit4 = 30, BkgdResvBit5 = 31, NBackgroundWords = 32 } |
Enum for bits in Background EventFlag word. More... | |
uint32_t | eventFlags (EventFlagSubDet subDet) const |
Get the event flags for a particular sub-detector. More... | |
bool | isEventFlagBitSet (EventFlagSubDet subDet, size_t bit) const |
Check one particular bit of one particular sub-detector. More... | |
bool | setEventFlags (EventFlagSubDet subDet, uint32_t flags) |
Set the event flags for a particular sub-detector. More... | |
bool | setEventFlagBit (EventFlagSubDet subDet, size_t bit) const |
Set one particular bit of one particular sub-detector. More... | |
bool | resetEventFlagBit (EventFlagSubDet subDet, size_t bit) |
Reset one particular bit of one particular sub-detector. More... | |
EventFlagErrorState | errorState (EventFlagSubDet subDet) const |
Get the error state for a particular sub-detector. More... | |
bool | setErrorState (EventFlagSubDet subDet, EventFlagErrorState state) |
Set the error state for a particular sub-detector. More... | |
bool | updateEventFlagBit (const EventFlagSubDet subDet, const size_t bit) const |
Change detector flags with update semantics. More... | |
bool | updateEventFlags (const EventFlagSubDet subDet, const uint32_t flags_in) const |
Turn on a set of event flags for one particular sub-detector. More... | |
bool | updateErrorState (const EventFlagSubDet subDet, const EventFlagErrorState state) const |
Update the error state for one particular sub-detector. More... | |
Class describing the basic event information.
This is a replacement for the offline EventInfo class, to be used in xAOD files. It stores the same information as its parent, but in much simpler format. Practically in the same format in which we store(d) event information in D3PDs.
Definition at line 43 of file EventInfo_v1.h.
|
inherited |
Definition at line 572 of file AuxElement.h.
|
inherited |
Definition at line 569 of file AuxElement.h.
|
inherited |
Definition at line 575 of file AuxElement.h.
typedef std::vector< std::pair< std::string, std::string > > xAOD::EventInfo_v1::DetDescrTags_t |
Type of the detector description tags.
Definition at line 124 of file EventInfo_v1.h.
|
inherited |
Definition at line 566 of file AuxElement.h.
Enum for bits in Background EventFlag word.
Definition at line 353 of file EventInfo_v1.h.
States that a given sub-detector could be in.
Enumerator | |
---|---|
NotSet | The flag was not set to anything. |
Warning | The sub-detector issued a warning. |
Error | The sub-detector issued an error. |
Definition at line 346 of file EventInfo_v1.h.
Sub-detector types for which we store event-level flags.
Enumerator | |
---|---|
Pixel | The pixel tracker. |
SCT | The SCT. |
TRT | The TRT. |
LAr | The LAr calorimeter. |
Tile | The Tile calorimeter. |
Muon | The muon spectrometer. |
ForwardDet | The forward detectors. |
Core | Core flags describing the event. |
Background | The beam background detectors. |
Lumi | The luminosity detectors. |
nDets | Number of sub-detector type in this enumeration. |
Definition at line 331 of file EventInfo_v1.h.
Event type codes that can be set/checked in the bitmask.
Enumerator | |
---|---|
IS_SIMULATION | true: simulation, false: data |
IS_TESTBEAM | true: testbeam, false: full detector |
IS_CALIBRATION | true: calibration, false: physics |
Definition at line 149 of file EventInfo_v1.h.
Enumerator describing the types of pileup events.
Definition at line 264 of file EventInfo_v1.h.
|
strongprivateinherited |
The current private data state.
Enumerator | |
---|---|
NO_PRIVATE | |
HAVE_PRIVATE | |
HAD_PRIVATE |
Definition at line 131 of file IAuxElement.h.
xAOD::EventInfo_v1::EventInfo_v1 | ( | ) |
Default constructor.
Definition at line 82 of file EventInfo_v1.cxx.
xAOD::EventInfo_v1::EventInfo_v1 | ( | const EventInfo_v1 & | parent | ) |
float xAOD::EventInfo_v1::actualInteractionsPerCrossing | ( | ) | const |
Average interactions per crossing for the current BCID - for in-time pile-up.
Definition at line 380 of file EventInfo_v1.cxx.
|
inherited |
Assignment.
other | The object from which we're assigning. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
We don't copy container/index, as assignment doesn't change where this object is. However, if we have aux data, then we copy aux data if we're copying from an object that also has it; otherwise, if we're copying from an object with no aux data, then we clear ours.
|
inherited |
Fetch an aux data variable, as a non-const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
or ConstAccessor
classes.
|
inherited |
Fetch an aux data variable, as a non-const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
or ConstAccessor
classes.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
|
inherited |
Fetch an aux decoration, as a non-const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
|
inherited |
Fetch an aux decoration, as a non-const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
float xAOD::EventInfo_v1::averageInteractionsPerCrossing | ( | ) | const |
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
Definition at line 397 of file EventInfo_v1.cxx.
uint32_t xAOD::EventInfo_v1::bcid | ( | ) | const |
The bunch crossing ID of the event.
float xAOD::EventInfo_v1::beamPosSigmaX | ( | ) | const |
The width of the beam spot in the X direction.
float xAOD::EventInfo_v1::beamPosSigmaXY | ( | ) | const |
The beam spot shape's X-Y correlation.
float xAOD::EventInfo_v1::beamPosSigmaY | ( | ) | const |
The width of the beam spot in the Y direction.
float xAOD::EventInfo_v1::beamPosSigmaZ | ( | ) | const |
The length of the beam spot in the Z direction.
float xAOD::EventInfo_v1::beamPosX | ( | ) | const |
X coordinate of the beam spot position.
float xAOD::EventInfo_v1::beamPosY | ( | ) | const |
Y coordinate of the beam spot position.
float xAOD::EventInfo_v1::beamPosZ | ( | ) | const |
Z coordinate of the beam spot position.
float xAOD::EventInfo_v1::beamSpotWeight | ( | ) | const |
uint32_t xAOD::EventInfo_v1::beamStatus | ( | ) | const |
The beam spot's status word.
float xAOD::EventInfo_v1::beamTiltXZ | ( | ) | const |
The beam's tilt in radians in XZ.
float xAOD::EventInfo_v1::beamTiltYZ | ( | ) | const |
The beam's tilt in radians in YZ.
|
privateinherited |
Clear all aux data associated with this element.
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
Definition at line 580 of file AuxElement.cxx.
|
inherited |
Clear the cached aux data pointers.
You should call this any time something changes in the aux store that could invalidate the vector pointers.
Definition at line 339 of file AuxElement.cxx.
|
inherited |
Clear all decorations.
Erase all decorations from an associated store, restoring the state to when lock
was called.
Returns true if there were any decorations that were cleared, false if the store did not contain any decorations.
Definition at line 428 of file AuxElement.cxx.
void xAOD::EventInfo_v1::clearSubEvents | ( | ) |
|
inherited |
Return the container holding this element.
|
inherited |
Return the container holding this element.
|
privateinherited |
Copy aux data from another object.
other | The object from which to copy. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
All aux data items from other
are copied to this object. Any aux data items associated with this object that are not present in other
are cleared. (If other
has no aux data, then all aux data items for this object are cleared.)
Definition at line 607 of file AuxElement.cxx.
const DetDescrTags_t& xAOD::EventInfo_v1::detDescrTags | ( | ) | const |
The detector description tags.
setEventNumber setTimeStamp setBCID setDetectorMask1 setDetectorMask3 uint64_t xAOD::EventInfo_v1::detectorMask | ( | ) | const |
Bit field indicating which TTC zones are present in the event.
Definition at line 143 of file EventInfo_v1.cxx.
uint32_t xAOD::EventInfo_v1::detectorMask0 | ( | ) | const |
Bit field indicating which TTC zones are present in the event.
uint32_t xAOD::EventInfo_v1::detectorMask1 | ( | ) | const |
Bit field indicating which TTC zones are present in the event.
uint32_t xAOD::EventInfo_v1::detectorMask2 | ( | ) | const |
Bit field indicating which TTC zones are present in the event.
uint32_t xAOD::EventInfo_v1::detectorMask3 | ( | ) | const |
Bit field indicating which TTC zones are present in the event.
uint64_t xAOD::EventInfo_v1::detectorMaskExt | ( | ) | const |
Bit field indicating which TTC zones are present in the event.
Definition at line 164 of file EventInfo_v1.cxx.
EventInfo_v1::EventFlagErrorState xAOD::EventInfo_v1::errorState | ( | EventFlagSubDet | subDet | ) | const |
uint32_t xAOD::EventInfo_v1::eventFlags | ( | EventFlagSubDet | subDet | ) | const |
Get the event flags for a particular sub-detector.
Definition at line 697 of file EventInfo_v1.cxx.
uint64_t xAOD::EventInfo_v1::eventNumber | ( | ) | const |
The current event's event number.
uint32_t xAOD::EventInfo_v1::eventTypeBitmask | ( | ) | const |
The event type bitmask.
uint32_t xAOD::EventInfo_v1::extendedLevel1ID | ( | ) | const |
The extended Level-1 identifier.
|
inherited |
Return a set of identifiers for existing data items for this object.
If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.
Definition at line 355 of file AuxElement.cxx.
|
inherited |
Return the current store, as a const interface.
This will be non-zero if either a const or non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 304 of file AuxElement.cxx.
|
inherited |
Return a set of identifiers for decorations for this object.
If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.
Definition at line 378 of file AuxElement.cxx.
|
inherited |
Return the current store, as a non-const interface.
This will be non-zero if a non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 319 of file AuxElement.cxx.
|
protectedinherited |
True if this element had private data before it was added to its current container.
bool xAOD::EventInfo_v1::hasBeamSpotWeight | ( | ) | const |
Check if weight for beam spot size reweighting exists.
Definition at line 966 of file EventInfo_v1.cxx.
|
inherited |
Return true if this object has an associated non-const store.
This will be true for either a private or standalone store.
Definition at line 411 of file AuxElement.cxx.
|
inherited |
Return true if this object has an associated store.
This will be true for either a private or standalone store.
Definition at line 398 of file AuxElement.cxx.
|
protectedinherited |
True if this element currently has private data.
|
inherited |
Return the index of this element within its container.
|
inherited |
Return the index of this element within its container.
Inherited from IAuxElement.
|
inherited |
Check if an aux variable is available for reading.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Check if an aux variable is available for writing.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Check if an aux variable is available for writing as a decoration.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
bool xAOD::EventInfo_v1::isEventFlagBitSet | ( | EventFlagSubDet | subDet, |
size_t | bit | ||
) | const |
Check one particular bit of one particular sub-detector.
Definition at line 703 of file EventInfo_v1.cxx.
uint16_t xAOD::EventInfo_v1::level1TriggerType | ( | ) | const |
The Level-1 trigger type.
uint32_t xAOD::EventInfo_v1::lumiBlock | ( | ) | const |
The current event's luminosity block number.
|
inherited |
Create a new (empty) private store for this object.
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
Definition at line 192 of file AuxElement.cxx.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does have aux data.
Definition at line 565 of file AuxElement.cxx.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does not have aux data.
|
private |
Definition at line 523 of file EventInfo_v1.cxx.
setMCChannelNumber setMCEventWeights float xAOD::EventInfo_v1::mcEventWeight | ( | size_t | i = 0 | ) | const |
The weight of one specific MC event used in the simulation.
Definition at line 203 of file EventInfo_v1.cxx.
The weights of all the MC events used in the simulation.
|
protectedinherited |
True if this element has no private data.
EventInfo_v1 & xAOD::EventInfo_v1::operator= | ( | const EventInfo_v1 & | rhs | ) |
|
static |
setPileUpMixtureIDHighBits EventInfo_v1::PileUpMixtureID xAOD::EventInfo_v1::pileUpMixtureID | ( | ) | const |
uint64_t xAOD::EventInfo_v1::pileUpMixtureIDHighBits | ( | ) | const |
Unique pile-up mixture identifier high bits.
uint64_t xAOD::EventInfo_v1::pileUpMixtureIDLowBits | ( | ) | const |
Unique pile-up mixture identifier low bits.
|
static |
|
inherited |
Release and free any private store associated with this object.
ExcBadPrivateStore
will be thrown if this object does not have a private store.
Definition at line 210 of file AuxElement.cxx.
|
privateinherited |
Out-of-line portion of destructor.
Delete a private store if we have one.
Definition at line 441 of file AuxElement.cxx.
bool xAOD::EventInfo_v1::resetEventFlagBit | ( | EventFlagSubDet | subDet, |
size_t | bit | ||
) |
Reset one particular bit of one particular sub-detector.
Definition at line 772 of file EventInfo_v1.cxx.
uint32_t xAOD::EventInfo_v1::runNumber | ( | ) | const |
The current event's run number.
void xAOD::EventInfo_v1::setActualInteractionsPerCrossing | ( | float | value | ) |
Set average interactions per crossing for the current BCID.
Definition at line 391 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setAverageInteractionsPerCrossing | ( | float | value | ) |
Set average interactions per crossing for all BCIDs.
Definition at line 408 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setBCID | ( | uint32_t | value | ) |
Set the bunch crossing ID of the event.
void xAOD::EventInfo_v1::setBeamPosSigmaXY | ( | float | value | ) |
Set the beam spot shape's X-Y correlation.
void xAOD::EventInfo_v1::setBeamSpotWeight | ( | float | value | ) |
Set weight for beam spot size reweighting.
Definition at line 976 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setBeamStatus | ( | uint32_t | value | ) |
Set the beam spot's status word.
void xAOD::EventInfo_v1::setBeamTiltXZ | ( | float | value | ) |
Set the beam's tilt in radians in XZ.
void xAOD::EventInfo_v1::setBeamTiltYZ | ( | float | value | ) |
Set the beam's tilt in radians in YZ.
|
inherited |
Synonym for setStore
with IConstAuxStore
.
store | The new store. |
void xAOD::EventInfo_v1::setDetDescrTags | ( | const DetDescrTags_t & | value | ) |
Set the detector description tags.
Set the bit fields indicating with TTC timezones were present.
Definition at line 149 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setDetectorMask | ( | uint64_t | mask | ) |
Set the bit fields indicating with TTC timezones were present.
Definition at line 156 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setDetectorMask0 | ( | uint32_t | value | ) |
Set the bit field indicating with TTC timezones were present.
void xAOD::EventInfo_v1::setDetectorMask1 | ( | uint32_t | value | ) |
Set the bit field indicating with TTC timezones were present.
void xAOD::EventInfo_v1::setDetectorMask2 | ( | uint32_t | value | ) |
Set the bit field indicating with TTC timezones were present.
void xAOD::EventInfo_v1::setDetectorMask3 | ( | uint32_t | value | ) |
Set the bit field indicating with TTC timezones were present.
Set the bit fields indicating with TTC timezones were present.
Definition at line 170 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setDetectorMaskExt | ( | uint64_t | mask | ) |
Set the bit fields indicating with TTC timezones were present.
Definition at line 177 of file EventInfo_v1.cxx.
bool xAOD::EventInfo_v1::setErrorState | ( | EventFlagSubDet | subDet, |
EventFlagErrorState | state | ||
) |
bool xAOD::EventInfo_v1::setEventFlagBit | ( | EventFlagSubDet | subDet, |
size_t | bit | ||
) | const |
Set one particular bit of one particular sub-detector.
Definition at line 741 of file EventInfo_v1.cxx.
bool xAOD::EventInfo_v1::setEventFlags | ( | EventFlagSubDet | subDet, |
uint32_t | flags | ||
) |
void xAOD::EventInfo_v1::setEventNumber | ( | uint64_t | value | ) |
Set the current event's event number.
void xAOD::EventInfo_v1::setEventTypeBitmask | ( | uint32_t | value | ) |
Set the event type bitmask.
void xAOD::EventInfo_v1::setExtendedLevel1ID | ( | uint32_t | value | ) |
Set the extended Level-1 identifier.
|
privateinherited |
Record that this element used to have private data.
|
privateinherited |
Record that this element currently has private data.
|
privateinherited |
Set the index/container for this element.
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
Usually this simply sets the index and container members of this object. However, in the case where this object has an associated private store, then we need to deal with releasing the store if the object is being added to a container, or making a new store if the object is being removed from a container.
|
privateinherited |
Set the index/container for this element.
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
This is called from setIndex
when we have a private store to deal with.
Definition at line 505 of file AuxElement.cxx.
void xAOD::EventInfo_v1::setLevel1TriggerType | ( | uint16_t | value | ) |
Set the Level-1 trigger type.
void xAOD::EventInfo_v1::setLumiBlock | ( | uint32_t | value | ) |
Set the current event's luminosity block number.
void xAOD::EventInfo_v1::setMCChannelNumber | ( | uint32_t | value | ) |
Set the MC generator's channel number.
Set the weights of all the MC events used in the simulation.
|
inherited |
Synonym for setStore
with IAuxStore
.
store | The new store. |
|
privateinherited |
Record that this element does not have private data.
void xAOD::EventInfo_v1::setPileUpMixtureID | ( | const PileUpMixtureID & | value | ) |
void xAOD::EventInfo_v1::setPileUpMixtureIDHighBits | ( | uint64_t | value | ) |
Set unique pile-up mixture identifier high bits.
void xAOD::EventInfo_v1::setPileUpMixtureIDLowBits | ( | uint64_t | value | ) |
Set unique pile-up mixture identifier low bits.
void xAOD::EventInfo_v1::setRunNumber | ( | uint32_t | value | ) |
Set the current event's run number.
void xAOD::EventInfo_v1::setStatusElement | ( | uint32_t | value | ) |
Set the trigger status element.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
store | Link to the new store. |
Definition at line 269 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 241 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 257 of file AuxElement.cxx.
|
privateinherited |
Set the store associated with this object.
store | The new store. |
Helper for setStore
. Creates the AuxElementStandaloneData
object if needed and returns it.
store | The new store. |
Helper for setStore
. Creates the @x AuxElementStandaloneData object if needed and returns it.
Definition at line 461 of file AuxElement.cxx.
Set the pileup events that were used in the simulation.
Definition at line 607 of file EventInfo_v1.cxx.
void xAOD::EventInfo_v1::setTimeStamp | ( | uint32_t | value | ) |
Set the POSIX time of the event.
void xAOD::EventInfo_v1::setTimeStampNSOffset | ( | uint32_t | value | ) |
Set the nanosecond offset wrt. the time stamp.
uint32_t xAOD::EventInfo_v1::statusElement | ( | ) | const |
Trigger status element.
const std::vector< EventInfo_v1::StreamTag > & xAOD::EventInfo_v1::streamTags | ( | ) | const |
const std::vector< EventInfo_v1::SubEvent > & xAOD::EventInfo_v1::subEvents | ( | ) | const |
Get the pileup events that were used in the simulation.
Definition at line 596 of file EventInfo_v1.cxx.
uint32_t xAOD::EventInfo_v1::timeStamp | ( | ) | const |
POSIX time in seconds from 1970. January 1st.
uint32_t xAOD::EventInfo_v1::timeStampNSOffset | ( | ) | const |
Nanosecond time offset wrt. the time stamp.
void xAOD::EventInfo_v1::toPersistent | ( | ) |
void xAOD::EventInfo_v1::toTransient | ( | ) |
Cleanse the object after being read in.
As it is now fairly complicated to prepare an EventInfo object for usage after it's been read in from a branch, it seemed to make sense to put the code that's used to do this, into a separate function.
It tries to do the right thing in all situations...
Definition at line 1018 of file EventInfo_v1.cxx.
|
inherited |
Return true if index tracking is enabled for this object.
Always returns true. Included here to be consistent with AuxVectorBase when standalone objects may be used as template parameters.
bool xAOD::EventInfo_v1::updateErrorState | ( | const EventFlagSubDet | subDet, |
const EventFlagErrorState | state | ||
) | const |
Update the error state for one particular sub-detector.
The error state may only be increased by this method. If STATE is less than the current error state, then this method will return false and leave the current state unchanged.
Definition at line 856 of file EventInfo_v1.cxx.
bool xAOD::EventInfo_v1::updateEventFlagBit | ( | const EventFlagSubDet | subDet, |
const size_t | bit | ||
) | const |
Change detector flags with update semantics.
This means that we can set bits but not reset them, and that the error state can move higher (NotSet -> Warning -> Error) but not the other way. These methods are const, so they can be called on an existing EventInfo, but will fail with an exception if the detector flag word has been locked. This will happen on input if the flag word has already been set to something; it could also happen if the flag word is written explicitly with a DecorationHandle.
Be aware that no dependency tracking is done for these flags, so something that is reading them should ensure that whatever writes them runs first. In most cases, setting event flags goes along with producing some data item; in those cases, it should suffice for the reader to have a dependency on this data item. In other cases, one might need to use explicit DecorationHandle's or produce a dummy data item. Set one particular bit of one particular sub-detector
Definition at line 746 of file EventInfo_v1.cxx.
bool xAOD::EventInfo_v1::updateEventFlags | ( | const EventFlagSubDet | subDet, |
const uint32_t | flags_in | ||
) | const |
Turn on a set of event flags for one particular sub-detector.
This does a logical OR of the exising flags and FLAGS.
Definition at line 792 of file EventInfo_v1.cxx.
|
inherited |
Test to see if this object is currently using a private store.
Definition at line 280 of file AuxElement.cxx.
|
inherited |
Test to see if this object is currently using a standalone store.
Test to see if this object is currently using a private store.
Definition at line 290 of file AuxElement.cxx.
|
privateinherited |
The container of which this object is an element.
Should be null if this object is not within a container, except that it may also point at a private store.
Definition at line 335 of file AuxElement.h.
|
private |
Transient pointer to the StoreGateSvc instance associated with the event (Needed for pile-up digitisation)
Definition at line 518 of file EventInfo_v1.h.
|
privateinherited |
The index of this element within its container.
Should be 0 if this object is not within a container.
Definition at line 128 of file IAuxElement.h.
|
privateinherited |
Definition at line 137 of file IAuxElement.h.
|
private |
Cached stream tag objects.
Definition at line 511 of file EventInfo_v1.h.
|
private |
Cached sub-event objects.
Definition at line 513 of file EventInfo_v1.h.
|
staticconstexprinherited |
Mark that this type supports thinning operations.
See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.
Definition at line 959 of file AuxElement.h.