Converted to AOD schema
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderKineTree.h
index 638e66c03a5f48e9bba88dd3bb3104d70d1b749d..10a501de0952693be19b73f55cba928323d083e7 100644 (file)
@@ -1,11 +1,21 @@
 #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>
 
 class TFile;
 class AliStack;
 #include "AliHBTReader.h"
 #include <TString.h>
 
 class TFile;
 class AliStack;
+class AliRunLoader;
 
 class AliHBTReaderKineTree: public AliHBTReader
  {
 
 class AliHBTReaderKineTree: public AliHBTReader
  {
@@ -14,29 +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
-
-    TFile*       OpenFile(Int_t);
-    AliStack*    GetStack(Int_t,TFile*);
-
-    Bool_t fIsRead;//!flag indicating if the data are already read
-   private:
+    Int_t         ReadNext();//reads tracks and particles and puts them in runs
+    Int_t         OpenNextFile();
    
    
-   public:
-     ClassDef(AliHBTReaderKineTree,1)
+    TString       fFileName;//file name 
+    AliRunLoader* fRunLoader;//!Pointer to loader
+    
+    static const TString fgkEventFolderName; //Event folder name that session are mounter
+    
+   private:
+     ClassDef(AliHBTReaderKineTree,2)
  };
 
 #endif
  };
 
 #endif