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

AlephNtupleWriter Class Reference

The Ntuple Writer. More...

#include <AlephNtupleWriter.h>

Collaboration diagram for AlephNtupleWriter:

Collaboration graph
[legend]
List of all members.

Public Methods

 AlephNtupleWriter ()
 constructor. More...

virtual ~AlephNtupleWriter ()
 destructor. More...

virtual void Initialize (AlephCardsReader *, int)
 initialize. More...

template<typename tpe> void AddOutput (tpe obj, char *name)
 add an output variable. More...

template<typename tpe> void AddOutput (tpe obj, unsigned int sze,...)
 add several output variables. More...

template<typename tpe> void AddScalableOutput (char *name, tpe obj, unsigned int size)
 add as output an elementary array (variable size). More...

virtual void Fill ()
 fill the ntuple. More...

virtual void Terminate ()
 terminate the session. More...

template<typename entry> void Keep (const char *name, const entry *value, const int size)
 method to instruct the class to keep the instant value of an array. More...

template<typename entry> void KeepV (const char *name, vector< entry > value)
 method to instruct the class to keep the instant value of a STL vector. More...

template<typename entry> void Keep (const char *name, const entry &value)
 method to instruct the class to keep the instant value of a variable. More...

void Keep (const char *name, const HepLorentzVector &value)
 method to instruct the class to keep the instant value of a HepLorentzVector. More...

void Keep (const char *name, const Hep3Vector &value)
 method to instruct the class to keep the instant value of a Hep3Vector. More...


Private Attributes

int type
AlephCardsReadercards
map<string,int> NamesIndexes
int size
vector<float> data
bool booked
TFile* ROOTfile
TTree* ROOTtree
map<string,int*> SizeAddresses
vector<smart_void*> theObjects

Detailed Description

The Ntuple Writer.

defines general methods to create ntuples or trees by the same way.

Definition at line 37 of file AlephNtupleWriter.h.


Constructor & Destructor Documentation

AlephNtupleWriter::AlephNtupleWriter ( )
 

constructor.

Definition at line 5 of file AlephNtupleWriter.cpp.

AlephNtupleWriter::~AlephNtupleWriter ( ) [virtual]
 

destructor.

Definition at line 14 of file AlephNtupleWriter.cpp.


Member Function Documentation

template<typename tpe>
void AlephNtupleWriter::AddOutput ( tpe obj,
unsigned int sze,
... ) [inline]
 

add several output variables.

Definition at line 102 of file AlephNtupleWriter.h.

template<typename tpe>
void AlephNtupleWriter::AddOutput ( tpe obj,
char * name ) [inline]
 

add an output variable.

Definition at line 49 of file AlephNtupleWriter.h.

Referenced by AlephExManager::UserInit().

template<typename tpe>
void AlephNtupleWriter::AddScalableOutput ( char * name,
tpe obj,
unsigned int size ) [inline]
 

add as output an elementary array (variable size).

Definition at line 163 of file AlephNtupleWriter.h.

Referenced by AlephExManager::UserInit().

void AlephNtupleWriter::Fill ( ) [virtual]
 

fill the ntuple.

Definition at line 39 of file AlephNtupleWriter.cpp.

void AlephNtupleWriter::Initialize ( AlephCardsReader * thecards,
int mode ) [virtual]
 

initialize.

Definition at line 17 of file AlephNtupleWriter.cpp.

Referenced by AlephIoManager::initialize().

void AlephNtupleWriter::Keep ( const char * name,
const Hep3Vector & value ) [inline]
 

method to instruct the class to keep the instant value of a Hep3Vector.

Definition at line 285 of file AlephNtupleWriter.h.

void AlephNtupleWriter::Keep ( const char * name,
const HepLorentzVector & value ) [inline]
 

method to instruct the class to keep the instant value of a HepLorentzVector.

Definition at line 276 of file AlephNtupleWriter.h.

template<typename entry>
void AlephNtupleWriter::Keep ( const char * name,
const entry & value ) [inline]
 

method to instruct the class to keep the instant value of a variable.

Definition at line 254 of file AlephNtupleWriter.h.

template<typename entry>
void AlephNtupleWriter::Keep ( const char * name,
const entry * value,
const int size ) [inline]
 

method to instruct the class to keep the instant value of an array.

Definition at line 211 of file AlephNtupleWriter.h.

Referenced by Keep().

template<typename entry>
void AlephNtupleWriter::KeepV ( const char * name,
vector< entry > value ) [inline]
 

method to instruct the class to keep the instant value of a STL vector.

Definition at line 232 of file AlephNtupleWriter.h.

void AlephNtupleWriter::Terminate ( ) [virtual]
 

terminate the session.

Definition at line 80 of file AlephNtupleWriter.cpp.

Referenced by AlephIoManager::terminate().


Member Data Documentation

map< string, int > AlephNtupleWriter::NamesIndexes<string,int> [private]
 

Definition at line 297 of file AlephNtupleWriter.h.

TFile * AlephNtupleWriter::ROOTfile [private]
 

Definition at line 305 of file AlephNtupleWriter.h.

TTree * AlephNtupleWriter::ROOTtree [private]
 

Definition at line 306 of file AlephNtupleWriter.h.

map< string, int *> AlephNtupleWriter::SizeAddresses<string,int*> [private]
 

Definition at line 307 of file AlephNtupleWriter.h.

bool AlephNtupleWriter::booked [private]
 

Definition at line 302 of file AlephNtupleWriter.h.

AlephCardsReader * AlephNtupleWriter::cards [private]
 

Definition at line 296 of file AlephNtupleWriter.h.

vector< float > AlephNtupleWriter::data<float> [private]
 

Definition at line 301 of file AlephNtupleWriter.h.

int AlephNtupleWriter::size [private]
 

Definition at line 300 of file AlephNtupleWriter.h.

vector< smart_void *> AlephNtupleWriter::theObjects<smart_void*> [private]
 

Definition at line 308 of file AlephNtupleWriter.h.

int AlephNtupleWriter::type [private]
 

Definition at line 295 of file AlephNtupleWriter.h.


The documentation for this class was generated from the following files:
Generated at Wed Jun 18 17:21:17 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001