1 #ifndef MULTIHEAD_HH_INCLUDED
2 #define MULTIHEAD_HH_INCLUDED
49 const bool useCache =
false)
const
61 for (cache.index = 0; cache.index <
this->size(); ++cache.index) {
63 const Head& head = (*this)[cache.index];
66 uuid_parse(uuid_str.c_str(), cache.uuid);
68 if (uuid_compare(uuid, cache.uuid)) {
73 THROW(
Exception,
"MultiHead::find(const uuid_t&, const bool): Could not find header with UUID " << uuid);
77 if (uuid_compare(uuid, cache.uuid)) {
78 return this->at(cache.index);
80 return find(uuid,
false);
96 const bool useCache =
false)
const
static int ROOT_IO_VERSION
Streamer version as obtained from ROOT file.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
const Head & find(const Evt &event, const bool useCache=false) const
Find the header corresponding to the given event.
uuid_t header_uuid
UUID of header containing the event-weight information.
MultiHead()
Default constructor.
static void actionAtFileOpen(int version)
Action method at file open.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
const Head & find(const uuid_t &uuid, const bool useCache=false) const
Find header with given UUID.
virtual ~MultiHead()
Virtual destructor.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.