#include <MultiHead.hh>
- Author
- bjung
Definition at line 18 of file MultiHead.hh.
virtual MultiHead::~MultiHead |
( |
| ) |
|
|
inlinevirtual |
const Head& MultiHead::find |
( |
const uuid_t & |
uuid, |
|
|
const bool |
useCache = false |
|
) |
| const |
|
inline |
Find header with given UUID.
Note: The parameter useCache can be toggled on for faster lookup.
This should not be used if your MultiHead
object is modified between look-ups.
- Parameters
-
uuid | header UUID |
useCache | use caching for faster look-up |
- Returns
- header with given UUID
Definition at line 48 of file MultiHead.hh.
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);
#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
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.
const Head& MultiHead::find |
( |
const Evt & |
event, |
|
|
const bool |
useCache = false |
|
) |
| const |
|
inline |
Find the header corresponding to the given event.
Note: The parameter useCache can be toggled on for faster lookup.
This should not be used if your MultiHead
object is modified between look-ups.
- Parameters
-
event | event |
useCache | use caching for faster look-up |
- Returns
- header corresponding to the given event
Definition at line 95 of file MultiHead.hh.
uuid_t header_uuid
UUID of header containing the event-weight information.
const Head & find(const uuid_t &uuid, const bool useCache=false) const
Find header with given UUID.
static void MultiHead::actionAtFileOpen |
( |
int |
version | ) |
|
|
inlinestatic |
Action method at file open.
- Parameters
-
Definition at line 107 of file MultiHead.hh.
static int ROOT_IO_VERSION
Streamer version as obtained from ROOT file.
int MultiHead::ROOT_IO_VERSION = -1 |
|
static |
Streamer version as obtained from ROOT file.
Definition at line 112 of file MultiHead.hh.
The documentation for this struct was generated from the following files: