15 template<
class T1,
class T2 >
17 const std::pair< T1, T2 >& p ) {
19 out <<
"{" <<
p.first <<
", " <<
p.second <<
"}";
26 const std::vector< T >&
vec ) {
29 for(
size_t i = 0;
i <
vec.size(); ++
i ) {
31 if( i < (
vec.size() - 1 ) ) {
57 return StatusCode::SUCCESS;
79 " IS_SIMULATION" :
"" )
83 " IS_CALIBRATION" :
"" ) );
105 }
catch(
const std::exception& ) {
110 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< size_t > vec
std::ostream & operator<<(std::ostream &lhs, const TestGaudiProperty &rhs)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
virtual StatusCode initialize()
Function initialising the algorithm.
EventInfoReaderAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
std::string m_key
StoreGate key of the object to be tested.
virtual StatusCode execute()
Function executing the algorithm.
Class describing the properties of one pileup sub-event.
uint64_t mcEventNumber() const
The MC generator's event number.
const std::vector< float > & mcEventWeights() const
The weights of all the MC events used in the simulation.
uint32_t lumiBlock() const
The current event's luminosity block number.
bool eventType(EventType type) const
Check for one particular bitmask value.
uint32_t bcid() const
The bunch crossing ID of the event.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
const std::vector< SubEvent > & subEvents() const
Get the pileup events that were used in the simulation.
@ IS_CALIBRATION
true: calibration, false: physics
@ IS_SIMULATION
true: simulation, false: data
@ IS_TESTBEAM
true: testbeam, false: full detector
uint32_t runNumber() const
The current event's run number.
uint32_t mcChannelNumber() const
The MC generator's channel number.
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
uint64_t eventNumber() const
The current event's event number.
uint64_t detectorMask() const
Bit field indicating which TTC zones are present in the event.
const DetDescrTags_t & detDescrTags() const
The detector description tags.
EventInfo_v1 EventInfo
Definition of the latest event info version.