|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef XAODEVENTINFO_VERSIONS_EVENTINFO_V1_H
8 #define XAODEVENTINFO_VERSIONS_EVENTINFO_V1_H
20 #include "AthLinks/ElementLink.h"
123 typedef std::vector< std::pair< std::string, std::string > >
196 const std::set< uint32_t >&
robs = std::set< uint32_t >(),
197 const std::set< uint32_t >&
dets = std::set< uint32_t >() );
200 const std::string&
name()
const;
202 const std::string&
type()
const;
206 const std::set< uint32_t >&
robs()
const;
208 const std::set< uint32_t >&
dets()
const;
221 const std::vector< StreamTag >&
streamTags()
const;
300 const std::string&
typeName()
const;
317 const std::vector< SubEvent >&
subEvents()
const;
426 const size_t bit )
const;
493 #if not defined(__GCCXML__) and not defined(__ROOTCLING__)
498 #endif // not genreflex or rootcint/rootcling
519 #endif // not __GCCXML__
535 #endif // XAODEVENTINFO_VERSIONS_EVENTINFO_V1_H
EventInfo_v1 & operator=(const EventInfo_v1 &rhs)
Assignment operator.
BackgroundEventFlag
Enum for bits in Background EventFlag word.
void setActualInteractionsPerCrossing(float value)
Set average interactions per crossing for the current BCID.
uint32_t detectorMask3() const
Bit field indicating which TTC zones are present in the event.
void setSubEvents(const std::vector< SubEvent > &value)
Set the pileup events that were used in the simulation.
std::vector< std::pair< std::string, std::string > > DetDescrTags_t
Type of the detector description tags.
const std::string & typeName() const
The string name of the type.
void setEventNumber(uint64_t value)
Set the current event's event number.
EventInfo_v1()
Default constructor.
Unique pile-up mixture identifier definition.
uint64_t eventNumber() const
The current event's event number.
float beamTiltXZ() const
The beam's tilt in radians in XZ.
void setDetectorMask3(uint32_t value)
Set the bit field indicating with TTC timezones were present.
void toPersistent()
Prepare the object for writing.
const std::set< uint32_t > & dets() const
Get the (optional) list of detector IDs for partial event building.
const std::vector< float > & mcEventWeights() const
The weights of all the MC events used in the simulation.
uint64_t detectorMaskExt() const
Bit field indicating which TTC zones are present in the event.
Base class for elements of a container that can have aux data.
@ HighPtMinimumBias
High pT Minimum bias pileup event.
This class represents the "type of event" where the type is given by one or more "characteristics".
std::string m_type
The type of the stream.
#define ATLAS_NOT_CONST_THREAD_SAFE
@ MinimumBias
(Low pT) Minimum bias pileup event
bool updateEventFlagBit(const EventFlagSubDet subDet, const size_t bit) const
Change detector flags with update semantics.
void clearSubEvents()
Clear all the currently held sub-events.
@ IS_CALIBRATION
true: calibration, false: physics
void setBeamPos(float x, float y, float z)
Set the beam spot position.
bool obeysLumiblock() const
Get whether the the stream obeys the luminosity block boundaires.
float beamTiltYZ() const
The beam's tilt in radians in YZ.
uint32_t eventTypeBitmask() const
The event type bitmask.
float beamPosSigmaX() const
The width of the beam spot in the X direction.
const ElementLink< EventInfoContainer_v1 > & link() const
Get a link to the EventInfo object describing the pileup event.
void setExtendedLevel1ID(uint32_t value)
Set the extended Level-1 identifier.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
@ NotSet
The flag was not set to anything.
@ ZeroBias
Zero bias pileup event.
StreamTag(const std::string &name, const std::string &type, bool obeysLumiblock, const std::set< uint32_t > &robs=std::set< uint32_t >(), const std::set< uint32_t > &dets=std::set< uint32_t >())
Constructor giving all relevant information to the object.
void setPileUpMixtureIDLowBits(uint64_t value)
Set unique pile-up mixture identifier low bits.
const EventInfo_v1 * ptr() const
Get a pointer to the EventInfo object describing the pileup event.
void setBeamPosSigma(float x, float y, float z)
Set the size of the beam spot.
void setDetDescrTags(const DetDescrTags_t &value)
Set the detector description tags.
uint64_t pileUpMixtureIDHighBits() const
Unique pile-up mixture identifier high bits.
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
This class provides conversion from CSC RDO data to CSC Digits.
std::vector< EventInfo_v1::SubEvent > makeSubEvents() const
@ Background
The beam background detectors.
@ IS_SIMULATION
true: simulation, false: data
PileUpType m_type
The type of the pileup event.
bool updateEventFlags(const EventFlagSubDet subDet, const uint32_t flags_in) const
Turn on a set of event flags for one particular sub-detector.
setScaleOne setStatusOne setSaturated int16_t
float beamPosX() const
X coordinate of the beam spot position.
uint32_t runNumber() const
The current event's run number.
PileUpMixtureID pileUpMixtureID() const
Unique pile-up mixture identifier.
SG_BASE(xAOD::EventInfo_v1, SG::AuxElement)
@ Error
The sub-detector issued an error.
void setPileUpMixtureIDHighBits(uint64_t value)
Set unique pile-up mixture identifier high bits.
const std::set< uint32_t > & robs() const
Get the (optional) list of RoB IDs for partial event building.
int16_t time() const
Get the time wrt. the signal event (which has time() == 0)
uint32_t mcChannelNumber() const
The MC generator's channel number.
void setBeamTiltYZ(float value)
Set the beam's tilt in radians in YZ.
void setPileUpMixtureID(const PileUpMixtureID &value)
Set unique pile-up mixture identifier.
void setBeamStatus(uint32_t value)
Set the beam spot's status word.
uint32_t beamStatus() const
The beam spot's status word.
bool setEventFlags(EventFlagSubDet subDet, uint32_t flags)
Set the event flags for a particular sub-detector.
bool hasBeamSpotWeight() const
Check if weight for beam spot size reweighting exists.
void setStreamTags(const std::vector< StreamTag > &value)
Set the streams that the event was put in.
bool setEventFlagBit(EventFlagSubDet subDet, size_t bit) const
Set one particular bit of one particular sub-detector.
float beamPosY() const
Y coordinate of the beam spot position.
The Athena Transient Store API.
void setLevel1TriggerType(uint16_t value)
Set the Level-1 trigger type.
uint32_t detectorMask2() const
Bit field indicating which TTC zones are present in the event.
bool setErrorState(EventFlagSubDet subDet, EventFlagErrorState state)
Set the error state for a particular sub-detector.
void setMCEventNumber(uint64_t value)
Set the MC generator's event number.
void setEventTypeBitmask(uint32_t value)
Set the event type bitmask.
uint32_t detectorMask0() const
Bit field indicating which TTC zones are present in the event.
std::set< uint32_t > m_robs
Optional list of RoB IDs for PEB.
void setDetectorMask(uint32_t mask0, uint32_t mask1)
Set the bit fields indicating with TTC timezones were present.
@ Unknown
Type not known/specified.
void setDetectorMask0(uint32_t value)
Set the bit field indicating with TTC timezones were present.
@ HaloGas
Halo-gas non-collision background.
float beamPosSigmaZ() const
The length of the beam spot in the Z direction.
Cached value with atomic update.
bool m_obeysLumiblock
Whether the stream obeys luminosity block boundaries.
uint32_t extendedLevel1ID() const
The extended Level-1 identifier.
ElementLink< EventInfoContainer_v1 > m_link
Link to the EventInfo object in question.
AthROOTErrorHandlerSvc * svc
uint16_t index() const
Get the index of the sub-event.
void setStatusElement(uint32_t value)
Set the trigger status element.
void setTimeStamp(uint32_t value)
Set the POSIX time of the event.
void setBCID(uint32_t value)
Set the bunch crossing ID of the event.
uint64_t detectorMask() const
Bit field indicating which TTC zones are present in the event.
void setBeamSpotWeight(float value)
Set weight for beam spot size reweighting.
uint32_t lumiBlock() const
The current event's luminosity block number.
EventFlagErrorState
States that a given sub-detector could be in.
const std::string & name() const
Get the name of the stream.
void setBeamPosSigmaXY(float value)
Set the beam spot shape's X-Y correlation.
@ ForwardDet
The forward detectors.
DataVector< EventInfo_v1 > EventInfoContainer_v1
Container type for event info objects.
void toTransient()
Cleanse the object after being read in.
void setDetectorMask2(uint32_t value)
Set the bit field indicating with TTC timezones were present.
float beamPosSigmaY() const
The width of the beam spot in the Y direction.
ElementLink implementation for ROOT usage.
uint16_t m_index
The index of the pileup event.
void addSubEvent(const SubEvent &subEvent)
Add one sub-event to the existing list.
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
float beamPosZ() const
Z coordinate of the beam spot position.
Cached value with atomic update.
void setDetectorMaskExt(uint32_t mask2, uint32_t mask3)
Set the bit fields indicating with TTC timezones were present.
EventFlagSubDet
Sub-detector types for which we store event-level flags.
void setAverageInteractionsPerCrossing(float value)
Set average interactions per crossing for all BCIDs.
For details on how the MC particles are defined and organized see https://twiki.cern....
uint32_t statusElement() const
Trigger status element.
Class describing the basic event information.
const std::vector< StreamTag > & streamTags() const
Get the streams that the event was put in.
std::string m_name
The name of the stream.
void setTimeStampNSOffset(uint32_t value)
Set the nanosecond offset wrt. the time stamp.
StoreGateSvc * m_evtStore
Transient pointer to the StoreGateSvc instance associated with the event (Needed for pile-up digitisa...
static PileUpType PileUpInt2Type(unsigned short typ)
Convert int to PileUpType enum value.
void setMCChannelNumber(uint32_t value)
Set the MC generator's channel number.
@ Signal
The signal event.
uint32_t eventFlags(EventFlagSubDet subDet) const
Get the event flags for a particular sub-detector.
const DetDescrTags_t & detDescrTags() const
The detector description tags.
An STL vector of pointers that by default owns its pointed-to elements.
@ Warning
The sub-detector issued a warning.
bool resetEventFlagBit(EventFlagSubDet subDet, size_t bit)
Reset one particular bit of one particular sub-detector.
float beamPosSigmaXY() const
The beam spot shape's X-Y correlation.
SubEvent(int16_t time, uint16_t index, PileUpType type, const ElementLink< EventInfoContainer_v1 > &link)
Constructor giving all relevant information to the object.
std::set< uint32_t > m_dets
Optional list of detector IDs for PEB.
CxxUtils::CachedValue< std::vector< StreamTag > > m_streamTags
Cached stream tag objects.
@ nDets
Number of sub-detector type in this enumeration.
void setRunNumber(uint32_t value)
Set the current event's run number.
PileUpType type() const
Get the type of the pileup event.
void setBeamTiltXZ(float value)
Set the beam's tilt in radians in XZ.
@ Cavern
Cavern background pileup event.
uint16_t level1TriggerType() const
The Level-1 trigger type.
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
const std::string & type() const
Get the type of the stream.
bool updateErrorState(const EventFlagSubDet subDet, const EventFlagErrorState state) const
Update the error state for one particular sub-detector.
uint32_t detectorMask1() const
Bit field indicating which TTC zones are present in the event.
@ Lumi
The luminosity detectors.
float mcEventWeight(size_t i=0) const
The weight of one specific MC event used in the simulation.
static const std::string & PileUpType2Name(PileUpType typ)
Convert PileUpType enum value to string.
bool operator==(const xAOD::EventInfo_v1::PileUpMixtureID &a, const xAOD::EventInfo_v1::PileUpMixtureID &b)
This operator is provided to make it convenient to compare two instances of PileUpMixtureID directly.
CxxUtils::CachedValue< std::vector< SubEvent > > m_subEvents
Cached sub-event objects.
void setDetectorMask1(uint32_t value)
Set the bit field indicating with TTC timezones were present.
void setLumiBlock(uint32_t value)
Set the current event's luminosity block number.
const std::vector< SubEvent > & subEvents() const
Get the pileup events that were used in the simulation.
uint32_t bcid() const
The bunch crossing ID of the event.
Define macros for attributes used to control the static checker.
int16_t m_time
The time wrt. the signal event.
@ IS_TESTBEAM
true: testbeam, false: full detector
float beamSpotWeight() const
Weight for beam spot size reweighting.
@ Core
Core flags describing the event.
uint64_t pileUpMixtureIDLowBits() const
Unique pile-up mixture identifier low bits.
Class describing the properties of one pileup sub-event.
Class describing a stream tag on the event.
Base class for elements of a container that can have aux data.
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
uint64_t mcEventNumber() const
The MC generator's event number.
void setMCEventWeights(const std::vector< float > &value)
Set the weights of all the MC events used in the simulation.
bool eventType(EventType type) const
Check for one particular bitmask value.
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.