|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #include "EventInfo/EventInfo.h"
40 static const double MIN_WEIGHT = -1.0e+6;
41 static const double MAX_WEIGHT = +1.0e+6;
42 static const double BIN_WIDTH( (MAX_WEIGHT - MIN_WEIGHT) /
48 else if (fabs(
weight + 0.999775) < 0.0001 )
weight = -1.0;
58 std::unique_ptr<EventInfo> trans(
new EventInfo(0,0,0) );
60 return(trans.release());
virtual void transToPers(const EventID *transObj, EventID_p1 *persObj, MsgStream &log) const override
void setEventID(owner< EventID * > pid)
void setEventType(owner< EventType * >)
This class represents the "type of event" where the type is given by one or more "characteristics".
virtual EventType * createTransientConst(const EventType_p1 *persObj, MsgStream &log) const override
This class contains trigger related information.
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
virtual EventID * createTransientConst(const EventID_p1 *persObj, MsgStream &log) const override
virtual void transToPers(const EventType *transObj, EventType_p1 *persObj, MsgStream &log) const override
float mc_event_weight(unsigned int iweight=0) const
Access to MC weight.
void setTriggerInfo(owner< TriggerInfo * > pTrig)
Add TriggerInfo to existing object.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
virtual EventInfo * createTransientConst(const EventInfo_p1 *persObj, MsgStream &log) const override
EventID * event_ID()
the unique identification of the event.
EventType_p1 m_event_type
virtual TriggerInfo_p1 * createPersistentConst(const TriggerInfo *transObj, MsgStream &log) const override
virtual void transToPers(const EventInfo *transObj, EventInfo_p1 *persObj, MsgStream &log) const override
virtual TriggerInfo * createTransientConst(const TriggerInfo_p1 *persObj, MsgStream &log) const override
This class provides general information about an event. Event information is provided by the accessor...
void set_mc_event_weight(float weight, unsigned int iweight=0, unsigned int nWeightsMax=0)
Add in MC weight. For more than 1 weight, add with iweight > 0.
const std::vector< number_type > & eventFilterInfo() const
get event filter trigger info
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
virtual void persToTrans(const EventInfo_p1 *persObj, EventInfo *transObj, MsgStream &log) const override
TriggerInfo_p1 * m_trigger_info
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc