]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSIndexToObject.h
a quick update to correct a few coding conventions but RS2 and GC2 have been ignored
[u/mrichter/AliRoot.git] / PHOS / AliPHOSIndexToObject.h
index 170e0cd86921126d8fbc93227f564001a3501004..1079fbf6410bda790bc1645653efd64d937d7311 100644 (file)
@@ -8,7 +8,7 @@
 //_________________________________________________________________________
 //  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)
 
 
@@ -36,8 +36,19 @@ class AliPHOSIndexToObject : public TObject {
 
 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() ; 
@@ -48,20 +59,21 @@ public:
   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