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

reconRootWriterAlg Class Reference

#include <reconRootWriterAlg.h>

Inheritance diagram for reconRootWriterAlg:

Algorithm List of all members.

Public Methods

 reconRootWriterAlg (const std::string& name, ISvcLocator* pSvcLocator)
 constructor: create the converters. More...

StatusCode initialize ()
 initialize - open the root tree in write mode. More...

StatusCode execute ()
 load the root tree and write event by event. More...

StatusCode finalize ()
 close the root-tree. More...

StatusCode retrieve ()
 retrieve the TD from TDS. More...


Protected Methods

void save (SiRecObjs* sirec)
 save the tracker hight level reconstructed objects from transient to persistent storage. More...

void save (SiClusters* sicl)
 save the tracker medium level reconstructed objects from transient to persistent storage. More...

void save (CalRecLogs* crls)
 save the CalRecLogs. More...

void save (CsIClusterList* ccl)
 save the CsIClusterList. More...

void load (SiRecObjs* sirec)
 null load the tracker hight level reconstructed objects from transient to persistent storage. More...

void load (SiClusters* sicl)
 null load the tracker medium level reconstructed objects from transient to persistent storage. More...

void load (CalRecLogs* crls)
 null load the CalRecLogs. More...

void load (CsIClusterList* ccl)
 null load the CsIClusterList. More...

void writeEvent ()
 The User should define in this methods the converters from Recon->Transient. More...

void close ()
StatusCode saveHeader ()

Private Methods

CalLogEne* converter (const CalRecLog* crl)
CalCluster* converter (const ICsICluster* cc)
TkrTrack* converter (const GFtrack* track, int id, bool mother = false)
 converter for the reconstructed tracks. More...

TkrLocator* converter (const GFdata* gf)
 converter to locate an elemento of the track (i.e. vertex). More...

TkrSiCluster* converter (const SiCluster* scl)
 convertor from transiend to persistend data of the same class "SiCluster" (a simple copy). More...

TkrHit* converter (const KalPlane& kp, SiCluster::view a)
 convertor (constructor) of a "TkrHit" object from a "KalPlane" object. More...

TkrLocator* converter (const KalPlane& kp, SiCluster::view a, int idummy)
 converto from a "KalPlane" object to a "TkrLocator". More...

void importGamma (SiRecObjs* sirec)
 import the tracker reconstructed gamma from "SiRecObjs" to persistent. More...

void importTracks (SiRecObjs* sirec)
 import the reconstructed tracks from "SiRecObjs" into persistent. More...

void importHits (const GFtrack* track, TkrTrack* rtrack)
 import the hits of a given track from transient ("KalPlane") to persistent ("TkrHit"). More...


Private Attributes

int m_idtrack
 counter of the number of saved track per event. More...

SiClusters* m_SiClusters
SiRecObjs* m_SiRecObjs
CalRecLogs* m_CalRecLogs
CsIClusterList* m_CsIClusterList
TFile* recFile
TTree* recTree
Recon* m_rec
std::string m_nameFile
std::string m_inputSource

Constructor & Destructor Documentation

reconRootWriterAlg::reconRootWriterAlg ( const std::string & name,
ISvcLocator * pSvcLocator )
 

constructor: create the converters.

the constructor of converterServer will call defineConverters

Definition at line 44 of file reconRootWriterAlg.cxx.


Member Function Documentation

void reconRootWriterAlg::close ( ) [protected]
 

Definition at line 142 of file reconRootWriterAlg.cxx.

Referenced by finalize().

TkrLocator * reconRootWriterAlg::converter ( const KalPlane & kp,
SiCluster::view a,
int idummy ) [private]
 

converto from a "KalPlane" object to a "TkrLocator".

The "KalPlane" objects contain information for the SiClusters and the fitted hit in a given position of the track

Definition at line 385 of file reconRootWriterAlg.cxx.

TkrHit * reconRootWriterAlg::converter ( const KalPlane & kp,
SiCluster::view a ) [private]
 

convertor (constructor) of a "TkrHit" object from a "KalPlane" object.

A "TkrHit" contains information of the "TkrLocator" of a given hit, its chi2, residual, and the "SiCluster" which is associated with"

Definition at line 362 of file reconRootWriterAlg.cxx.

TkrSiCluster * reconRootWriterAlg::converter ( const SiCluster * scl ) [private]
 

convertor from transiend to persistend data of the same class "SiCluster" (a simple copy).

Definition at line 188 of file reconRootWriterAlg.cxx.

TkrLocator * reconRootWriterAlg::converter ( const GFdata * gf ) [private]
 

converter to locate an elemento of the track (i.e. vertex).

A "TkrLocator" contains information about the position, direction and errors of a reconstructed track in a given position

Definition at line 304 of file reconRootWriterAlg.cxx.

TkrTrack * reconRootWriterAlg::converter ( const GFtrack * track,
int id,
bool mother = false ) [private]
 

converter for the reconstructed tracks.

A GFtrack (3D) tracks is divided into 2 "TkrTrack" (X and Y) projectios. The ID of a "TkrTrack" associated the X-Y projection of the same 3D "GFtrack"

Definition at line 322 of file reconRootWriterAlg.cxx.

CalCluster * reconRootWriterAlg::converter ( const ICsICluster * cc ) [private]
 

Definition at line 433 of file reconRootWriterAlg.cxx.

CalLogEne * reconRootWriterAlg::converter ( const CalRecLog * crl ) [private]
 

Definition at line 485 of file reconRootWriterAlg.cxx.

Referenced by converter(), importGamma(), importHits(), importTracks(), and save().

StatusCode reconRootWriterAlg::execute ( )
 

load the root tree and write event by event.

Definition at line 87 of file reconRootWriterAlg.cxx.

StatusCode reconRootWriterAlg::finalize ( )
 

close the root-tree.

Definition at line 151 of file reconRootWriterAlg.cxx.

void reconRootWriterAlg::importGamma ( SiRecObjs * sirec ) [private]
 

import the tracker reconstructed gamma from "SiRecObjs" to persistent.

Definition at line 214 of file reconRootWriterAlg.cxx.

Referenced by save().

void reconRootWriterAlg::importHits ( const GFtrack * track,
TkrTrack * rtrack ) [private]
 

import the hits of a given track from transient ("KalPlane") to persistent ("TkrHit").

Definition at line 287 of file reconRootWriterAlg.cxx.

Referenced by converter().

void reconRootWriterAlg::importTracks ( SiRecObjs * sirec ) [private]
 

import the reconstructed tracks from "SiRecObjs" into persistent.

Definition at line 267 of file reconRootWriterAlg.cxx.

Referenced by save().

StatusCode reconRootWriterAlg::initialize ( )
 

initialize - open the root tree in write mode.

Definition at line 53 of file reconRootWriterAlg.cxx.

void reconRootWriterAlg::load ( CsIClusterList * ccl ) [inline, protected]
 

null load the CsIClusterList.

Definition at line 65 of file reconRootWriterAlg.h.

void reconRootWriterAlg::load ( CalRecLogs * crls ) [inline, protected]
 

null load the CalRecLogs.

Definition at line 63 of file reconRootWriterAlg.h.

void reconRootWriterAlg::load ( SiClusters * sicl ) [inline, protected]
 

null load the tracker medium level reconstructed objects from transient to persistent storage.

Definition at line 61 of file reconRootWriterAlg.h.

void reconRootWriterAlg::load ( SiRecObjs * sirec ) [inline, protected]
 

null load the tracker hight level reconstructed objects from transient to persistent storage.

Definition at line 59 of file reconRootWriterAlg.h.

StatusCode reconRootWriterAlg::retrieve ( )
 

retrieve the TD from TDS.

Definition at line 159 of file reconRootWriterAlg.cxx.

Referenced by execute().

void reconRootWriterAlg::save ( CsIClusterList * ccl ) [protected]
 

save the CsIClusterList.

Definition at line 418 of file reconRootWriterAlg.cxx.

void reconRootWriterAlg::save ( CalRecLogs * crls ) [protected]
 

save the CalRecLogs.

Definition at line 467 of file reconRootWriterAlg.cxx.

void reconRootWriterAlg::save ( SiClusters * sicl ) [protected]
 

save the tracker medium level reconstructed objects from transient to persistent storage.

Definition at line 171 of file reconRootWriterAlg.cxx.

void reconRootWriterAlg::save ( SiRecObjs * sirec ) [protected]
 

save the tracker hight level reconstructed objects from transient to persistent storage.

Definition at line 205 of file reconRootWriterAlg.cxx.

Referenced by execute().

StatusCode reconRootWriterAlg::saveHeader ( ) [protected]
 

Definition at line 107 of file reconRootWriterAlg.cxx.

Referenced by execute().

void reconRootWriterAlg::writeEvent ( ) [protected]
 

The User should define in this methods the converters from Recon->Transient.

The system will not know the persistent data and will interact only with the algorithms created for the converters that the User declare here

Definition at line 130 of file reconRootWriterAlg.cxx.

Referenced by execute().


Member Data Documentation

CalRecLogs * reconRootWriterAlg::m_CalRecLogs [private]
 

Definition at line 123 of file reconRootWriterAlg.h.

CsIClusterList * reconRootWriterAlg::m_CsIClusterList [private]
 

Definition at line 124 of file reconRootWriterAlg.h.

SiClusters * reconRootWriterAlg::m_SiClusters [private]
 

Definition at line 121 of file reconRootWriterAlg.h.

SiRecObjs * reconRootWriterAlg::m_SiRecObjs [private]
 

Definition at line 122 of file reconRootWriterAlg.h.

int reconRootWriterAlg::m_idtrack [private]
 

counter of the number of saved track per event.

Definition at line 117 of file reconRootWriterAlg.h.

std::string reconRootWriterAlg::m_inputSource [private]
 

Definition at line 132 of file reconRootWriterAlg.h.

std::string reconRootWriterAlg::m_nameFile [private]
 

Definition at line 131 of file reconRootWriterAlg.h.

Recon * reconRootWriterAlg::m_rec [private]
 

Definition at line 129 of file reconRootWriterAlg.h.

TFile * reconRootWriterAlg::recFile [private]
 

Definition at line 126 of file reconRootWriterAlg.h.

TTree * reconRootWriterAlg::recTree [private]
 

Definition at line 127 of file reconRootWriterAlg.h.


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