|
Gaudi Framework, version v23r6 |
| Home | Generated: Wed Jan 30 2013 |
Templated base class providing common 'ntupling' methods. More...
#include <GaudiAlg/GaudiTuples.h>


Public Types | |
| typedef GaudiAlg::HistoID | HistoID |
| the actual type for histogram identifier | |
| typedef Tuples::Tuple | Tuple |
| the actual type of the tuple | |
| typedef GaudiAlg::TupleID | TupleID |
| the actual type of N-tuple ID | |
| typedef GaudiAlg::TupleMapTitle | TupleMapTitle |
| the actual type of (title) -> (tuple) mappping | |
| typedef GaudiAlg::TupleMapID | TupleMapID |
| the actual type of (Numeric ID) -> (tuple) mappping | |
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. | |
| 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. | |
| Tuple | evtCol (const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const |
| Access an Event Tag Collection object (book on-demand) with unique identifier. | |
| 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. | |
| bool | produceNTuples () const |
| get the flag for N-Tuple production (property "NTupleProduce") | |
| bool | splitNTupleDir () const |
| get the flag for N-Tuple path split (property "NTupleSplitDir") | |
| const std::string & | nTupleLUN () const |
| get the logical unit for N-Tuples (property "NTupleLUN") | |
| const std::string & | nTupleTopDir () const |
| get the top-level N-Tuple directory (property "NTupleTopDir") | |
| const std::string & | nTupleDir () const |
| get the N-Tuple directory (property "NTupleDir") | |
| TupleID::NumericID | nTupleOffSet () const |
| get the value for N-Tuple offset (property "NTupleOffSet") | |
| std::string | nTuplePath () const |
| get the constructed N-Tuple path | |
| bool | produceEvtCols () const |
| get the flag for Event Tag Collection production (property "EvtColsProduce") | |
| bool | splitEvtColDir () const |
| get the flag for Event Tag Collection path split (property "EvtColsSplitDir") | |
| const std::string & | evtColLUN () const |
| get the logical unit for Event Tag Collections (property "EvtColsLUN") | |
| const std::string & | evtColTopDir () const |
| get the top-level Event Tag Collection directory (property "EvtColsTopDir") | |
| const std::string & | evtColDir () const |
| get the Event Tag Collection directory (property "EvtColsDir") | |
| TupleID::NumericID | evtColOffSet () const |
| get the value for Event Tag Collection offset (property "EvtColsOffSet") | |
| std::string | evtColPath () const |
| get the constructed Event Tag Collection path | |
| bool | tuplesPrint () const |
| print tuples at finalization | |
| bool | evtColsPrint () const |
| print event collections at finalization | |
| long | printTuples () const |
| perform the actual printout of N-tuples | |
| long | printEvtCols () const |
| perform the actual printout of Event Tag Collections | |
| bool | nTupleExists (const TupleID &ID) const |
| check the existence AND validity of the N-Tuple with the given ID | |
| bool | evtColExists (const TupleID &ID) const |
| check the existence AND validity of the Event Tag Collection with the given ID | |
| GaudiTuples (const std::string &name, ISvcLocator *pSvcLocator) | |
| Algorithm constructor. | |
| GaudiTuples (const std::string &type, const std::string &name, const IInterface *parent) | |
| Tool constructor. | |
| virtual | ~GaudiTuples () |
| Destructor. | |
Protected Member Functions | |
| const TupleMapTitle & | nTupleMapTitle () const |
| access to the all ntuples by title | |
| const TupleMapTitle & | evtColMapTitle () const |
| access to the all evet tag collections by title | |
| const TupleMapID & | nTupleMapID () const |
| access to the all ntuples by numeric ID | |
| const TupleMapID & | evtColMapID () const |
| access to the all evet tag collections by numeric ID | |
| virtual Tuples::TupleObj * | createNTuple (const std::string &name, NTuple::Tuple *tuple, const CLID &clid) const |
| create TupleObj | |
| virtual Tuples::TupleObj * | createEvtCol (const std::string &name, NTuple::Tuple *tuple, const CLID &clid) const |
| create TupleObj for event tag collection | |
| virtual StatusCode | initialize () |
| standard initialization method | |
| virtual StatusCode | finalize () |
| standard finalization method | |
Private Member Functions | |
| void | initGaudiTuplesConstructor () |
| Constructor initialization and job options. | |
| void | printNTupleHandler (Property &) |
| handler for "NTuplePrint" property | |
| void | printEvtColHandler (Property &) |
| handler for "EvtColsPrint" property | |
Private Attributes | |
| bool | m_produceNTuples |
| flag to switch ON/OFF the ntuple filling and booking | |
| bool | m_splitNTupleDir |
| flag to indicate splitting of tuple directories (useful for HBOOK) | |
| std::string | m_nTupleLUN |
| name of logical unit for tuple directory | |
| std::string | m_nTupleTopDir |
| top level tuple directory | |
| std::string | m_nTupleDir |
| local tuple directory | |
| TupleID::NumericID | m_nTupleOffSet |
| the offset for ntuple numerical ID | |
| bool | m_produceEvtCols |
| flag to switch ON/OFF the ntuple filling and booking | |
| bool | m_splitEvtColDir |
| flag to indicate splitting of tuple directories (useful for HBOOK) | |
| std::string | m_evtColLUN |
| name of Logical Unit for tuple directory | |
| std::string | m_evtColTopDir |
| top level tuple directory | |
| std::string | m_evtColDir |
| local tuple directory | |
| TupleID::NumericID | m_evtColOffSet |
| the offset for ntuple numerical ID | |
| bool | m_tuplesPrint |
| print tuples at finalization? | |
| bool | m_evtColsPrint |
| print event collections at finalization | |
| TupleMapTitle | m_nTupleMapTitle |
| the actual storage of ntuples by title | |
| TupleMapID | m_nTupleMapID |
| the actual storage of ntuples by ID | |
| TupleMapTitle | m_evtColMapTitle |
| the actual storage of event collections by title | |
| TupleMapID | m_evtColMapID |
| the actual storage of event collections by ID | |
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 357 of file GaudiTuples.icpp.
|
protectedvirtual |
create TupleObj
| name | name/title |
| tuple | the underlying ntuple implementation |
| clid | unique classID for ntuple |
Definition at line 343 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 182 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 281 of file GaudiTuples.icpp.
|
inline |
get the Event Tag Collection directory (property "EvtColsDir")
Definition at line 234 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 433 of file GaudiTuples.icpp.
|
inline |
get the logical unit for Event Tag Collections (property "EvtColsLUN")
Definition at line 230 of file GaudiTuples.h.
|
inlineprotected |
access to the all evet tag collections by numeric ID
Definition at line 275 of file GaudiTuples.h.
|
inlineprotected |
access to the all evet tag collections by title
Definition at line 271 of file GaudiTuples.h.
|
inline |
get the value for Event Tag Collection offset (property "EvtColsOffSet")
Definition at line 236 of file GaudiTuples.h.
|
inline |
get the constructed Event Tag Collection path
Definition at line 238 of file GaudiTuples.h.
|
inline |
print event collections at finalization
Definition at line 246 of file GaudiTuples.h.
|
inline |
get the top-level Event Tag Collection directory (property "EvtColsTopDir")
Definition at line 232 of file GaudiTuples.h.
|
protectedvirtual |
standard finalization method
Reimplemented in GaudiTupleTool, and GaudiTupleAlg.
Definition at line 92 of file GaudiTuples.icpp.
|
inlineprivate |
Constructor initialization and job options.
Definition at line 338 of file GaudiTuples.h.
|
protectedvirtual |
standard initialization method
Reimplemented in GaudiTupleTool, and GaudiTupleAlg.
Definition at line 49 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 143 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 221 of file GaudiTuples.icpp.
|
inline |
get the N-Tuple directory (property "NTupleDir")
Definition at line 216 of file GaudiTuples.h.
| bool GaudiTuples< PBASE >::nTupleExists | ( | const TupleID & | ID | ) | const |
check the existence AND validity of the N-Tuple with the given ID
Definition at line 427 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 273 of file GaudiTuples.h.
|
inlineprotected |
access to the all ntuples by title
Definition at line 269 of file GaudiTuples.h.
|
inline |
get the value for N-Tuple offset (property "NTupleOffSet")
Definition at line 218 of file GaudiTuples.h.
|
inline |
get the constructed N-Tuple path
Definition at line 220 of file GaudiTuples.h.
|
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 449 of file GaudiTuples.icpp.
| long GaudiTuples< PBASE >::printEvtCols | ( | ) | const |
perform the actual printout of Event Tag Collections
Definition at line 397 of file GaudiTuples.icpp.
|
private |
handler for "NTuplePrint" property
Definition at line 439 of file GaudiTuples.icpp.
| long GaudiTuples< PBASE >::printTuples | ( | ) | const |
perform the actual printout of N-tuples
Definition at line 368 of file GaudiTuples.icpp.
|
inline |
get the flag for Event Tag Collection production (property "EvtColsProduce")
Definition at line 226 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 228 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 244 of file GaudiTuples.h.
|
private |
local tuple directory
Definition at line 436 of file GaudiTuples.h.
|
private |
name of Logical Unit for tuple directory
Definition at line 432 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of event collections by ID
Definition at line 453 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of event collections by title
Definition at line 451 of file GaudiTuples.h.
|
private |
the offset for ntuple numerical ID
Definition at line 438 of file GaudiTuples.h.
|
private |
print event collections at finalization
Definition at line 443 of file GaudiTuples.h.
|
private |
top level tuple directory
Definition at line 434 of file GaudiTuples.h.
|
private |
local tuple directory
Definition at line 423 of file GaudiTuples.h.
|
private |
name of logical unit for tuple directory
Definition at line 419 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of ntuples by ID
Definition at line 448 of file GaudiTuples.h.
|
mutableprivate |
the actual storage of ntuples by title
Definition at line 446 of file GaudiTuples.h.
|
private |
the offset for ntuple numerical ID
Definition at line 425 of file GaudiTuples.h.
|
private |
top level tuple directory
Definition at line 421 of file GaudiTuples.h.
|
private |
flag to switch ON/OFF the ntuple filling and booking
Definition at line 428 of file GaudiTuples.h.
|
private |
flag to switch ON/OFF the ntuple filling and booking
Definition at line 415 of file GaudiTuples.h.
|
private |
flag to indicate splitting of tuple directories (useful for HBOOK)
Definition at line 430 of file GaudiTuples.h.
|
private |
flag to indicate splitting of tuple directories (useful for HBOOK)
Definition at line 417 of file GaudiTuples.h.
|
private |
print tuples at finalization?
Definition at line 441 of file GaudiTuples.h.