1 #ifndef MULTIHEAD_HH_INCLUDED
2 #define MULTIHEAD_HH_INCLUDED
47 const_iterator
find(
const uuid_t& uuid,
48 const bool useCache =
false)
const
60 for (cache.it =
this->cbegin(); cache.it != this->cend(); ++cache.it) {
62 const Head& head = *cache.it;
65 uuid_parse(uuid_str.c_str(), cache.uuid);
67 if (uuid_compare(uuid, cache.uuid)) {
76 if (uuid_compare(uuid, cache.uuid)) {
79 return find(uuid,
false);
95 const bool useCache =
false)
const
116 uuid_parse(uuid_str.c_str(), uuid);
120 if (j == this->cend()) { this->push_back(*
i); }
const_iterator find(const Evt &event, const bool useCache=false) const
Find the header corresponding to the given event.
static int ROOT_IO_VERSION
Streamer version as obtained from ROOT file.
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
void join(const MultiHead &multiHead)
Join given MultiHead object with this MultiHead object.
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.
const_iterator find(const uuid_t &uuid, const bool useCache=false) const
Find header with given UUID.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
virtual ~MultiHead()
Virtual destructor.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.