1 #ifndef ALIPHOSINDEXTOOBJECT_H
2 #define ALIPHOSINDEXTOOBJECT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // A singleton that retrieves objets from an array stored in a Tree on a disk file
10 // 1. AliPHOSDigit from TreeD
12 //*-- Author: Yves Schutz (SUBATECH)
15 // --- ROOT system ---
19 #include "TParticle.h"
21 // --- Standard library ---
25 // --- AliRoot header files ---
29 #include "AliPHOSDigit.h"
30 #include "AliPHOSEmcRecPoint.h"
31 #include "AliPHOSPpsdRecPoint.h"
32 #include "AliPHOSTrackSegment.h"
33 #include "AliPHOSRecParticle.h"
35 class AliPHOSIndexToObject : public TObject {
39 AliPHOSIndexToObject(){ assert(0==1) ; } // should be never called
40 virtual ~AliPHOSIndexToObject(){} ; // dtor
42 static AliPHOSIndexToObject * GetInstance(AliPHOS * det) ;
43 static AliPHOSIndexToObject * GetInstance() ;
45 AliPHOSDigit * GimeDigit(Int_t index) ;
46 TParticle * GimePrimaryParticle(Int_t index) ;
47 AliPHOSRecParticle * GimeRecParticle(Int_t index) ;
48 AliRecPoint * GimeRecPoint(Int_t index, TString s) ;
49 AliPHOSTrackSegment * GimeTrackSegment(Int_t index) ;
53 AliPHOSIndexToObject(AliPHOS * det) ;
55 AliPHOS * fDetector ; // the detector
56 TTree * fReconstruct ; // the reconstruction tree
58 static AliPHOSIndexToObject * fObjGetter ; // pointer to the unique instance of the singleton
60 ClassDef(AliPHOSIndexToObject,1) // Algorithm class that provides methods to retrieve objects from a list knowing the index
64 #endif // AliPHOSINDEXTOOBJECT_H