![]() |
The Gaudi Framework
v26r0
|
Templated base class providing common 'ntupling' methods. More...
#include <GaudiAlg/GaudiTuples.h>
Public Types | |
typedef GaudiAlg::HistoID | HistoID |
the actual type for histogram identifier More... | |
typedef Tuples::Tuple | Tuple |
the actual type of the tuple More... | |
typedef GaudiAlg::TupleID | TupleID |
the actual type of N-tuple ID More... | |
typedef GaudiAlg::TupleMapTitle | TupleMapTitle |
the actual type of (title) -> (tuple) mappping More... | |
typedef GaudiAlg::TupleMapID | TupleMapID |
the actual type of (Numeric ID) -> (tuple) mappping More... | |
Public Member Functions | |
Tuple | nTuple (const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const |
Access an N-Tuple object (book on-demand) with unique identifier. More... | |
Tuple | nTuple (const TupleID &ID, const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const |
Access an N-Tuple object (book on-demand) with forced identifier. More... | |
Tuple | evtCol (const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const |
Access an Event Tag Collection object (book on-demand) with unique identifier. More... | |
Tuple | evtCol (const TupleID &ID, const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const |
Access an Event Tag Collection object (book on-demand) with forced identifier. More... | |
bool | produceNTuples () const |
get the flag for N-Tuple production (property "NTupleProduce") More... | |
bool | splitNTupleDir () const |
get the flag for N-Tuple path split (property "NTupleSplitDir") More... | |
const std::string & | nTupleLUN () const |
get the logical unit for N-Tuples (property "NTupleLUN") More... | |
const std::string & | nTupleTopDir () const |
get the top-level N-Tuple directory (property "NTupleTopDir") More... | |
const std::string & | nTupleDir () const |
get the N-Tuple directory (property "NTupleDir") More... | |
TupleID::NumericID | nTupleOffSet () const |
get the value for N-Tuple offset (property "NTupleOffSet") More... | |
std::string | nTuplePath () const |
get the constructed N-Tuple path More... | |
bool | produceEvtCols () const |
get the flag for Event Tag Collection production (property "EvtColsProduce") More... | |
bool | splitEvtColDir () const |
get the flag for Event Tag Collection path split (property "EvtColsSplitDir") More... | |
const std::string & | evtColLUN () const |
get the logical unit for Event Tag Collections (property "EvtColsLUN") More... | |
const std::string & | evtColTopDir () const |
get the top-level Event Tag Collection directory (property "EvtColsTopDir") More... | |
const std::string & | evtColDir () const |
get the Event Tag Collection directory (property "EvtColsDir") More... | |
TupleID::NumericID | evtColOffSet () const |
get the value for Event Tag Collection offset (property "EvtColsOffSet") More... | |
std::string | evtColPath () const |
get the constructed Event Tag Collection path More... | |
bool | tuplesPrint () const |
print tuples at finalization More... | |
bool | evtColsPrint () const |
print event collections at finalization More... | |
long | printTuples () const |
perform the actual printout of N-tuples More... | |
long | printEvtCols () const |
perform the actual printout of Event Tag Collections More... | |
bool | nTupleExists (const TupleID &ID) const |
check the existence AND validity of the N-Tuple with the given ID More... | |
bool | evtColExists (const TupleID &ID) const |
check the existence AND validity of the Event Tag Collection with the given ID More... | |
GaudiTuples (const std::string &name, ISvcLocator *pSvcLocator) | |
Algorithm constructor. More... | |
GaudiTuples (const std::string &type, const std::string &name, const IInterface *parent) | |
Tool constructor. More... | |
virtual | ~GaudiTuples () |
Destructor. More... | |
Protected Member Functions | |
const TupleMapTitle & | nTupleMapTitle () const |
access to the all ntuples by title More... | |
const TupleMapTitle & | evtColMapTitle () const |
access to the all evet tag collections by title More... | |
const TupleMapID & | nTupleMapID () const |
access to the all ntuples by numeric ID More... | |
const TupleMapID & | evtColMapID () const |
access to the all evet tag collections by numeric ID More... | |
virtual Tuples::TupleObj * | createNTuple (const std::string &name, NTuple::Tuple *tuple, const CLID &clid) const |
create TupleObj More... | |
virtual Tuples::TupleObj * | createEvtCol (const std::string &name, NTuple::Tuple *tuple, const CLID &clid) const |
create TupleObj for event tag collection More... | |
virtual StatusCode | initialize () |
standard initialization method More... | |
virtual StatusCode | finalize () |
standard finalization method More... | |
Private Member Functions | |
void | initGaudiTuplesConstructor () |
Constructor initialization and job options. More... | |
void | printNTupleHandler (Property &) |
handler for "NTuplePrint" property More... | |
void | printEvtColHandler (Property &) |
handler for "EvtColsPrint" property More... | |
Private Attributes | |
bool | m_produceNTuples |
flag to switch ON/OFF the ntuple filling and booking More... | |
bool | m_splitNTupleDir |
flag to indicate splitting of tuple directories (useful for HBOOK) More... | |
std::string | m_nTupleLUN |
name of logical unit for tuple directory More... | |
std::string | m_nTupleTopDir |
top level tuple directory More... | |
std::string | m_nTupleDir |
local tuple directory More... | |
TupleID::NumericID | m_nTupleOffSet |
the offset for ntuple numerical ID More... | |
bool | m_produceEvtCols |
flag to switch ON/OFF the ntuple filling and booking More... | |
bool | m_splitEvtColDir |
flag to indicate splitting of tuple directories (useful for HBOOK) More... | |
std::string | m_evtColLUN |
name of Logical Unit for tuple directory More... | |
std::string | m_evtColTopDir |
top level tuple directory More... | |
std::string | m_evtColDir |
local tuple directory More... | |
TupleID::NumericID | m_evtColOffSet |
the offset for ntuple numerical ID More... | |
bool | m_tuplesPrint |
print tuples at finalization? More... | |
bool | m_evtColsPrint |
print event collections at finalization More... | |
TupleMapTitle | m_nTupleMapTitle |
the actual storage of ntuples by title More... | |
TupleMapID | m_nTupleMapID |
the actual storage of ntuples by ID More... | |
TupleMapTitle | m_evtColMapTitle |
the actual storage of event collections by title More... | |
TupleMapID | m_evtColMapID |
the actual storage of event collections by ID More... | |
Templated base class providing common 'ntupling' methods.
Definition at line 37 of file GaudiTuples.h.
typedef GaudiAlg::HistoID GaudiTuples< PBASE >::HistoID |
the actual type for histogram identifier
Definition at line 42 of file GaudiTuples.h.
typedef Tuples::Tuple GaudiTuples< PBASE >::Tuple |
the actual type of the tuple
Definition at line 44 of file GaudiTuples.h.
typedef GaudiAlg::TupleID GaudiTuples< PBASE >::TupleID |
the actual type of N-tuple ID
Definition at line 46 of file GaudiTuples.h.
typedef GaudiAlg::TupleMapID GaudiTuples< PBASE >::TupleMapID |
the actual type of (Numeric ID) -> (tuple) mappping
Definition at line 50 of file GaudiTuples.h.
typedef GaudiAlg::TupleMapTitle GaudiTuples< PBASE >::TupleMapTitle |
the actual type of (title) -> (tuple) mappping
Definition at line 48 of file GaudiTuples.h.
GaudiTuples< PBASE >::GaudiTuples | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Algorithm constructor.
GaudiTuples< PBASE >::GaudiTuples | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Tool constructor.
|
virtual |
|
protectedvirtual |
create TupleObj for event tag collection
name | name/title |
tuple | the underlying ntuple implementation |
clid | unique classID for ntuple |
Definition at line 358 of file GaudiTuples.icpp.
|
protectedvirtual |
create TupleObj
name | name/title |
tuple | the underlying ntuple implementation |
clid | unique classID for ntuple |
Definition at line 344 of file GaudiTuples.icpp.
Tuples::Tuple GaudiTuples< PBASE >::evtCol | ( | const std::string & | title, |
const CLID & | clid = CLID_ColumnWiseTuple |
||
) | const |
Access an Event Tag Collection object (book on-demand) with unique identifier.
The Event Tag Collection will get a unique identifier automatically assigned which by default will be equal to the histogram title. An option exists to instead use numerical IDs. In this case the first Event Tag Collection booked will be ID=1 the next ID=2 and so on. Note though this scheme is not recommended as it does NOT guarantee predictability of the ID a given Event Tag Collection will be given when filled under conditional statements, since in these circumstances the order in which the Event Tag Collection are first filled, and thus booked, will depend on the nature of the first few events read. This is particularly problematic when users submit many parallel 'sub-jobs' and then attempt to merge the final output ROOT (or HBOOK) files, since a given Event Tag Collection could have different IDs in each of the sub-jobs. Consequently it is strongly recommended that users do not use numerical automatic IDs unless they are sure they understand what they are doing.
title | Unique title for Event Tag Collection |
clid | N-Tuple class identifier (row or column wise) |
Definition at line 183 of file GaudiTuples.icpp.
Tuples::Tuple GaudiTuples< PBASE >::evtCol | ( | const TupleID & | ID, |
const std::string & | title, | ||
const CLID & | clid = CLID_ColumnWiseTuple |
||
) | const |
Access an Event Tag Collection object (book on-demand) with forced identifier.
ID | The forced Event Tag Collection ID |
title | Unique title for Event Tag Collection |
clid | N-Tuple class identifier (row or column wise) |
Definition at line 282 of file GaudiTuples.icpp.
|
inline |
get the Event Tag Collection directory (property "EvtColsDir")
Definition at line 230 of file GaudiTuples.h.
bool GaudiTuples< PBASE >::evtColExists | ( | const TupleID & | ID | ) | const |
check the existence AND validity of the Event Tag Collection with the given ID
Definition at line 436 of file GaudiTuples.icpp.
|
inline |
get the logical unit for Event Tag Collections (property "EvtColsLUN")
Definition at line 226 of file GaudiTuples.h.
|
inlineprotected |
access to the all evet tag collections by numeric ID
Definition at line 267 of file GaudiTuples.h.
|
inlineprotected |
access to the all evet tag collections by title
Definition at line 263 of file GaudiTuples.h.
|
inline |
get the value for Event Tag Collection offset (property "EvtColsOffSet")
Definition at line 232 of file GaudiTuples.h.
std::string GaudiTuples< PBASE >::evtColPath | ( | ) | const |
get the constructed Event Tag Collection path
Definition at line 473 of file GaudiTuples.icpp.
|
inline |
print event collections at finalization
Definition at line 238 of file GaudiTuples.h.
|
inline |
get the top-level Event Tag Collection directory (property "EvtColsTopDir")
Definition at line 228 of file GaudiTuples.h.
|
protectedvirtual |
standard finalization method
Reimplemented in GaudiTupleTool, and GaudiTupleAlg.
Definition at line 93 of file GaudiTuples.icpp.
|
inlineprivate |
Constructor initialization and job options.
Definition at line 330 of file GaudiTuples.h.
|
protectedvirtual |
standard initialization method
Reimplemented in GaudiTupleTool, and GaudiTupleAlg.
Definition at line 50 of file GaudiTuples.icpp.
Tuples::Tuple GaudiTuples< PBASE >::nTuple | ( | const std::string & | title, |
const CLID & | clid = CLID_ColumnWiseTuple |
||
) | const |
Access an N-Tuple object (book on-demand) with unique identifier.
title | Unique title for N-Tuple |
clid | N-Tuple class identifier (row or column wise) |
Definition at line 144 of file GaudiTuples.icpp.
Tuples::Tuple GaudiTuples< PBASE >::nTuple | ( | const TupleID & | ID, |
const std::string & | title, | ||
const CLID & | clid = CLID_ColumnWiseTuple |
||
) | const |
Access an N-Tuple object (book on-demand) with forced identifier.
ID | The forced N-Tuple ID |
title | Unique title for N-Tuple |
clid | N-Tuple class identifier (row or column wise) |
Definition at line 222 of file GaudiTuples.icpp.
|
inline |
bool GaudiTuples< PBASE >::nTupleExists | ( | const TupleID & | ID | ) | const |
check the existence AND validity of the N-Tuple with the given ID
Definition at line 428 of file GaudiTuples.icpp.
|
inline |
get the logical unit for N-Tuples (property "NTupleLUN")
Definition at line 212 of file GaudiTuples.h.
|
inlineprotected |
access to the all ntuples by numeric ID
Definition at line 265 of file GaudiTuples.h.
|
inlineprotected |
access to the all ntuples by title
Definition at line 261 of file GaudiTuples.h.
|
inline |
get the value for N-Tuple offset (property "NTupleOffSet")
Definition at line 218 of file GaudiTuples.h.
std::string GaudiTuples< PBASE >::nTuplePath | ( | ) | const |
get the constructed N-Tuple path
Definition at line 464 of file GaudiTuples.icpp.
|
inline |
get the top-level N-Tuple directory (property "NTupleTopDir")
Definition at line 214 of file GaudiTuples.h.
|
private |
handler for "EvtColsPrint" property
Definition at line 454 of file GaudiTuples.icpp.
long GaudiTuples< PBASE >::printEvtCols | ( | ) | const |
perform the actual printout of Event Tag Collections
Definition at line 398 of file GaudiTuples.icpp.
|
private |
handler for "NTuplePrint" property
Definition at line 444 of file GaudiTuples.icpp.
long GaudiTuples< PBASE >::printTuples | ( | ) | const |
perform the actual printout of N-tuples
Definition at line 369 of file GaudiTuples.icpp.
|
inline |
get the flag for Event Tag Collection production (property "EvtColsProduce")
Definition at line 222 of file GaudiTuples.h.
|
inline |
get the flag for N-Tuple production (property "NTupleProduce")
Definition at line 208 of file GaudiTuples.h.
|
inline |
get the flag for Event Tag Collection path split (property "EvtColsSplitDir")
Definition at line 224 of file GaudiTuples.h.
|
inline |
get the flag for N-Tuple path split (property "NTupleSplitDir")
Definition at line 210 of file GaudiTuples.h.
|
inline |
print tuples at finalization
Definition at line 236 of file GaudiTuples.h.
|
private |
local tuple directory
Definition at line 428 of file GaudiTuples.h.
|
private |
name of Logical Unit for tuple directory
Definition at line 424 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of event collections by ID
Definition at line 445 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of event collections by title
Definition at line 443 of file GaudiTuples.h.
|
private |
the offset for ntuple numerical ID
Definition at line 430 of file GaudiTuples.h.
|
private |
print event collections at finalization
Definition at line 435 of file GaudiTuples.h.
|
private |
top level tuple directory
Definition at line 426 of file GaudiTuples.h.
|
private |
local tuple directory
Definition at line 415 of file GaudiTuples.h.
|
private |
name of logical unit for tuple directory
Definition at line 411 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of ntuples by ID
Definition at line 440 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of ntuples by title
Definition at line 438 of file GaudiTuples.h.
|
private |
the offset for ntuple numerical ID
Definition at line 417 of file GaudiTuples.h.
|
private |
top level tuple directory
Definition at line 413 of file GaudiTuples.h.
|
private |
flag to switch ON/OFF the ntuple filling and booking
Definition at line 420 of file GaudiTuples.h.
|
private |
flag to switch ON/OFF the ntuple filling and booking
Definition at line 407 of file GaudiTuples.h.
|
private |
flag to indicate splitting of tuple directories (useful for HBOOK)
Definition at line 422 of file GaudiTuples.h.
|
private |
flag to indicate splitting of tuple directories (useful for HBOOK)
Definition at line 409 of file GaudiTuples.h.
|
private |
print tuples at finalization?
Definition at line 433 of file GaudiTuples.h.