Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GaudiTuple Class Reference

Wrapper for the Ntuple Servise so that this can plug into the SummaryData template. Will create a row-wise ntuple. More...

#include <GaudiTuple.h>

List of all members.

Public Methods

 GaudiTuple (INTupleWriterSvc* ntSvc, const char* title, const char* logicalFileName )
 ~GaudiTuple ()
void addItem (const char* name, const float *datum)
void fill ()
 Must be called to write out a row. More...


Private Types

typedef std::vector< std::pair<
const char*,const float*> > 
container
 the logical file name, e.g. "FILE1"maintain a list of pairs of pointers to the Gaudi Ntuple::Item, and our float. More...

typedef container::iterator iterator

Private Attributes

INTupleWriterSvc* m_ntSvc
std::string m_fileName
 the tuple service. More...

container m_ntupleItemList


Detailed Description

Wrapper for the Ntuple Servise so that this can plug into the SummaryData template. Will create a row-wise ntuple.

Definition at line 26 of file GaudiTuple.h.


Member Typedef Documentation

typedef std::vector< std::pair<const char*,const float*> > GaudiTuple::container [private]
 

the logical file name, e.g. "FILE1"maintain a list of pairs of pointers to the Gaudi Ntuple::Item, and our float.

Definition at line 56 of file GaudiTuple.h.

typedef container::iterator GaudiTuple::iterator [private]
 

Definition at line 57 of file GaudiTuple.h.


Constructor & Destructor Documentation

GaudiTuple::GaudiTuple ( INTupleWriterSvc * ntSvc,
const char * title,
const char * logicalFileName )
 

Parameters:
ntSvc   The pointer to Heather's ntupleWriterSvc
title   Title of the tuple
logicalFileName   For example, "FILE1". This must be defined by the job options, as NTupleSvc.Output = {"FILE1 DATAFILE='/NTUPLES/CalRecon.root' OPT='NEW'"};

Definition at line 14 of file GaudiTuple.cxx.

GaudiTuple::~GaudiTuple ( )
 

Definition at line 19 of file GaudiTuple.cxx.


Member Function Documentation

void GaudiTuple::addItem ( const char * name,
const float * datum )
 

Parameters:
name   The name of the entry in the Ntuple example "Total_Energy"
datum   Value for the entry

Definition at line 31 of file GaudiTuple.cxx.

void GaudiTuple::fill ( )
 

Must be called to write out a row.

This is where the information in the NTuple actually gets added at the end of the reconstruction.

Definition at line 40 of file GaudiTuple.cxx.


Member Data Documentation

std::string GaudiTuple::m_fileName [private]
 

the tuple service.

Definition at line 53 of file GaudiTuple.h.

INTupleWriterSvc * GaudiTuple::m_ntSvc [private]
 

Definition at line 51 of file GaudiTuple.h.

container GaudiTuple::m_ntupleItemList [private]
 

Definition at line 58 of file GaudiTuple.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:21:01 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000