//_________________________________________________________________________
// A singleton that retrieves objets from an array stored in a Tree on a disk file
// 1. AliPHOSDigit from TreeD
-//
+// Oh yeah
//*-- Author: Yves Schutz (SUBATECH)
public:
- AliPHOSIndexToObject(){ assert(0==1) ; } // should be never called
- virtual ~AliPHOSIndexToObject(){} ; // dtor
+ AliPHOSIndexToObject(){
+ // ctor: this is a singleton, the ctor should never be called but cint needs it as publiv
+ assert(0==1) ;
+ }
+ AliPHOSIndexToObject(const AliPHOSIndexToObject & obj) {
+ // cpy ctor requested by Coding Convention
+ // but not yet needed
+ assert(0==1) ;
+ }
+
+ virtual ~AliPHOSIndexToObject(){
+ // dtor
+ }
static AliPHOSIndexToObject * GetInstance(AliPHOS * det) ;
static AliPHOSIndexToObject * GetInstance() ;
AliRecPoint * GimeRecPoint(Int_t index, TString s) ;
AliPHOSTrackSegment * GimeTrackSegment(Int_t index) ;
+ AliPHOSIndexToObject & operator = (const AliPHOSIndexToObject & ) {
+ // assignement operator requested by coding convention
+ // but not needed
+ assert(0==1) ;
+ return *this ;
+ }
+
private:
AliPHOSIndexToObject(AliPHOS * det) ;
AliPHOS * fDetector ; // the detector
- TTree * fDigits ; // the digits tree
- // RecPointsList * fEmcList ; // array od EMC RecPoints
- TTree * fKine ; // the kine tree that contains primary particles
- // RecPointsList * fPpsdList ; // array od PPSD reconstructed points
- RecParticlesList * fRecParticlesList ; // array of reconstructed particles
TTree * fReconstruct ; // the reconstruction tree
- TrackSegmentsList * fTrackSegmentsList ; // array of track segments
- static AliPHOSIndexToObject * fObjGetter ; // pointer to the unique instance of the singleton
+ static AliPHOSIndexToObject * fgObjGetter ; // pointer to the unique instance of the singleton
ClassDef(AliPHOSIndexToObject,1) // Algorithm class that provides methods to retrieve objects from a list knowing the index