Converted to AOD schema
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderKineTree.h
index 447578304a158659c63b406ffb7beaa793d229e9..10a501de0952693be19b73f55cba928323d083e7 100644 (file)
@@ -1,6 +1,15 @@
 #ifndef ALIHBTREADERKINETREE_H
 #define ALIHBTREADERKINETREE_H
 #ifndef ALIHBTREADERKINETREE_H
 #define ALIHBTREADERKINETREE_H
-
+//_______________________________________________________________________
+/////////////////////////////////////////////////////////////////////////
+//
+// class AliHBTReaderKineTree
+//
+// Reader for Kinematics
+//
+// Piotr.Skowronski@cern.ch
+//
+/////////////////////////////////////////////////////////////////////////
 #include "AliHBTReader.h"
 #include <TString.h>
 
 #include "AliHBTReader.h"
 #include <TString.h>
 
@@ -15,31 +24,28 @@ class AliHBTReaderKineTree: public AliHBTReader
     
     AliHBTReaderKineTree(TString&);
     AliHBTReaderKineTree(TObjArray*,const Char_t *filename="galice.root");
     
     AliHBTReaderKineTree(TString&);
     AliHBTReaderKineTree(TObjArray*,const Char_t *filename="galice.root");
+    AliHBTReaderKineTree(const AliHBTReaderKineTree& in);
 
 
-    virtual ~AliHBTReaderKineTree(){}
-    
-    Int_t        Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
-
-    AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
-    AliHBTEvent* GetTrackEvent(Int_t){return 0x0;}//returns pointer to event with particles
-    Int_t        GetNumberOfPartEvents();//returns number of particle events
-    Int_t        GetNumberOfTrackEvents(){return 0;}//returns number of track events
+    virtual ~AliHBTReaderKineTree();
 
 
+    AliHBTReaderKineTree& operator=(const AliHBTReaderKineTree& in);
+    
+    void          Rewind();
+    
+    Bool_t        ReadsTracks() const {return kFALSE;}
+    Bool_t        ReadsParticles() const {return kTRUE;}
     
    protected:
     
    protected:
-    TString       fFileName;
-    AliHBTRun*    fParticles; //!simulated particles
-
-    AliRunLoader* OpenFile(Int_t);
-
-    Bool_t fIsRead;//!flag indicating if the data are already read
+    Int_t         ReadNext();//reads tracks and particles and puts them in runs
+    Int_t         OpenNextFile();
+   
+    TString       fFileName;//file name 
+    AliRunLoader* fRunLoader;//!Pointer to loader
     
     
-    static const TString fgkEventFolderName;
+    static const TString fgkEventFolderName; //Event folder name that session are mounter
     
    private:
     
    private:
-   
-   public:
-     ClassDef(AliHBTReaderKineTree,1)
+     ClassDef(AliHBTReaderKineTree,2)
  };
 
 #endif
  };
 
 #endif