]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliReaderESD.h
updates to handle both types of calibration objects (online & offline)
[u/mrichter/AliRoot.git] / ANALYSIS / AliReaderESD.h
index fb5f72bb17b86d794e8716c5b00a7eae8bbdd634..4d0e73ec015e9498c87874e8f2f1b370f2883c7e 100644 (file)
@@ -8,11 +8,12 @@
 // This reader reads tracks from Event Summary Data                        //
 // do not read particles                                                   //
 // Piotr.Skowronski@cern.ch                                                //
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html    //
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html    //
 //                                                                         //
 /////////////////////////////////////////////////////////////////////////////
 
 #include "AliReader.h"
+#include "AliTrackPoints.h"
 #include <TString.h>
 class TFile;
 class AliRunLoader;
@@ -51,7 +52,8 @@ class AliReaderESD: public AliReader
     void          SetNumberOfTrackPoints(Int_t n = 5,Float_t dr = 30.0) {fNTrackPoints = n; fdR = dr;}
     Int_t         GetNumberOfTrackPoints() const {return fNTrackPoints;}
     void          SetClusterMap(Bool_t flag = kTRUE){fClusterMap = flag;}
-    void          SetITSTrackPoints(Bool_t flag = kTRUE){fITSTrackPoints = flag;}
+    void          SetITSTrackPoints(Bool_t flag, AliTrackPoints::ETypes type)
+                                   {fITSTrackPoints = flag; fITSTrackPointsType = type;}
     void          MustTPC(Bool_t flag){fMustTPC = flag;}
 
     void          SetReadCentralBarrel(Bool_t flag){fReadCentralBarrel = flag;}
@@ -88,10 +90,12 @@ class AliReaderESD: public AliReader
     Bool_t        fClusterMap;//Flag indicating if Claster Map should be created for each track
                               //Claster map is needed for Anti-Splitting Cut
 
-    Bool_t        fITSTrackPoints;//Flag indicalting if track positions in ITS are to be read
+    
+    Bool_t        fITSTrackPoints; //Flag indicalting if track positions in ITS are to be read
                                   //currently we use only position at first pixels wich are
                      //used by anti-merging cut in non-id analysis
-
+    AliTrackPoints::ETypes  fITSTrackPointsType;//defines the way track points are calculated
+    
     Bool_t        fMustTPC;// must be reconstructed in TPC -> reject tracks reconstructed ITS stand alone
 
     Bool_t        fReadCentralBarrel; // Flag for reading ESD central track