3 #ifndef GAUDIALG_GAUDITUPLES_H
4 #define GAUDIALG_GAUDITUPLES_H 1
36 template <
class PBASE>
222 const std::string path = nTupleLUN() +
"/" + nTupleTopDir() + nTupleDir();
223 return ( splitNTupleDir() ? dirHbookName( path ) : path ) ;
241 return ( splitEvtColDir() ? dirHbookName( path ) : path );
253 long printTuples ()
const ;
257 long printEvtCols ()
const ;
262 bool nTupleExists (
const TupleID& ID )
const;
264 bool evtColExists (
const TupleID& ID )
const;
289 const CLID& clid )
const ;
300 const CLID& clid )
const ;
321 {
return i_gtInitialize(); }
330 {
return i_gtFinalize(); }
338 inline void initGaudiTuplesConstructor()
340 m_produceNTuples = true ;
341 m_splitNTupleDir = false ;
342 m_nTupleLUN =
"FILE1" ;
343 m_nTupleTopDir =
"" ;
344 m_nTupleDir = this->name() ;
347 m_produceEvtCols = false ;
348 m_splitEvtColDir = false ;
349 m_evtColLUN =
"EVTCOL" ;
350 m_evtColTopDir =
"" ;
351 m_evtColDir = this->name() ;
354 m_tuplesPrint = true ;
355 m_evtColsPrint = false ;
357 this -> declareProperty
358 (
"NTupleProduce" , m_produceNTuples ,
359 "General switch to enable/disable N-tuples" ) ;
360 this -> declareProperty
361 (
"NTuplePrint" , m_tuplesPrint ,
362 "Print N-tuple statistics" )
364 this -> declareProperty
365 (
"NTupleSplitDir" , m_splitNTupleDir ,
366 "Split long directory names into short pieces (suitable for HBOOK)" ) ;
367 this -> declareProperty
368 (
"NTupleOffSet" , m_nTupleOffSet ,
369 "Offset for numerical N-tuple ID" ) ;
370 this -> declareProperty
371 (
"NTupleLUN" , m_nTupleLUN ,
372 "Logical File Unit for N-tuples" ) ;
373 this -> declareProperty
374 (
"NTupleTopDir" , m_nTupleTopDir ,
375 "Top-level directory for N-Tuples") ;
376 this -> declareProperty
377 (
"NTupleDir" , m_nTupleDir ,
378 "Subdirectory for N-Tuples" ) ;
380 this -> declareProperty
381 (
"EvtColsProduce" , m_produceEvtCols ,
382 "General switch to enable/disable Event Tag Collections" ) ;
383 this -> declareProperty
384 (
"EvtColsPrint" , m_evtColsPrint ,
385 "Print statistics for Event Tag Collections " )
387 this -> declareProperty
388 (
"EvtColSplitDir" , m_splitEvtColDir ,
389 "Split long directory names into short pieces" ) ;
390 this -> declareProperty
391 (
"EvtColOffSet" , m_evtColOffSet ,
392 "Offset for numerical N-tuple ID" ) ;
393 this -> declareProperty
394 (
"EvtColLUN" , m_evtColLUN ,
395 "Logical File Unit for Event Tag Collections" ) ;
396 this -> declareProperty
397 (
"EvtColTopDir" , m_evtColTopDir ,
398 "Top-level directory for Event Tag Collections" ) ;
399 this -> declareProperty
400 (
"EvtColDir" , m_evtColDir ,
401 "Subdirectory for Event Tag Collections" ) ;
408 void printNTupleHandler (
Property& ) ;
410 void printEvtColHandler (
Property& ) ;
459 #endif // GAUDIALG_GAUDITUPLES_H