 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "CoralBase/AttributeListSpecification.h"
47 std::unique_ptr<AthenaAttributeList>
52 auto eventTag = std::make_unique<AthenaAttributeList> ( specRef );
59 ATH_MSG_DEBUG(
"EventInfoAttListTool - getAttributeList() return success");
77 eventTag[
"IsSimulation"] .data<
bool>() = isSimulation;
78 eventTag[
"IsCalibration"].data<
bool>() = isCalibration;
79 eventTag[
"IsTestBeam"] .data<
bool>() = isTestBeam;
86 unsigned int mcChannel = 0;
88 eventTag[
"McChannel"] .data<
unsigned int>() = mcChannel;
92 eventTag[
"ConditionsRun"].data<
unsigned int>() = condRunNumber;
96 unsigned long bunchId = eventInfo.
bcid();
98 eventTag[
"EventTimeNanoSec"].data<
unsigned int>() = timeStampNS;
99 eventTag[
"BunchId"] .data<
unsigned int>() = bunchId;
105 eventTag[
"EventWeight"].data<
float>() = evweight;
107 return StatusCode::SUCCESS;
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
uint64_t eventNumber() const
The current event's event number.
@ IS_CALIBRATION
true: calibration, false: physics
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
@ IS_SIMULATION
true: simulation, false: data
uint32_t runNumber() const
The current event's run number.
uint32_t mcChannelNumber() const
The MC generator's channel number.
::StatusCode StatusCode
StatusCode definition for legacy code.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
uint32_t lumiBlock() const
The current event's luminosity block number.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Class describing the basic event information.
#define ATH_MSG_WARNING(x)
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
float mcEventWeight(size_t i=0) const
The weight of one specific MC event used in the simulation.
uint32_t bcid() const
The bunch crossing ID of the event.
@ IS_TESTBEAM
true: testbeam, false: full detector
bool eventType(EventType type) const
Check for one particular bitmask value.