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) /
43 std::numeric_limits<unsigned int>::max() );
47 if (fabs(weight - 0.999775) < 0.0001) weight = 1.0;
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());
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
static const TriggerInfoCnv_p1 trigInfoCnv
static const EventTypeCnv_p1 typeConv
static const EventIDCnv_p1 idConv
This class provides general information about an event.
This class contains trigger related information.
virtual void transToPers(const EventInfo *transObj, EventInfo_p1 *persObj, MsgStream &log) const override
virtual void persToTrans(const EventInfo_p1 *persObj, EventInfo *transObj, MsgStream &log) const override
virtual EventInfo * createTransientConst(const EventInfo_p1 *persObj, MsgStream &log) const override
EventType_p1 m_event_type
TriggerInfo_p1 * m_trigger_info
void setEventID(owner< EventID * > pid)
void setEventType(owner< EventType * >)
void setTriggerInfo(owner< TriggerInfo * > pTrig)
Add TriggerInfo to existing object.
EventID * event_ID()
the unique identification of the event.
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
This class represents the "type of event" where the type is given by one or more "characteristics".
float mc_event_weight(unsigned int iweight=0) const
Access to MC weight.
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