ATLAS Offline Software
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
xAOD::EventInfo_v1 Class Reference

Class describing the basic event information. More...

#include <EventInfo_v1.h>

Inheritance diagram for xAOD::EventInfo_v1:
Collaboration diagram for xAOD::EventInfo_v1:

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_v1operator= (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::AuxVectorDatacontainer () const
 Return the container holding this element. More...
 
SG::AuxVectorDatacontainer ()
 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::IConstAuxStoregetConstStore () const
 Return the current store, as a const interface. More...
 
SG::IAuxStoregetStore () const
 Return the current store, as a non-const interface. More...
 
void clearCache ()
 Clear the cached aux data pointers. More...
 
const SG::auxid_set_tgetAuxIDs () const
 Return a set of identifiers for existing data items for this object. More...
 
const SG::auxid_set_tgetDecorIDs () 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::SubEventmakeSubEvents () 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...
 
StoreGateSvcm_evtStore
 Transient pointer to the StoreGateSvc instance associated with the event (Needed for pile-up digitisation) More...
 
const SG::AuxVectorDatam_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_tdetDescrTags () 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...
 

Detailed Description

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.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h

Definition at line 43 of file EventInfo_v1.h.

Member Typedef Documentation

◆ Accessor

template<class T , class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::Accessor = SG::Accessor<T, ALLOC>
inherited

Definition at line 572 of file AuxElement.h.

◆ ConstAccessor

template<class T , class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::ConstAccessor = SG::ConstAccessor<T, ALLOC>
inherited

Definition at line 569 of file AuxElement.h.

◆ Decorator

template<class T , class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::Decorator = SG::Decorator<T, ALLOC>
inherited

Definition at line 575 of file AuxElement.h.

◆ DetDescrTags_t

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.

◆ TypelessConstAccessor

using SG::AuxElement::TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor
inherited

Definition at line 566 of file AuxElement.h.

Member Enumeration Documentation

◆ BackgroundEventFlag

Enum for bits in Background EventFlag word.

Enumerator
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 

Definition at line 353 of file EventInfo_v1.h.

353  {
354  MBTSTimeDiffHalo = 0,
355  MBTSTimeDiffCol = 1,
356  LArECTimeDiffHalo = 2,
357  LArECTimeDiffCol = 3,
359  PixSPNonEmpty = 5,
361  SCTSPNonEmpty = 7,
362  CSCTimeDiffHalo = 8,
363  CSCTimeDiffCol = 9,
364  BCMTimeDiffHalo = 10,
365  BCMTimeDiffCol = 11,
366  MuonTimingCol = 12,
367  MuonTimingCosmic = 13,
368  MBTSBeamVeto = 14,
369  BCMBeamVeto = 15,
370  LUCIDBeamVeto = 16,
371  HaloMuonSegment = 17,
372  HaloClusterShape = 18,
373  HaloMuonOneSided = 19,
374  HaloMuonTwoSided = 20,
376  BeamGasPixel = 22,
377  CosmicStandAlone = 23,
379  CosmicCombined = 25,
380  CosmicCombinedTight = 26,
381  BkgdResvBit1 = 27,
382  BkgdResvBit2 = 28,
383  BkgdResvBit3 = 29,
384  BkgdResvBit4 = 30,
385  BkgdResvBit5 = 31,
386  NBackgroundWords = 32
387  };

◆ EventFlagErrorState

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.

346  {
347  NotSet = 0,
348  Warning = 1,
349  Error = 2
350  };

◆ EventFlagSubDet

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.

331  {
332  Pixel = 0,
333  SCT = 1,
334  TRT = 2,
335  LAr = 3,
336  Tile = 4,
337  Muon = 5,
338  ForwardDet = 6,
339  Core = 7,
340  Background = 8,
341  Lumi = 9,
342  nDets = 10
343  };

◆ EventType

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.

149  {
151  IS_SIMULATION = 1,
153  IS_TESTBEAM = 2,
155  IS_CALIBRATION = 4
156  };

◆ PileUpType

Enumerator describing the types of pileup events.

Enumerator
Unknown 

Type not known/specified.

Signal 

The signal event.

MinimumBias 

(Low pT) Minimum bias pileup event

Cavern 

Cavern background pileup event.

HaloGas 

Halo-gas non-collision background.

HighPtMinimumBias 

High pT Minimum bias pileup event.

ZeroBias 

Zero bias pileup event.

PileUp_NTYPES 

Definition at line 264 of file EventInfo_v1.h.

264  {
265  Unknown = 99,
266  Signal = 0,
267  MinimumBias = 1,
268  Cavern = 2,
269  HaloGas = 3,
270  HighPtMinimumBias = 4,
271  ZeroBias = 5,
273  }; // enum PileUpType

◆ PrivateStoreState

enum SG::IAuxElement::PrivateStoreState : uint8_t
strongprivateinherited

The current private data state.

Enumerator
NO_PRIVATE 
HAVE_PRIVATE 
HAD_PRIVATE 

Definition at line 131 of file IAuxElement.h.

132  {
133  NO_PRIVATE = 0,
134  HAVE_PRIVATE = 1,
135  HAD_PRIVATE = 2,
136  };

Constructor & Destructor Documentation

◆ EventInfo_v1() [1/2]

xAOD::EventInfo_v1::EventInfo_v1 ( )

Default constructor.

Definition at line 82 of file EventInfo_v1.cxx.

84  m_subEvents(), m_evtStore( nullptr ) {
85 
86  }

◆ EventInfo_v1() [2/2]

xAOD::EventInfo_v1::EventInfo_v1 ( const EventInfo_v1 parent)

Copy constructor.

Definition at line 88 of file EventInfo_v1.cxx.

90  m_subEvents(),
91  m_evtStore( parent.m_evtStore ) {
92 
94  }

Member Function Documentation

◆ actualInteractionsPerCrossing()

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.

380  {
381 
382  // If the value is not available, then return 0.0, but allow users to
383  // find out about this issue.
384  if( ! accActualInteractionsPerCrossing.isAvailable( *this ) ) {
386  return 0.0f;
387  }
388  return accActualInteractionsPerCrossing( *this );
389  }

◆ addSubEvent()

void xAOD::EventInfo_v1::addSubEvent ( const SubEvent subEvent)

Add one sub-event to the existing list.

Definition at line 629 of file EventInfo_v1.cxx.

629  {
630 
631  // First, make sure that the persistent and transient variables are in
632  // sync:
633  subEvents();
634 
635  // Now, add the new sub-event:
636  std::vector<SubEvent> subEvents = *m_subEvents.ptr();
637  subEvents.push_back( subEvent );
638  m_subEvents.store (std::move (subEvents));
639  timeAcc( *this ).push_back( subEvent.time() );
640  indexAcc( *this ).push_back( subEvent.index() );
641  typeAcc( *this ).push_back( static_cast< uint16_t >( subEvent.type() ) );
642  linkAcc( *this ).push_back( subEvent.link() );
643 
644  return;
645  }

◆ assign()

void SG::AuxElement::assign ( const AuxElement other,
bool  warnUnlocked = false 
)
inherited

Assignment.

Parameters
otherThe object from which we're assigning.
warnUnlockedIf 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.

◆ auxdata() [1/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::reference_type SG::AuxElement::auxdata ( const std::string &  name)
inherited

Fetch an aux data variable, as a non-const reference.

Parameters
nameName 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.

◆ auxdata() [2/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdata ( const std::string &  name) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName 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.

◆ auxdata() [3/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::reference_type SG::AuxElement::auxdata ( const std::string &  name,
const std::string &  clsname 
)
inherited

Fetch an aux data variable, as a non-const reference.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ auxdata() [4/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdata ( const std::string &  name,
const std::string &  clsname 
) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ auxdataConst() [1/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdataConst ( const std::string &  name) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName 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.

◆ auxdataConst() [2/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor<T, ALLOC>::const_reference_type SG::AuxElement::auxdataConst ( const std::string &  name,
const std::string &  clsname 
) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ auxdecor() [1/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator<T, ALLOC>::reference_type SG::AuxElement::auxdecor ( const std::string &  name) const
inherited

Fetch an aux decoration, as a non-const reference.

Parameters
nameName 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.

◆ auxdecor() [2/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator<T, ALLOC>::reference_type SG::AuxElement::auxdecor ( const std::string &  name,
const std::string &  clsname 
) const
inherited

Fetch an aux decoration, as a non-const reference.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ averageInteractionsPerCrossing()

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.

397  {
398 
399  // If the value is not available, then return 0.0, but allow users to
400  // find out about this issue.
401  if( ! accAverageInteractionsPerCrossing.isAvailable( *this ) ) {
403  return 0.0f;
404  }
405  return accAverageInteractionsPerCrossing( *this );
406  }

◆ bcid()

uint32_t xAOD::EventInfo_v1::bcid ( ) const

The bunch crossing ID of the event.

◆ beamPosSigmaX()

float xAOD::EventInfo_v1::beamPosSigmaX ( ) const

The width of the beam spot in the X direction.

◆ beamPosSigmaXY()

float xAOD::EventInfo_v1::beamPosSigmaXY ( ) const

The beam spot shape's X-Y correlation.

◆ beamPosSigmaY()

float xAOD::EventInfo_v1::beamPosSigmaY ( ) const

The width of the beam spot in the Y direction.

◆ beamPosSigmaZ()

float xAOD::EventInfo_v1::beamPosSigmaZ ( ) const

The length of the beam spot in the Z direction.

◆ beamPosX()

float xAOD::EventInfo_v1::beamPosX ( ) const

X coordinate of the beam spot position.

◆ beamPosY()

float xAOD::EventInfo_v1::beamPosY ( ) const

Y coordinate of the beam spot position.

◆ beamPosZ()

float xAOD::EventInfo_v1::beamPosZ ( ) const

Z coordinate of the beam spot position.

◆ beamSpotWeight()

float xAOD::EventInfo_v1::beamSpotWeight ( ) const

Weight for beam spot size reweighting.

Definition at line 970 of file EventInfo_v1.cxx.

970  {
971  // If the value is not available, then return 1.0
972  if( ! hasBeamSpotWeight() ) return 1.0f;
973  return accBeamSpotWeight( *this );
974  }

◆ beamStatus()

uint32_t xAOD::EventInfo_v1::beamStatus ( ) const

The beam spot's status word.

◆ beamTiltXZ()

float xAOD::EventInfo_v1::beamTiltXZ ( ) const

The beam's tilt in radians in XZ.

◆ beamTiltYZ()

float xAOD::EventInfo_v1::beamTiltYZ ( ) const

The beam's tilt in radians in YZ.

◆ clearAux()

void SG::AuxElement::clearAux ( )
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.

581 {
582  if (!m_container) return;
583  if (!m_container->hasStore()) return;
585  throw SG::ExcConstAuxData ("clearAux", SG::null_auxid);
586 
588  for (SG::auxid_t auxid : m_container->getWritableAuxIDs()) {
589  r.clear (auxid, *container(), index(), 1);
590  }
591 }

◆ clearCache()

void SG::AuxElement::clearCache ( )
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.

340 {
341  if (container())
342  container()->clearCache();
343 }

◆ clearDecorations()

bool SG::AuxElement::clearDecorations ( ) const
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.

429 {
430  if (havePrivateData())
431  return m_container->clearDecorations();
432  return false;
433 }

◆ clearSubEvents()

void xAOD::EventInfo_v1::clearSubEvents ( )

Clear all the currently held sub-events.

Definition at line 647 of file EventInfo_v1.cxx.

647  {
648 
649  // Clear both the transient and persistent variables:
650  m_subEvents.store (std::vector<SubEvent>());
651  m_subEvents.reset();
652  timeAcc( *this ).clear(); indexAcc( *this ).clear();
653  typeAcc( *this ).clear(); linkAcc( *this ).clear();
654 
655  return;
656  }

◆ container() [1/2]

SG::AuxVectorData* SG::AuxElement::container ( )
inherited

Return the container holding this element.

◆ container() [2/2]

const SG::AuxVectorData* SG::AuxElement::container ( ) const
inherited

Return the container holding this element.

◆ copyAux()

void SG::AuxElement::copyAux ( const ConstAuxElement other,
bool  warnUnlocked = false 
)
privateinherited

Copy aux data from another object.

Parameters
otherThe object from which to copy.
warnUnlockedIf 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.

609 {
610  if (!m_container) return;
611  if (!m_container->hasStore()) return;
613  throw SG::ExcConstAuxData ("copyAux");
614 
615  const SG::AuxVectorData* ocont = other.container();
616 
617  if (!ocont || !ocont->hasStore()) {
618  this->clearAux();
619  return;
620  }
621 
622  size_t oindex = other.index();
623  SG::auxid_set_t other_ids = ocont->getAuxIDs();
624 #ifndef XAOD_STANDALONE
625  SG::auxid_set_t other_decors = ocont->getDecorIDs();
626 #endif
627 
629 
630  SG::AuxVectorData& cont = *container();
631  for (SG::auxid_t auxid : other_ids) {
632 #ifndef XAOD_STANDALONE
633  if (other_decors.test (auxid)) {
634  // Don't copy decorations --- another thread may be modifying them.
635  other_ids.reset (auxid);
636  // Warn if we skip a decoration (except for mcEventWeights,
637  // for which this is expected).
638  if (warnUnlocked && r.getName(auxid) != "mcEventWeights") {
639  std::ostringstream ss;
640  ss << "skipped unlocked decoration " << r.getName(auxid)
641  << " (" << auxid << ")";
642  ATHCONTAINERS_WARNING("copyAux", ss.str());
643  }
644  }
645  else
646 #endif
647  if (!r.isLinked (auxid)) {
648  r.copy (auxid, cont, index(), *ocont, oindex, 1);
649  }
650  }
651 
652  for (SG::auxid_t auxid : m_container->getWritableAuxIDs()) {
653  if (!other_ids.test (auxid)) {
654  r.clear (auxid, cont, index(), 1);
655  }
656  }
657 }

◆ detDescrTags()

const DetDescrTags_t& xAOD::EventInfo_v1::detDescrTags ( ) const

The detector description tags.

◆ detectorMask()

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.

143  {
144 
145  return ( ( static_cast< uint64_t >( detectorMask1() ) << 32 ) |
146  detectorMask0() );
147  }

◆ detectorMask0()

uint32_t xAOD::EventInfo_v1::detectorMask0 ( ) const

Bit field indicating which TTC zones are present in the event.

◆ detectorMask1()

uint32_t xAOD::EventInfo_v1::detectorMask1 ( ) const

Bit field indicating which TTC zones are present in the event.

◆ detectorMask2()

uint32_t xAOD::EventInfo_v1::detectorMask2 ( ) const

Bit field indicating which TTC zones are present in the event.

◆ detectorMask3()

uint32_t xAOD::EventInfo_v1::detectorMask3 ( ) const

Bit field indicating which TTC zones are present in the event.

◆ detectorMaskExt()

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.

164  {
165 
166  return ( ( static_cast< uint64_t >( detectorMask3() ) << 32 ) |
167  detectorMask2() );
168  }

◆ errorState()

EventInfo_v1::EventFlagErrorState xAOD::EventInfo_v1::errorState ( EventFlagSubDet  subDet) const

Get the error state for a particular sub-detector.

Definition at line 817 of file EventInfo_v1.cxx.

817  {
818 
819  // Get the value in one go:
820  return static_cast< EventFlagErrorState >(
821  ( ( *eventFlagsConstAccessorsV1( subDet ) )( *this ) >> EF_ERROR_SHIFT ) &
822  0xF );
823  }

◆ eventFlags()

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.

697  {
698 
699  return ( ( *eventFlagsConstAccessorsV1( subDet ) )( *this ) &
700  EF_BITS );
701  }

◆ eventNumber()

uint64_t xAOD::EventInfo_v1::eventNumber ( ) const

The current event's event number.

◆ eventType()

bool xAOD::EventInfo_v1::eventType ( EventType  type) const

Check for one particular bitmask value.

◆ eventTypeBitmask()

uint32_t xAOD::EventInfo_v1::eventTypeBitmask ( ) const

The event type bitmask.

◆ extendedLevel1ID()

uint32_t xAOD::EventInfo_v1::extendedLevel1ID ( ) const

The extended Level-1 identifier.

◆ getAuxIDs()

const SG::auxid_set_t & SG::AuxElement::getAuxIDs ( ) const
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.

356 {
357 #ifdef ATHCONTAINERS_R21_COMPAT
358  if (havePrivateData())
359  return m_container->getConstStore()->getAuxIDs();
360  if (container())
361  return container()->getAuxIDs();
362  static const SG::auxid_set_t null_set;
363  return null_set;
364 #else
366 #endif
367 }

◆ getConstStore()

const SG::IConstAuxStore * SG::AuxElement::getConstStore ( ) const
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.

305 {
306  if (havePrivateData()) {
307  return m_container->getConstStore();
308  }
309  return 0;
310 }

◆ getDecorIDs()

const SG::auxid_set_t & SG::AuxElement::getDecorIDs ( ) const
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.

379 {
380 #ifdef ATHCONTAINERS_R21_COMPAT
381  if (havePrivateData())
383  if (container())
384  return container()->getDecorIDs();
385  static const SG::auxid_set_t null_set;
386  return null_set;
387 #else
389 #endif
390 }

◆ getStore()

SG::IAuxStore * SG::AuxElement::getStore ( ) const
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.

320 {
321  if (havePrivateData()) {
322 #ifdef ATHCONTAINERS_R21_COMPAT
324 #else
325  SG::AuxVectorData* container_nc ATLAS_THREAD_SAFE = const_cast<SG::AuxVectorData*>(container());
326 #endif
327  return container_nc->getStore();
328  }
329  return 0;
330 }

◆ hadPrivateData()

bool SG::IAuxElement::hadPrivateData ( ) const
protectedinherited

True if this element had private data before it was added to its current container.

◆ hasBeamSpotWeight()

bool xAOD::EventInfo_v1::hasBeamSpotWeight ( ) const

Check if weight for beam spot size reweighting exists.

Definition at line 966 of file EventInfo_v1.cxx.

966  {
967  return accBeamSpotWeight.isAvailable( *this );
968  }

◆ hasNonConstStore()

bool SG::AuxElement::hasNonConstStore ( ) const
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.

412 {
413  if (havePrivateData())
414  return m_container->hasNonConstStore();
415  return false;
416 }

◆ hasStore()

bool SG::AuxElement::hasStore ( ) const
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.

399 {
400  if (havePrivateData())
401  return m_container->hasStore();
402  return false;
403 }

◆ havePrivateData()

bool SG::IAuxElement::havePrivateData ( ) const
protectedinherited

True if this element currently has private data.

◆ index() [1/2]

size_t SG::IAuxElement::index ( ) const
inherited

Return the index of this element within its container.

◆ index() [2/2]

size_t SG::IAuxElement::index
inherited

Return the index of this element within its container.

Inherited from IAuxElement.

◆ isAvailable()

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailable ( const std::string &  name,
const std::string &  clsname = "" 
) const
inherited

Check if an aux variable is available for reading.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ isAvailableWritable()

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailableWritable ( const std::string &  name,
const std::string &  clsname = "" 
)
inherited

Check if an aux variable is available for writing.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ isAvailableWritableAsDecoration()

template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailableWritableAsDecoration ( const std::string &  name,
const std::string &  clsname = "" 
) const
inherited

Check if an aux variable is available for writing as a decoration.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ isEventFlagBitSet()

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.

704  {
705 
706  // A little sanity check:
707  if( bit >= EF_ERROR_SHIFT ) {
708  throw std::runtime_error( "EventInfo_v1::isEventFlagBitSet: Asked for "
709  "non-existent bit" );
710  }
711 
712  // Get the value of the flags:
713  uint32_t value = ( *eventFlagsConstAccessorsV1( subDet ) )( *this );
714 
715  // Dig out the bit we are asking for:
716  return ( ( value >> bit ) & 0x1 );
717  }

◆ level1TriggerType()

uint16_t xAOD::EventInfo_v1::level1TriggerType ( ) const

The Level-1 trigger type.

◆ lumiBlock()

uint32_t xAOD::EventInfo_v1::lumiBlock ( ) const

The current event's luminosity block number.

◆ makePrivateStore() [1/3]

void SG::AuxElement::makePrivateStore ( )
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.

193 {
194  if (m_container) {
195  throw SG::ExcBadPrivateStore ("store already exists");
196  }
197 
201 }

◆ makePrivateStore() [2/3]

template<class U1 >
void SG::AuxElement::makePrivateStore ( const U1 &  other,
bool  warnUnlocked = false 
)
inherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf 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.

◆ makePrivateStore() [3/3]

template<class U1 >
void SG::AuxElement::makePrivateStore ( const U1 *  other,
bool  warnUnlocked = false 
)
inherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf 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.

◆ makePrivateStore1() [1/2]

void SG::AuxElement::makePrivateStore1 ( const AuxElement other,
bool  warnUnlocked 
)
privateinherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf 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.

567 {
569  if (other)
570  this->copyAux (*other, warnUnlocked);
571 }

◆ makePrivateStore1() [2/2]

void SG::AuxElement::makePrivateStore1 ( const void *  other,
bool  warnUnlocked 
)
privateinherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf 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.

◆ makeSubEvents()

std::vector< EventInfo_v1::SubEvent > xAOD::EventInfo_v1::makeSubEvents ( ) const
private

Definition at line 523 of file EventInfo_v1.cxx.

524  {
525  std::vector< SubEvent > subEvents;
526 
527  // Check if any of the information is available:
528  if( ( ! timeAcc.isAvailable( *this ) ) &&
529  ( ! indexAcc.isAvailable( *this ) ) &&
530  ( ! linkAcc.isAvailable( *this ) ) &&
531  ( ! typeAcc.isAvailable( *this ) ) )
532  {
533  // If not, return right away:
534  return subEvents;
535  }
536  // A little sanity check:
537  size_t size = 0;
538  if( timeAcc.isAvailable( *this ) ) {
539  size = timeAcc( *this ).size();
540  } else if( indexAcc.isAvailable( *this ) ) {
541  size = indexAcc( *this ).size();
542  } else if( linkAcc.isAvailable( *this ) ) {
543  size = linkAcc( *this ).size();
544  } else if( typeAcc.isAvailable( *this ) ) {
545  size = typeAcc( *this ).size();
546  } else {
547  std::cerr << "xAOD::EventInfo_v1 ERROR Logic error in subEvents()"
548  << std::endl;
549  return subEvents;
550  }
551  if( ( timeAcc.isAvailable( *this ) &&
552  ( size != timeAcc( *this ).size() ) ) ||
553  ( indexAcc.isAvailable( *this ) &&
554  ( size != indexAcc( *this ).size() ) ) ||
555  ( linkAcc.isAvailable( *this ) &&
556  ( size != linkAcc( *this ).size() ) ) ||
557  ( typeAcc.isAvailable( *this ) &&
558  ( size != typeAcc( *this ).size() ) ) ) {
559  std::cerr << "xAOD::EventInfo_v1 ERROR Data corruption found in "
560  << "the sub-event information" << std::endl;
561  std::cerr << "subEventTime = "
562  << ( timeAcc.isAvailable( *this ) ? timeAcc( *this ) :
563  std::vector< int16_t >() ) << std::endl;
564  std::cerr << "subEventIndex = "
565  << ( indexAcc.isAvailable( *this ) ? indexAcc( *this ) :
566  std::vector< uint16_t >() ) << std::endl;
567  std::cerr << "subEventLink = "
568  << ( linkAcc.isAvailable( *this ) ? linkAcc( *this ) :
570  << std::endl;
571  std::cerr << "subEventType = "
572  << ( typeAcc.isAvailable( *this ) ? typeAcc( *this ) :
573  std::vector< uint16_t >() ) << std::endl;
574  return subEvents;
575  }
576  // Fill up the cache:
577  for( size_t i = 0; i < size; ++i ) {
578  const int16_t time =
579  timeAcc.isAvailable( *this ) ? timeAcc( *this )[ i ] : 0;
580  const uint16_t index =
581  indexAcc.isAvailable( *this ) ? indexAcc( *this )[ i ] : 0;
583  linkAcc.isAvailable( *this ) ? linkAcc( *this )[ i ] :
585  const PileUpType type =
586  ( typeAcc.isAvailable( *this ) ?
587  static_cast< PileUpType >( typeAcc( *this )[ i ] ) :
588  Unknown );
589  subEvents.emplace_back( time, index, type, link );
590  }
591 
592  return subEvents;
593  }

◆ mcChannelNumber()

uint32_t xAOD::EventInfo_v1::mcChannelNumber ( ) const

The MC generator's channel number.

◆ mcEventNumber()

uint64_t xAOD::EventInfo_v1::mcEventNumber ( ) const

The MC generator's event number.

◆ mcEventWeight()

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.

203  {
204 
205  // Throw an exception when asked for an impossible index:
206  return mcEventWeights().at( i );
207  }

◆ mcEventWeights()

const std::vector< float >& xAOD::EventInfo_v1::mcEventWeights ( ) const

The weights of all the MC events used in the simulation.

◆ noPrivateData()

bool SG::IAuxElement::noPrivateData ( ) const
protectedinherited

True if this element has no private data.

◆ operator=()

EventInfo_v1 & xAOD::EventInfo_v1::operator= ( const EventInfo_v1 rhs)

Assignment operator.

Definition at line 96 of file EventInfo_v1.cxx.

96  {
97 
98  if (&rhs != this) {
99  // Clear out the caches:
100  m_streamTags.store (std::vector< StreamTag >());
101  m_streamTags.reset();
102  m_subEvents.store (std::vector< SubEvent >());
103  m_subEvents.reset();
104 
105  // Copy the event store pointer:
106  m_evtStore = rhs.m_evtStore;
107 
108  // Copy the auxiliary variables:
110  }
111 
112  // Return this object:
113  return *this;
114  }

◆ PileUpInt2Type()

EventInfo_v1::PileUpType xAOD::EventInfo_v1::PileUpInt2Type ( unsigned short  typ)
static

Convert int to PileUpType enum value.

Definition at line 672 of file EventInfo_v1.cxx.

673  {
674  static const PileUpType typEnum[PileUp_NTYPES+1] = {
675  Unknown /*99*/, Signal /*0*/, MinimumBias /*1*/, Cavern /*2*/, HaloGas /*3*/, ZeroBias /*4*/
676  };
677  int t = (typ==99)? 0: (int)typ+1;
678  assert( t <= PileUp_NTYPES );
679  return typEnum[t];
680  }

◆ pileUpMixtureID()

setPileUpMixtureIDHighBits EventInfo_v1::PileUpMixtureID xAOD::EventInfo_v1::pileUpMixtureID ( ) const

Unique pile-up mixture identifier.

Definition at line 421 of file EventInfo_v1.cxx.

421  {
422 
423  PileUpMixtureID id{};
424 
425  // We need to check if the values are actually stored
426  if ( xAODEventInfoPrivate::accLow.isAvailable( *this )
427  && xAODEventInfoPrivate::accHigh.isAvailable( *this ) ) {
428  id.lowBits = pileUpMixtureIDLowBits();
429  id.highBits = pileUpMixtureIDHighBits();
430  }
431 
432  return id;
433 
434  }

◆ pileUpMixtureIDHighBits()

uint64_t xAOD::EventInfo_v1::pileUpMixtureIDHighBits ( ) const

Unique pile-up mixture identifier high bits.

◆ pileUpMixtureIDLowBits()

uint64_t xAOD::EventInfo_v1::pileUpMixtureIDLowBits ( ) const

Unique pile-up mixture identifier low bits.

◆ PileUpType2Name()

const std::string & xAOD::EventInfo_v1::PileUpType2Name ( PileUpType  typ)
static

Convert PileUpType enum value to string.

Definition at line 658 of file EventInfo_v1.cxx.

659  {
660  static const std::string typNam[PileUp_NTYPES+1] = {
661  "Unknown" /*99*/,
662  "Signal" /*0*/,
663  "MinimumBias" /*1*/,
664  "Cavern" /*2*/,
665  "HaloGas"/*3*/,
666  "ZeroBias"/*4*/ };
667  int t = (typ==Unknown)? 0: (int)typ+1;
668  assert( t <= PileUp_NTYPES );
669  return typNam[t];
670  }

◆ releasePrivateStore()

void SG::AuxElement::releasePrivateStore ( )
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.

211 {
212  if (hadPrivateData()) {
213  // We had a private store, but it was released because this object
214  // was added to a container. Just forget about it.
216  return;
217  }
218 
219  if (!havePrivateData() ||
220  !m_container ||
221  typeid(*m_container) != typeid(AuxElementPrivateData))
222  {
223  throw SG::ExcBadPrivateStore ("no private store exists");
224  }
225 
228  delete m_container;
229  m_container = 0;
230 }

◆ releasePrivateStoreForDtor()

void SG::AuxElement::releasePrivateStoreForDtor ( )
privateinherited

Out-of-line portion of destructor.

Delete a private store if we have one.

Definition at line 441 of file AuxElement.cxx.

442 {
443 #ifdef ATHCONTAINERS_R21_COMPAT
444  if (havePrivateData()) {
445  delete m_container;
446  }
447 #else
449 #endif
450 }

◆ resetEventFlagBit()

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.

773  {
774  // Get the accessor:
776  if( ! acc ) {
777  return false;
778  }
779 
780  // Check if the bit makes sense:
781  if( bit >= EF_ERROR_SHIFT ) {
782  return false;
783  }
784 
785  // Set the new value:
786  ( *acc )( *this ) &= ~( 1u << bit );
787 
788  // Tell the user that we were successful:
789  return true;
790  }

◆ runNumber()

uint32_t xAOD::EventInfo_v1::runNumber ( ) const

The current event's run number.

◆ setActualInteractionsPerCrossing()

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.

391  {
392 
393  accActualInteractionsPerCrossing( *this ) = value;
394  return;
395  }

◆ setAverageInteractionsPerCrossing()

void xAOD::EventInfo_v1::setAverageInteractionsPerCrossing ( float  value)

Set average interactions per crossing for all BCIDs.

Definition at line 408 of file EventInfo_v1.cxx.

408  {
409 
410  accAverageInteractionsPerCrossing( *this ) = value;
411  return;
412  }

◆ setBCID()

void xAOD::EventInfo_v1::setBCID ( uint32_t  value)

Set the bunch crossing ID of the event.

◆ setBeamPos()

void xAOD::EventInfo_v1::setBeamPos ( float  x,
float  y,
float  z 
)

Set the beam spot position.

Definition at line 916 of file EventInfo_v1.cxx.

916  {
917 
918  // The accessor objects:
919  static const Accessor< float > accX( "beamPosX" );
920  static const Accessor< float > accY( "beamPosY" );
921  static const Accessor< float > accZ( "beamPosZ" );
922 
923  // Set the variables:
924  accX( *this ) = x;
925  accY( *this ) = y;
926  accZ( *this ) = z;
927 
928  return;
929  }

◆ setBeamPosSigma()

void xAOD::EventInfo_v1::setBeamPosSigma ( float  x,
float  y,
float  z 
)

Set the size of the beam spot.

Definition at line 935 of file EventInfo_v1.cxx.

935  {
936 
937  // The accessor objects:
938  static const Accessor< float > accX( "beamPosSigmaX" );
939  static const Accessor< float > accY( "beamPosSigmaY" );
940  static const Accessor< float > accZ( "beamPosSigmaZ" );
941 
942  // Set the variables:
943  accX( *this ) = x;
944  accY( *this ) = y;
945  accZ( *this ) = z;
946 
947  return;
948  }

◆ setBeamPosSigmaXY()

void xAOD::EventInfo_v1::setBeamPosSigmaXY ( float  value)

Set the beam spot shape's X-Y correlation.

◆ setBeamSpotWeight()

void xAOD::EventInfo_v1::setBeamSpotWeight ( float  value)

Set weight for beam spot size reweighting.

Definition at line 976 of file EventInfo_v1.cxx.

976  {
977  accBeamSpotWeight( *this ) = value;
978  return;
979  }

◆ setBeamStatus()

void xAOD::EventInfo_v1::setBeamStatus ( uint32_t  value)

Set the beam spot's status word.

◆ setBeamTiltXZ()

void xAOD::EventInfo_v1::setBeamTiltXZ ( float  value)

Set the beam's tilt in radians in XZ.

◆ setBeamTiltYZ()

void xAOD::EventInfo_v1::setBeamTiltYZ ( float  value)

Set the beam's tilt in radians in YZ.

◆ setConstStore()

void SG::AuxElement::setConstStore ( const SG::IConstAuxStore store)
inherited

Synonym for setStore with IConstAuxStore.

Parameters
storeThe new store.

◆ setDetDescrTags()

void xAOD::EventInfo_v1::setDetDescrTags ( const DetDescrTags_t value)

Set the detector description tags.

◆ setDetectorMask() [1/2]

void xAOD::EventInfo_v1::setDetectorMask ( uint32_t  mask0,
uint32_t  mask1 
)

Set the bit fields indicating with TTC timezones were present.

Definition at line 149 of file EventInfo_v1.cxx.

149  {
150 
151  setDetectorMask0( mask0 );
152  setDetectorMask1( mask1 );
153  return;
154  }

◆ setDetectorMask() [2/2]

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.

156  {
157 
158  setDetectorMask0( static_cast< uint32_t >( mask & 0xffffffff ) );
159  setDetectorMask1( static_cast< uint32_t >( ( mask >> 32 ) &
160  0xffffffff ) );
161  return;
162  }

◆ setDetectorMask0()

void xAOD::EventInfo_v1::setDetectorMask0 ( uint32_t  value)

Set the bit field indicating with TTC timezones were present.

◆ setDetectorMask1()

void xAOD::EventInfo_v1::setDetectorMask1 ( uint32_t  value)

Set the bit field indicating with TTC timezones were present.

◆ setDetectorMask2()

void xAOD::EventInfo_v1::setDetectorMask2 ( uint32_t  value)

Set the bit field indicating with TTC timezones were present.

◆ setDetectorMask3()

void xAOD::EventInfo_v1::setDetectorMask3 ( uint32_t  value)

Set the bit field indicating with TTC timezones were present.

◆ setDetectorMaskExt() [1/2]

void xAOD::EventInfo_v1::setDetectorMaskExt ( uint32_t  mask2,
uint32_t  mask3 
)

Set the bit fields indicating with TTC timezones were present.

Definition at line 170 of file EventInfo_v1.cxx.

170  {
171 
172  setDetectorMask2( mask2 );
173  setDetectorMask3( mask3 );
174  return;
175  }

◆ setDetectorMaskExt() [2/2]

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.

177  {
178 
179  setDetectorMask2( static_cast< uint32_t >( mask & 0xffffffff ) );
180  setDetectorMask3( static_cast< uint32_t >( ( mask >> 32 ) &
181  0xffffffff ) );
182  return;
183  }

◆ setErrorState()

bool xAOD::EventInfo_v1::setErrorState ( EventFlagSubDet  subDet,
EventFlagErrorState  state 
)

Set the error state for a particular sub-detector.

Definition at line 825 of file EventInfo_v1.cxx.

826  {
827 
828  // Get the accessor:
830  if( ! acc ) {
831  return false;
832  }
833 
834  // Check its value:
835  if( ( state != NotSet ) && ( state != Warning ) && ( state != Error ) ) {
836  return false;
837  }
838 
839  // Construct the new value:
840  std::atomic<uint32_t>& a = (*acc)(*this);
841  uint32_t orig = a;
842  uint32_t value = ( ( orig & EF_BITS ) |
843  ( static_cast< uint32_t >( state ) <<
844  EF_ERROR_SHIFT ) );
845  while (!a.compare_exchange_strong (orig, value)) {
846  CxxUtils::stall();
847  value = ( ( orig & EF_BITS ) |
848  ( static_cast< uint32_t >( state ) <<
849  EF_ERROR_SHIFT ) );
850  }
851 
852  // Tell the user that we were successful:
853  return true;
854  }

◆ setEventFlagBit()

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.

742  {
743  return updateEventFlagBit (subDet, bit);
744  }

◆ setEventFlags()

bool xAOD::EventInfo_v1::setEventFlags ( EventFlagSubDet  subDet,
uint32_t  flags 
)

Set the event flags for a particular sub-detector.

Definition at line 719 of file EventInfo_v1.cxx.

719  {
720 
721  // Get the accessor:
723  if( ! acc ) {
724  return false;
725  }
726 
727  // Construct the value that we want to store, taking the current error
728  // flags into account:
729  std::atomic<uint32_t>& a = (*acc)(*this);
730  uint32_t orig = a;
731  uint32_t value = ( ( orig & EF_ERROR_BITS ) | ( flags & EF_BITS ) );
732  while (!a.compare_exchange_strong (orig, value)) {
733  CxxUtils::stall();
734  value = ( ( orig & EF_ERROR_BITS ) | ( flags & EF_BITS ) );
735  }
736 
737  // Tell the user that we were successful:
738  return true;
739  }

◆ setEventNumber()

void xAOD::EventInfo_v1::setEventNumber ( uint64_t  value)

Set the current event's event number.

◆ setEventTypeBitmask()

void xAOD::EventInfo_v1::setEventTypeBitmask ( uint32_t  value)

Set the event type bitmask.

◆ setExtendedLevel1ID()

void xAOD::EventInfo_v1::setExtendedLevel1ID ( uint32_t  value)

Set the extended Level-1 identifier.

◆ setHadPrivateData()

void SG::IAuxElement::setHadPrivateData ( )
privateinherited

Record that this element used to have private data.

◆ setHavePrivateData()

void SG::IAuxElement::setHavePrivateData ( )
privateinherited

Record that this element currently has private data.

◆ setIndex()

void SG::AuxElement::setIndex ( size_t  index,
SG::AuxVectorData container 
)
privateinherited

Set the index/container for this element.

Parameters
indexThe index of this object within the container.
containerThe 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.

◆ setIndexPrivate()

bool SG::AuxElement::setIndexPrivate ( size_t  index,
SG::AuxVectorData container 
)
privateinherited

Set the index/container for this element.

Parameters
indexThe index of this object within the container.
containerThe 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.

506 {
507 #ifdef ATHCONTAINERS_R21_COMPAT
508  if (hadPrivateData()) {
509  // We had a private store, but it was released because we were added
510  // to a container.
511 
512  if (container == 0) {
513  // We're being moved out of the container. Make a new private
514  // store, copy the data, and switch to it.
515  auto privateData = new SG::AuxElementPrivateData;
516  AuxElement to (privateData, 0);
517  to.copyAux (*this);
520  m_container = privateData;
521  return true;
522  }
523  }
524  else if (havePrivateData() &&
525  typeid(*m_container) == typeid(AuxElementPrivateData))
526  {
527  // We currently have a private store.
528 
529  if (container != 0 && container != m_container) {
530  // We're being added to a container.
531  // Aux data has already been copied.
532  // Release private store.
535  delete m_container;
537  return false;
538  }
539  }
540  else {
541  // We have a standalone store.
542  throw SG::ExcBadPrivateStore ("Attempt to add/remove a standalone object "
543  "from a container.");
544  }
545 
548  return false;
549 #else
551 #endif
552 }

◆ setLevel1TriggerType()

void xAOD::EventInfo_v1::setLevel1TriggerType ( uint16_t  value)

Set the Level-1 trigger type.

◆ setLumiBlock()

void xAOD::EventInfo_v1::setLumiBlock ( uint32_t  value)

Set the current event's luminosity block number.

◆ setMCChannelNumber()

void xAOD::EventInfo_v1::setMCChannelNumber ( uint32_t  value)

Set the MC generator's channel number.

◆ setMCEventNumber()

void xAOD::EventInfo_v1::setMCEventNumber ( uint64_t  value)

Set the MC generator's event number.

◆ setMCEventWeights()

void xAOD::EventInfo_v1::setMCEventWeights ( const std::vector< float > &  value)

Set the weights of all the MC events used in the simulation.

◆ setNonConstStore()

void SG::AuxElement::setNonConstStore ( SG::IAuxStore store)
inherited

Synonym for setStore with IAuxStore.

Parameters
storeThe new store.

◆ setNoPrivateData()

void SG::IAuxElement::setNoPrivateData ( )
privateinherited

Record that this element does not have private data.

◆ setPileUpMixtureID()

void xAOD::EventInfo_v1::setPileUpMixtureID ( const PileUpMixtureID value)

Set unique pile-up mixture identifier.

Definition at line 436 of file EventInfo_v1.cxx.

436  {
437 
438  setPileUpMixtureIDLowBits( value.lowBits );
439  setPileUpMixtureIDHighBits( value.highBits );
440 
441  }

◆ setPileUpMixtureIDHighBits()

void xAOD::EventInfo_v1::setPileUpMixtureIDHighBits ( uint64_t  value)

Set unique pile-up mixture identifier high bits.

◆ setPileUpMixtureIDLowBits()

void xAOD::EventInfo_v1::setPileUpMixtureIDLowBits ( uint64_t  value)

Set unique pile-up mixture identifier low bits.

◆ setRunNumber()

void xAOD::EventInfo_v1::setRunNumber ( uint32_t  value)

Set the current event's run number.

◆ setStatusElement()

void xAOD::EventInfo_v1::setStatusElement ( uint32_t  value)

Set the trigger status element.

◆ setStore() [1/3]

void SG::AuxElement::setStore ( const DataLink< SG::IConstAuxStore > &  store)
inherited

Set the store associated with this object.

Parameters
storeThe 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.

Parameters
storeLink to the new store.

Definition at line 269 of file AuxElement.cxx.

270 {
271  AuxElementStandaloneData* data = setStore1 (store);
272  if (store)
273  data->setStore (store);
274 }

◆ setStore() [2/3]

void SG::AuxElement::setStore ( const SG::IConstAuxStore store)
inherited

Set the store associated with this object.

Parameters
storeThe 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.

242 {
243  AuxElementStandaloneData* data = setStore1 (store);
244  if (store)
245  data->setStore (store);
246 }

◆ setStore() [3/3]

void SG::AuxElement::setStore ( SG::IAuxStore store)
inherited

Set the store associated with this object.

Parameters
storeThe 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.

258 {
259  AuxElementStandaloneData* data = setStore1 (store);
260  if (store)
261  data->setStore (store);
262 }

◆ setStore1()

AuxElementStandaloneData * SG::AuxElement::setStore1 ( const SG::IConstAuxStore store)
privateinherited

Set the store associated with this object.

Parameters
storeThe new store.

Helper for setStore. Creates the AuxElementStandaloneData object if needed and returns it.

Parameters
storeThe new store.

Helper for setStore. Creates the @x AuxElementStandaloneData object if needed and returns it.

Definition at line 461 of file AuxElement.cxx.

462 {
463  if (store) {
464  // Want this object be standalone.
465  if (!m_container) {
466  // Not in a container (and no private store). Make a new object.
467  AuxElementStandaloneData* data = new AuxElementStandaloneData;
469  m_container = data;
470  return data;
471  }
472  if (usingStandaloneStore()) {
473  // Standalone --- return existing object.
474  return static_cast<AuxElementStandaloneData*> (container());
475  }
476  // Otherwise, it's an error.
477  throw ExcBadPrivateStore ("Attempt to attach a standalone store to an "
478  "object in a container or with a private store.");
479  }
480 
481  else {
482  // Getting rid of a standalone store.
483  if (usingStandaloneStore()) {
485  delete m_container;
486  m_container = 0;
487  }
488  else if (m_container != 0)
489  throw ExcBadPrivateStore ("Attempt to remove a standalone store from an "
490  "object in a container or with a private store.");
491  return 0;
492  }
493 }

◆ setStreamTags()

void xAOD::EventInfo_v1::setStreamTags ( const std::vector< StreamTag > &  value)

Set the streams that the event was put in.

Definition at line 342 of file EventInfo_v1.cxx.

342  {
343 
344  // Update the cached information:
345  m_streamTags.store (value);
346 
347  // Clear the persistent information:
348  names( *this ).clear(); types( *this ).clear(); olb( *this ).clear();
349  robsets( *this ).clear(); detsets( *this ).clear();
350 
351  // Fill the persistent information:
352  std::vector< StreamTag >::const_iterator itr = value.begin();
353  std::vector< StreamTag >::const_iterator end = value.end();
354  for( ; itr != end; ++itr ) {
355  names( *this ).push_back( itr->name() );
356  types( *this ).push_back( itr->type() );
357  olb( *this ).push_back( itr->obeysLumiblock() );
358  robsets( *this ).push_back( itr->robs() );
359  detsets( *this ).push_back( itr->dets() );
360  }
361 
362  return;
363  }

◆ setSubEvents()

void xAOD::EventInfo_v1::setSubEvents ( const std::vector< SubEvent > &  value)

Set the pileup events that were used in the simulation.

Definition at line 607 of file EventInfo_v1.cxx.

607  {
608 
609  // Update the cached information:
610  m_subEvents.store (value);
611 
612  // Clear the persistent information:
613  timeAcc( *this ).clear(); indexAcc( *this ).clear();
614  typeAcc( *this ).clear(); linkAcc( *this ).clear();
615 
616  // Fill the persistent information:
617  std::vector< SubEvent >::const_iterator itr = value.begin();
618  std::vector< SubEvent >::const_iterator end = value.end();
619  for( ; itr != end; ++itr ) {
620  timeAcc( *this ).push_back( itr->time() );
621  indexAcc( *this ).push_back( itr->index() );
622  typeAcc( *this ).push_back( static_cast< uint16_t >( itr->type() ) );
623  linkAcc( *this ).push_back( itr->link() );
624  }
625 
626  return;
627  }

◆ setTimeStamp()

void xAOD::EventInfo_v1::setTimeStamp ( uint32_t  value)

Set the POSIX time of the event.

◆ setTimeStampNSOffset()

void xAOD::EventInfo_v1::setTimeStampNSOffset ( uint32_t  value)

Set the nanosecond offset wrt. the time stamp.

◆ statusElement()

uint32_t xAOD::EventInfo_v1::statusElement ( ) const

Trigger status element.

◆ streamTags()

const std::vector< EventInfo_v1::StreamTag > & xAOD::EventInfo_v1::streamTags ( ) const

Get the streams that the event was put in.

Definition at line 283 of file EventInfo_v1.cxx.

283  {
284 
285  // Cache the new information if necessary:
286  if( !m_streamTags.isValid() ) {
287  std::vector< StreamTag > tags;
288 
289  // A little sanity check:
290  if( ( names( *this ).size() != types( *this ).size() ) ||
291  ( names( *this ).size() != olb( *this ).size() ) ||
292  ( robsets.isAvailable( *this ) &&
293  ( names( *this ).size() != robsets( *this ).size() ) ) ||
294  ( detsets.isAvailable( *this ) &&
295  ( names( *this ).size() != detsets( *this ).size() ) ) ) {
296  std::cerr << "<xAOD::EventInfo_v1::streamTags> ERROR "
297  << "Corrupt information found!" << std::endl;
298  std::cerr << " streamTagNames = " << names( *this )
299  << std::endl;
300  std::cerr << " streamTagTypes = " << types( *this )
301  << std::endl;
302  std::cerr << " streamTagObeysLumiblock = " << olb( *this )
303  << std::endl;
304  std::cerr << " streamTagRobs = ";
305  if( robsets.isAvailable( *this ) ) {
306  std::cerr << "N/A" << std::endl;
307  } else {
308  std::cerr << robsets( *this ) << std::endl;
309  }
310  std::cerr << " streamTagDets = ";
311  if( detsets.isAvailable( *this ) ) {
312  std::cerr << "N/A" << std::endl;
313  } else {
314  std::cerr << detsets( *this ) << std::endl;
315  }
316  }
317 
318  else {
319  // Fill the tags.
320  for( size_t i = 0; i < names( *this ).size(); ++i ) {
321  static const std::set< uint32_t > dummySet;
322  tags.emplace_back( names( *this )[ i ],
323  types( *this )[ i ],
324  olb( *this )[ i ],
325  ( robsets.isAvailable( *this ) ?
326  robsets( *this )[ i ] :
327  dummySet ),
328  ( detsets.isAvailable( *this ) ?
329  detsets( *this )[ i ] :
330  dummySet ) );
331  }
332  }
333 
334  // Set the cache.
335  m_streamTags.set (std::move (tags));
336  }
337 
338  // Return the cached object:
339  return *m_streamTags.ptr();
340  }

◆ subEvents()

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.

596  {
597 
598  // Cache the new information if necessary:
599  if( !m_subEvents.isValid() ) {
600  m_subEvents.set (makeSubEvents());
601  }
602 
603  // Return the cached vector:
604  return *m_subEvents.ptr();
605  }

◆ timeStamp()

uint32_t xAOD::EventInfo_v1::timeStamp ( ) const

POSIX time in seconds from 1970. January 1st.

◆ timeStampNSOffset()

uint32_t xAOD::EventInfo_v1::timeStampNSOffset ( ) const

Nanosecond time offset wrt. the time stamp.

◆ toPersistent()

void xAOD::EventInfo_v1::toPersistent ( )

Prepare the object for writing.

Definition at line 996 of file EventInfo_v1.cxx.

996  {
997 
998  // Check if the ElementLink variable is available, and writable:
999  if( linkAcc.isAvailableWritable( *this ) ) {
1000  // Prepare the ElementLink objects for ROOT I/O:
1001  std::vector< ElementLink< EventInfoContainer_v1 > >::iterator
1002  el_itr = linkAcc( *this ).begin();
1003  std::vector< ElementLink< EventInfoContainer_v1 > >::iterator
1004  el_end = linkAcc( *this ).end();
1005  for( ; el_itr != el_end; ++el_itr ) {
1006  el_itr->toPersistent();
1007  }
1008  }
1009 
1010  return;
1011  }

◆ toTransient()

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.

1018  {
1019 
1020  m_streamTags.reset();
1021  m_subEvents.reset();
1022 #ifdef XAOD_STANDALONE
1023  m_evtStore = nullptr;
1024 #else
1026 #endif
1027 
1028  if( usingStandaloneStore() ) {
1029  setStore( ( SG::IAuxStore* ) nullptr );
1030  }
1031 
1032  return;
1033  }

◆ trackIndices()

bool SG::AuxElement::trackIndices ( ) const
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.

◆ updateErrorState()

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.

858  {
859  // Check its value:
860  if( ( state != NotSet ) && ( state != Warning ) && ( state != Error ) ) {
861  return false;
862  }
863 
864  // Return without trying to write if the desired state is
865  // already set.
866  if (errorState (subDet) == state) {
867  return true;
868  }
869 
870  // Get the accessor:
872  if( ! acc ) {
873  return false;
874  }
875 
876  // Construct the new value:
877  std::atomic<uint32_t>& a = (*acc)(*this);
878  uint32_t orig = a;
879 
880  // Only allow increasing the error state in an update.
881  if (state < ((orig >> EF_ERROR_SHIFT) & 0xf)) {
882  return false;
883  }
884 
885  uint32_t value = ( ( orig & EF_BITS ) |
886  ( static_cast< uint32_t >( state ) <<
887  EF_ERROR_SHIFT ) );
888  while (!a.compare_exchange_strong (orig, value)) {
889  if (state < ((orig >> EF_ERROR_SHIFT) & 0xf)) {
890  return false;
891  }
892 
893  value = ( ( orig & EF_BITS ) |
894  ( static_cast< uint32_t >( state ) <<
895  EF_ERROR_SHIFT ) );
896 
897  CxxUtils::stall();
898  }
899 
900  // Tell the user that we were successful:
901  return true;
902  }

◆ updateEventFlagBit()

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.

747  {
748  // Check if the bit makes sense:
749  if( bit >= EF_ERROR_SHIFT ) {
750  return false;
751  }
752 
753  // Don't try to write if the requested flag is already set.
754  uint32_t existingFlags = (*eventFlagsConstAccessorsV1( subDet ))( *this );
755  if (existingFlags & (1u << bit)) {
756  return true;
757  }
758 
759  // Get the accessor:
761  if( ! acc ) {
762  return false;
763  }
764 
765  // Set the new value:
766  ( *acc )( *this ) |= ( 1u << bit );
767 
768  // Tell the user that we were successful:
769  return true;
770  }

◆ updateEventFlags()

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.

794  {
795  uint32_t flags = flags_in & EF_BITS;
796 
797  // Don't try to write if all requested flags are already set.
798  uint32_t existingFlags = (*eventFlagsConstAccessorsV1( subDet ))( *this );
799  if ((existingFlags | flags) == existingFlags) {
800  return true;
801  }
802 
803  // Get the accessor:
805  if( ! acc ) {
806  return false;
807  }
808 
809  // Set the new value:
810  ( *acc )( *this ) |= ( flags & EF_BITS );
811 
812  // Tell the user that we were successful:
813  return true;
814  }

◆ usingPrivateStore()

bool SG::AuxElement::usingPrivateStore ( ) const
inherited

Test to see if this object is currently using a private store.

Definition at line 280 of file AuxElement.cxx.

281 {
282  return havePrivateData() &&
283  typeid(*m_container) == typeid(AuxElementPrivateData);
284 }

◆ usingStandaloneStore()

bool SG::AuxElement::usingStandaloneStore ( ) const
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.

291 {
292  return havePrivateData() &&
293  typeid(*m_container) == typeid(AuxElementStandaloneData);
294 }

Member Data Documentation

◆ m_container

const SG::AuxVectorData* SG::ConstAuxElement::m_container
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.

◆ m_evtStore

StoreGateSvc* xAOD::EventInfo_v1::m_evtStore
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.

◆ m_index

size_t SG::IAuxElement::m_index
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.

◆ m_privateStoreState

PrivateStoreState SG::IAuxElement::m_privateStoreState
privateinherited

Definition at line 137 of file IAuxElement.h.

◆ m_streamTags

CxxUtils::CachedValue<std::vector< StreamTag > > xAOD::EventInfo_v1::m_streamTags
private

Cached stream tag objects.

Definition at line 511 of file EventInfo_v1.h.

◆ m_subEvents

CxxUtils::CachedValue<std::vector< SubEvent> > xAOD::EventInfo_v1::m_subEvents
private

Cached sub-event objects.

Definition at line 513 of file EventInfo_v1.h.

◆ supportsThinning

constexpr bool SG::AuxElement::supportsThinning = true
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.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
SG::AuxVectorData::getConstStore
const SG::IConstAuxStore * getConstStore() const
Return the current store, as a const interface.
SGTest::store
TestStore store
Definition: TestStore.cxx:23
beamspotman.r
def r
Definition: beamspotman.py:676
SG::ConstAuxElement::getAuxIDs
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
Definition: AuxElement.cxx:153
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
xAOD::EventInfo_v1::detectorMask3
uint32_t detectorMask3() const
Bit field indicating which TTC zones are present in the event.
xAOD::EventInfo_v1::BkgdResvBit4
@ BkgdResvBit4
Definition: EventInfo_v1.h:384
xAOD::EventInfo_v1::HaloMuonOneSided
@ HaloMuonOneSided
Definition: EventInfo_v1.h:373
xAOD::EventInfo_v1::BkgdResvBit1
@ BkgdResvBit1
Definition: EventInfo_v1.h:381
xAOD::EventInfo_v1::PileUp_NTYPES
@ PileUp_NTYPES
Definition: EventInfo_v1.h:272
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
xAOD::EventInfo_v1::BkgdResvBit3
@ BkgdResvBit3
Definition: EventInfo_v1.h:383
xAOD::EventInfo_v1::setDetectorMask3
void setDetectorMask3(uint32_t value)
Set the bit field indicating with TTC timezones were present.
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:639
SG::Accessor< float >
Pixel
Definition: PixelFEUtils.h:16
SG::AuxVectorData::getDecorIDs
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Definition: AuxVectorData.cxx:215
xAOD::EventInfo_v1::mcEventWeights
const std::vector< float > & mcEventWeights() const
The weights of all the MC events used in the simulation.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LAr
Definition: LArVolumeBuilder.h:36
SG::AuxVectorData::getWritableAuxIDs
const SG::auxid_set_t & getWritableAuxIDs() const
Return a set of identifiers for writable data items in this store.
Definition: AuxVectorData.cxx:231
index
Definition: index.py:1
AthenaPoolTestRead.flags
flags
Definition: AthenaPoolTestRead.py:8
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::EventInfo_v1::CosmicCombined
@ CosmicCombined
Definition: EventInfo_v1.h:379
xAOD::EventInfo_v1::HighPtMinimumBias
@ HighPtMinimumBias
High pT Minimum bias pileup event.
Definition: EventInfo_v1.h:270
xAOD::EventInfo_v1::MinimumBias
@ MinimumBias
(Low pT) Minimum bias pileup event
Definition: EventInfo_v1.h:267
SG::ConstAuxElement::m_container
const SG::AuxVectorData * m_container
The container of which this object is an element.
Definition: AuxElement.h:335
xAOD::EventInfo_v1::MBTSBeamVeto
@ MBTSBeamVeto
Definition: EventInfo_v1.h:368
xAOD::EventInfo_v1::updateEventFlagBit
bool updateEventFlagBit(const EventFlagSubDet subDet, const size_t bit) const
Change detector flags with update semantics.
Definition: EventInfo_v1.cxx:746
xAOD::EventInfo_v1::IS_CALIBRATION
@ IS_CALIBRATION
true: calibration, false: physics
Definition: EventInfo_v1.h:155
SG::AuxVectorData::hasNonConstStore
bool hasNonConstStore() const
Return true if this object has an associated non-const store.
xAOD::eventFlagsAccessorsV1
const SG::AtomicDecorator< uint32_t > * eventFlagsAccessorsV1(EventInfo_v1::EventFlagSubDet subDet)
Helper function for accessing event flag variables.
Definition: EventInfoAccessors_v1.cxx:34
xAOD::EventInfo_v1::SubEvent::link
const ElementLink< EventInfoContainer_v1 > & link() const
Get a link to the EventInfo object describing the pileup event.
Definition: EventInfo_v1.cxx:496
athena.value
value
Definition: athena.py:124
SG::AuxElement::usingStandaloneStore
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.
Definition: AuxElement.cxx:290
SG::CurrentEventStore::store
static IProxyDict * store()
Fetch the current store.
xAOD::EventInfo_v1::NotSet
@ NotSet
The flag was not set to anything.
Definition: EventInfo_v1.h:347
SG::ConstAuxElement::setIndexPrivate
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
Definition: AuxElement.cxx:97
xAOD::EventInfo_v1::BkgdResvBit2
@ BkgdResvBit2
Definition: EventInfo_v1.h:382
xAOD::EventInfo_v1::ZeroBias
@ ZeroBias
Zero bias pileup event.
Definition: EventInfo_v1.h:271
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
xAOD::EventInfo_v1::setPileUpMixtureIDLowBits
void setPileUpMixtureIDLowBits(uint64_t value)
Set unique pile-up mixture identifier low bits.
xAOD::EventInfo_v1::pileUpMixtureIDHighBits
uint64_t pileUpMixtureIDHighBits() const
Unique pile-up mixture identifier high bits.
SG::ExcConstAuxData
Exception — Non-const operation performed on const aux data.
Definition: Control/AthContainers/AthContainers/exceptions.h:77
SG::IAuxElement::setNoPrivateData
void setNoPrivateData()
Record that this element does not have private data.
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
xAOD::EventInfo_v1::makeSubEvents
std::vector< EventInfo_v1::SubEvent > makeSubEvents() const
Definition: EventInfo_v1.cxx:523
xAOD::EventInfo_v1::Background
@ Background
The beam background detectors.
Definition: EventInfo_v1.h:340
xAOD::EventInfo_v1::IS_SIMULATION
@ IS_SIMULATION
true: simulation, false: data
Definition: EventInfo_v1.h:151
xAOD::EventInfo_v1::CosmicStandAlone
@ CosmicStandAlone
Definition: EventInfo_v1.h:377
x
#define x
xAOD::eventFlagsConstAccessorsV1
const SG::AtomicConstAccessor< uint32_t > * eventFlagsConstAccessorsV1(EventInfo_v1::EventFlagSubDet subDet)
Helper function for accessing event flag variables, for const access.
Definition: EventInfoAccessors_v1.cxx:58
SG::AuxElement::isAvailable
XAOD_AUXDATA_DEPRECATED bool isAvailable(const std::string &name, const std::string &clsname="") const
Check if an aux variable is available for reading.
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
xAOD::EventInfo_v1::CSCTimeDiffCol
@ CSCTimeDiffCol
Definition: EventInfo_v1.h:363
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
SG::AuxVectorData::getAuxIDs
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
Definition: AuxVectorData.cxx:203
xAOD::EventInfo_v1::Error
@ Error
The sub-detector issued an error.
Definition: EventInfo_v1.h:349
xAOD::EventInfo_v1::NBackgroundWords
@ NBackgroundWords
Definition: EventInfo_v1.h:386
xAOD::EventInfo_v1::setPileUpMixtureIDHighBits
void setPileUpMixtureIDHighBits(uint64_t value)
Set unique pile-up mixture identifier high bits.
SG::AuxTypeRegistry
Handle mappings between names and auxid_t.
Definition: AuxTypeRegistry.h:61
xAOD::EventInfo_v1::SubEvent::time
int16_t time() const
Get the time wrt. the signal event (which has time() == 0)
Definition: EventInfo_v1.cxx:450
SG::IAuxElement::index
size_t index() const
Return the index of this element within its container.
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
SG::IAuxElement::setHadPrivateData
void setHadPrivateData()
Record that this element used to have private data.
xAOD::EventInfo_v1::LArECTimeDiffHalo
@ LArECTimeDiffHalo
Definition: EventInfo_v1.h:356
xAOD::EventInfo_v1::hasBeamSpotWeight
bool hasBeamSpotWeight() const
Check if weight for beam spot size reweighting exists.
Definition: EventInfo_v1.cxx:966
xAOD::EventInfo_v1::MBTSTimeDiffCol
@ MBTSTimeDiffCol
Definition: EventInfo_v1.h:355
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
Tile
Definition: TileVolumeBuilder.h:43
tags
std::vector< std::string > tags
Definition: hcg.cxx:102
xAOD::EventInfo_v1::detectorMask2
uint32_t detectorMask2() const
Bit field indicating which TTC zones are present in the event.
CxxUtils::stall
void stall()
Emit stall instruction for use in a spin loop.
Definition: stall.h:37
TRT
Definition: HitInfo.h:33
xAOD::EventInfo_v1::detectorMask0
uint32_t detectorMask0() const
Bit field indicating which TTC zones are present in the event.
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::EventInfo_v1::SCTSPNonEmpty
@ SCTSPNonEmpty
Definition: EventInfo_v1.h:361
lumiFormat.i
int i
Definition: lumiFormat.py:85
SG::AuxElement::setStore
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
Definition: AuxElement.cxx:241
z
#define z
xAOD::EventInfo_v1::BkgdResvBit5
@ BkgdResvBit5
Definition: EventInfo_v1.h:385
xAOD::EventInfo_v1::Unknown
@ Unknown
Type not known/specified.
Definition: EventInfo_v1.h:265
SG::AuxElement::copyAux
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.
Definition: AuxElement.cxx:607
SG::AuxElement::clearAux
void clearAux()
Clear all aux data associated with this element.
Definition: AuxElement.cxx:580
SG::AuxElement::AuxElement
AuxElement()
Default constructor.
vector
Definition: MultiHisto.h:13
python.subdetectors.mmg.names
names
Definition: mmg.py:8
SG::IAuxElement::havePrivateData
bool havePrivateData() const
True if this element currently has private data.
xAOD::EventInfo_v1::CSCTimeDiffHalo
@ CSCTimeDiffHalo
Definition: EventInfo_v1.h:362
ATHCONTAINERS_WARNING
#define ATHCONTAINERS_WARNING(ctx, msg)
Definition: error.h:57
xAOD::EventInfo_v1::setDetectorMask0
void setDetectorMask0(uint32_t value)
Set the bit field indicating with TTC timezones were present.
xAOD::EventInfo_v1::HaloGas
@ HaloGas
Halo-gas non-collision background.
Definition: EventInfo_v1.h:269
xAOD::EventInfo_v1::SCTMultiplicityHuge
@ SCTMultiplicityHuge
Definition: EventInfo_v1.h:360
xAOD::EventInfo_v1::CosmicStandAloneTight
@ CosmicStandAloneTight
Definition: EventInfo_v1.h:378
xAOD::EventInfo_v1::MuonTimingCosmic
@ MuonTimingCosmic
Definition: EventInfo_v1.h:367
SG::AuxVectorData::getStore
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
xAOD::EventInfo_v1::HaloMuonSegment
@ HaloMuonSegment
Definition: EventInfo_v1.h:371
SG::ConstAuxElement::getDecorIDs
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Definition: AuxElement.cxx:172
test_pyathena.parent
parent
Definition: test_pyathena.py:15
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
SG::AuxElementPrivateData
Internal data container for private store.
Definition: AuxElement.cxx:46
xAOD::EventInfo_v1::MuonTimingCol
@ MuonTimingCol
Definition: EventInfo_v1.h:366
xAOD::EventInfo_v1::SubEvent::index
uint16_t index() const
Get the index of the sub-event.
Definition: EventInfo_v1.cxx:455
SG::AuxVectorData::hasStore
bool hasStore() const
Return true if this object has an associated store.
xAOD::EventInfo_v1::EventFlagErrorState
EventFlagErrorState
States that a given sub-detector could be in.
Definition: EventInfo_v1.h:346
xAOD::EventInfo_v1::ForwardDet
@ ForwardDet
The forward detectors.
Definition: EventInfo_v1.h:338
SCT
Definition: SCT_ChipUtils.h:14
xAOD::EventInfoContainer_v1
DataVector< EventInfo_v1 > EventInfoContainer_v1
Container type for event info objects.
Definition: EventInfo_v1.h:31
xAOD::EventInfo_v1::setDetectorMask2
void setDetectorMask2(uint32_t value)
Set the bit field indicating with TTC timezones were present.
xAOD::EventInfo_v1::MBTSTimeDiffHalo
@ MBTSTimeDiffHalo
Definition: EventInfo_v1.h:354
xAOD::EventInfo_v1::HaloClusterShape
@ HaloClusterShape
Definition: EventInfo_v1.h:372
xAOD::EventInfo_v1::CosmicCombinedTight
@ CosmicCombinedTight
Definition: EventInfo_v1.h:380
xAOD::EventInfo_v1::BCMTimeDiffHalo
@ BCMTimeDiffHalo
Definition: EventInfo_v1.h:364
python.root_lsr_rank.types
types
Definition: root_lsr_rank.py:35
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
xAOD::EventInfo_v1::HaloMuonTwoSided
@ HaloMuonTwoSided
Definition: EventInfo_v1.h:374
SG::IAuxElement::setHavePrivateData
void setHavePrivateData()
Record that this element currently has private data.
SG::AuxVectorData::clearCache
void clearCache()
Clear the cached aux data pointers.
xAOD::EventInfo_v1::BeamGasPixel
@ BeamGasPixel
Definition: EventInfo_v1.h:376
PileUpType
For details on how the MC particles are defined and organized see https://twiki.cern....
Definition: PileUpType.h:33
SG::AuxElement::makePrivateStore
void makePrivateStore()
Create a new (empty) private store for this object.
Definition: AuxElement.cxx:192
SG::AuxElement::operator=
AuxElement & operator=(const AuxElement &other)
Assignment.
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
SG::IAuxStore
Interface for non-const operations on an auxiliary store.
Definition: IAuxStore.h:48
xAOD::EventInfo_v1::m_evtStore
StoreGateSvc * m_evtStore
Transient pointer to the StoreGateSvc instance associated with the event (Needed for pile-up digitisa...
Definition: EventInfo_v1.h:518
xAOD::EventInfo_v1::LArECTimeDiffCol
@ LArECTimeDiffCol
Definition: EventInfo_v1.h:357
xAOD::EventInfo_v1::Signal
@ Signal
The signal event.
Definition: EventInfo_v1.h:266
SG::IAuxElement::setIndex
void setIndex(size_t index)
Set the index of this element within its container.
xAOD::EventInfo_v1::Warning
@ Warning
The sub-detector issued a warning.
Definition: EventInfo_v1.h:348
xAOD::EventInfo_v1::LUCIDBeamVeto
@ LUCIDBeamVeto
Definition: EventInfo_v1.h:370
a
TList * a
Definition: liststreamerinfos.cxx:10
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
y
#define y
SG::AuxVectorData::clearDecorations
bool clearDecorations() const
Clear all decorations.
Definition: AuxVectorData.cxx:653
xAOD::EventInfo_v1::m_streamTags
CxxUtils::CachedValue< std::vector< StreamTag > > m_streamTags
Cached stream tag objects.
Definition: EventInfo_v1.h:511
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
xAOD::EventInfo_v1::nDets
@ nDets
Number of sub-detector type in this enumeration.
Definition: EventInfo_v1.h:342
SG::ExcBadPrivateStore
Exception — Bad use of private store.
Definition: Control/AthContainers/AthContainers/exceptions.h:113
xAOD::EventInfo_v1::PixMultiplicityHuge
@ PixMultiplicityHuge
Definition: EventInfo_v1.h:358
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::EventInfo_v1::HaloTileClusterPattern
@ HaloTileClusterPattern
Definition: EventInfo_v1.h:375
xAOD::EventInfo_v1::SubEvent::type
PileUpType type() const
Get the type of the pileup event.
Definition: EventInfo_v1.cxx:460
SG::IConstAuxStore::getDecorIDs
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
xAOD::EventInfo_v1::Cavern
@ Cavern
Cavern background pileup event.
Definition: EventInfo_v1.h:268
xAOD::EventInfo_v1::BCMTimeDiffCol
@ BCMTimeDiffCol
Definition: EventInfo_v1.h:365
xAOD::EventInfo_v1::errorState
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
Definition: EventInfo_v1.cxx:817
xAOD::EventInfo_v1::PixSPNonEmpty
@ PixSPNonEmpty
Definition: EventInfo_v1.h:359
xAOD::EventInfo_v1::BCMBeamVeto
@ BCMBeamVeto
Definition: EventInfo_v1.h:369
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47
xAOD::EventInfo_v1::detectorMask1
uint32_t detectorMask1() const
Bit field indicating which TTC zones are present in the event.
xAOD::EventInfo_v1::Lumi
@ Lumi
The luminosity detectors.
Definition: EventInfo_v1.h:341
SG::AuxVectorData
Manage lookup of vectors of auxiliary data.
Definition: AuxVectorData.h:168
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
SG::ConstAuxElement::releasePrivateStoreForDtor
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.
Definition: AuxElement.cxx:80
SG::AuxElement::container
const SG::AuxVectorData * container() const
Return the container holding this element.
xAOD::EventInfo_v1::m_subEvents
CxxUtils::CachedValue< std::vector< SubEvent > > m_subEvents
Cached sub-event objects.
Definition: EventInfo_v1.h:513
xAOD::EventInfo_v1::setDetectorMask1
void setDetectorMask1(uint32_t value)
Set the bit field indicating with TTC timezones were present.
xAOD::EventInfo_v1::subEvents
const std::vector< SubEvent > & subEvents() const
Get the pileup events that were used in the simulation.
Definition: EventInfo_v1.cxx:596
SG::AtomicDecorator
Access an auxiliary variable atomically.
Definition: AtomicDecorator.h:44
xAOD::EventInfo_v1::IS_TESTBEAM
@ IS_TESTBEAM
true: testbeam, false: full detector
Definition: EventInfo_v1.h:153
SG::IAuxElement::hadPrivateData
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
xAODEventInfoPrivate::pileupUnsetHook
void pileupUnsetHook()
Function that would be possible to use to debug what client is trying to access pileup values from an...
Definition: EventInfo_v1.cxx:57
xAOD::EventInfo_v1::Core
@ Core
Core flags describing the event.
Definition: EventInfo_v1.h:339
SG::IConstAuxStore::getAuxIDs
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
xAOD::EventInfo_v1::pileUpMixtureIDLowBits
uint64_t pileUpMixtureIDLowBits() const
Unique pile-up mixture identifier low bits.
SG::AuxElement::setStore1
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.
Definition: AuxElement.cxx:461
CxxUtils::ConcurrentBitset::test
bool test(bit_t bit) const
Test to see if a bit is set.