]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSIndexToObject.h
Corrections to the custom Streamer
[u/mrichter/AliRoot.git] / PHOS / AliPHOSIndexToObject.h
index 7e6c219f4cc39b2ffd38a16251fb6397ea1a0e8c..a1b7f97a4d7a684029fbc56e28e8f161b0d3af1c 100644 (file)
@@ -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,6 +59,13 @@ public:
   AliRecPoint *         GimeRecPoint(Int_t index, TString s) ; 
   AliPHOSTrackSegment * GimeTrackSegment(Int_t index) ;
   
+  AliPHOSIndexToObject & operator = (const AliPHOSIndexToObject & rvalue) {
+    // assignement operator requested by coding convention
+    // but not needed
+    assert(0==1) ;
+    return *this ; 
+  }
+
  private:
   
   AliPHOSIndexToObject(AliPHOS * det) ; 
@@ -55,7 +73,7 @@ public:
   AliPHOS * fDetector ;                    // the detector 
   TTree * fReconstruct ;                   // the reconstruction tree  
 
-  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