EventType Class Reference
#include <EventType.h>
List of all members.
Detailed Description
class EventType
This class represents the "type of event" where the type is given by one or more "characteristics".
Standard characteristics: -------------------------
IS_SIMULATION // false means IS_DATA IS_TESTBEAM // false means IS_FROM_ATLAS_DET IS_CALIBRATION // false means IS_PHYSICS
Since an event may have MORE than one characteristic, a testbeam simulation event would respond true to first two of the above characteristics, whereas an offline simulation event would respond true to ONLY IS_SIMULATION.
These are set with:
void add_type (EventTypeCode type_code);
where the possible EventTypeCode's are provided as constants, e.g.:
static const EventTypeCode IS_SIMULATION;
Thus, one would set IS_SIMULATION by:
an_event_type.set_type_bit(EventType::IS_SIMULATION);
User-defined characteristics: -----------------------------
There is a possible to set and get a "user-defined" characteristic in terms of a string:
void add_type (const string& user_type); const string& user_type (void) const;
Access to the full set of characteristics: ------------------------------------------
This is possible via:
BitMaskIterator bit_mask_begin (void) const; BitMaskIterator bit_mask_end (void) const;
Implementation details: -----------------------
The full set of characteristics is provided by static constants. One may add new event characteristics BOTH by adding more static constants AND by providing the cooresponding new boolean methods.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
|
00094 {
00095
00096
00097
00098 char sep = '#';
00099 bool done = false;
00100 unsigned int beg = m_user_type.find(sep);
00101 do {
00102 if (beg != std::string::npos) {
00103 unsigned int end1 = m_user_type.find(sep, beg+1);
00104 if (end1 != std::string::npos) {
00105 unsigned int end2 = m_user_type.find(sep, end1+1);
00106 if (end2 != std::string::npos) {
00107
00108 std::string first = m_user_type.substr(beg+1, end1-beg-1);
00109 std::string second = m_user_type.substr(end1+1, end2-end1-1);
00110 pairs.push_back(NameTagPair(first,second));
00111
00112
00113 beg = end2;
00114 }
00115 else {
00116
00117 std::string first = m_user_type.substr(beg+1, end1-beg-1);
00118 std::string second = m_user_type.substr(end1+1, m_user_type.size()-1);
00119 pairs.push_back(NameTagPair(first,second));
00120 done = true;
00121 }
00122 }
00123 else {
00124 done = true;
00125 }
00126 }
00127 else {
00128 done = true;
00129 }
00130 } while (!done);
00131 }
|
void EventType::set_user_type |
( |
const std::string & |
user_type |
) |
|
|
void EventType::set_user_type |
( |
const std::string & |
user_type |
) |
|
|
|
00071 {
00072 if (m_bit_mask.size() <= type_code) return false;
00073 return m_bit_mask[type_code];
00074 }
|
const std::string& EventType::user_type |
( |
void |
|
) |
const |
|
const std::string & EventType::user_type |
( |
void |
|
) |
const |
|
|
00078 {
00079 char sep = '#';
00080 unsigned int beg = m_user_type.find(sep);
00081 static std::string user_type;
00082 if (beg != std::string::npos) {
00083 user_type = m_user_type.substr(0, beg);
00084 }
00085 else {
00086 user_type = m_user_type;
00087 }
00088 return user_type;
00089 }
|
Member Data Documentation
The documentation for this class was generated from the following files:
- /data0/mdestefa/bes3soft/Boss_6.5.5/dist/6.5.5/EventFilter/HltUtilities/HltDataTypes/HltDataTypes-01-01-01/HltDataTypes/EventType.h
- /data0/mdestefa/bes3soft/Boss_6.5.5/dist/6.5.5/InstallArea/include/HltDataTypes/HltDataTypes/EventType.h
- /data0/mdestefa/bes3soft/Boss_6.5.5/dist/6.5.5/EventFilter/HltUtilities/HltDataTypes/HltDataTypes-01-01-01/src/EventType.cxx
Generated on Wed Feb 2 16:02:56 2011 for BOSS6.5.5 by
1.3.9.1