 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 : m_mc_event_weights(1, 1),
26 m_mc_channel_number(0),
42 i != this->bit_mask_end(); ++
i, ++j) {
63 if (
m_bit_mask.size() <= type_code)
return false;
72 result +=
"Event type: sim/data - ";
78 result +=
", testbeam/atlas - ";
84 result +=
", calib/physics - ";
99 if (
beg != std::string::npos) {
122 if (
beg != std::string::npos) {
124 if (end1 != std::string::npos) {
126 if (end2 != std::string::npos) {
158 for (
unsigned int i = 0;
i <
pairs.size(); ++
i) {
std::string user_type(void) const
Access to user type.
void add_type(EventTypeCode type_code)
Add a new event type.
std::vector< bool > BitMask
BitMask::size_type EventTypeCode
void set_mc_channel_number(number_type chan)
Add in the MC generator channel number (aka gen run number)
This class represents the "type of event" where the type is given by one or more "characteristics".
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
uint64_t m_mc_event_number
float mc_event_weight(unsigned int iweight=0) const
Access to MC weight.
number_type mc_channel_number() const
Access to the MC generator channel number (was used as run number for generator events)
number_type m_mc_channel_number
std::pair< std::string, std::string > NameTagPair
std::vector< NameTagPair > NameTagPairVec
bool operator<(const EventType &rhs) const
Less than comparision needed to create e.g. set<EventType>
static const EventTypeCode IS_CALIBRATION
true: IS_CALIBRATION, false: IS_PHYSICS
std::string get_detdescr_tags() const
Access DetDescr tags as a single string.
std::vector< float > m_mc_event_weights
static const EventTypeCode IS_SIMULATION
true: IS_SIMULATION, false: IS_DATA
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.
static const EventTypeCode IS_TESTBEAM
true: IS_TESTBEAM, false: IS_FROM_ATLAS_DET
void set_mc_event_number(uint64_t evt)
Add in the MC generator event number.
void set_user_type(const std::string &user_type)
Add user (string) type.
uint64_t mc_event_number() const
Access to the MC generator event number.
bool test(EventTypeCode type_code) const
Tests for standard characteristics.
unsigned int n_mc_event_weights() const
Total number of MC weights.
BitMaskIterator bit_mask_begin(void) const
void reset_detdescr_tags()
Reset DetDescr tags - to remove them from old EventInfo objects being read in.
BitMaskIterator bit_mask_end(void) const
std::string typeToString() const
Access to standard characteristics in string for - for print out.
const std::string & user_type_raw(void) const
Access to user type.
BitMask::const_iterator BitMaskIterator
const BitMask & bit_mask() const