]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/src/AliLevel3.h
Introduction of the online monitoring code into the alimdc package. Fixed some memory...
[u/mrichter/AliRoot.git] / HLT / src / AliLevel3.h
index e236f848e99fce3a5d73327fea5eb26c1d33e321..8873f17d546aefb47105ff52f0efb2d233bc1594 100644 (file)
@@ -8,6 +8,10 @@
 #include <TFile.h>
 #endif
 
+#ifdef use_newio
+class AliRunLoader;
+#endif
+
 #include "AliL3DigitData.h"
 #include "AliL3RootTypes.h"
 
@@ -26,12 +30,8 @@ class TDirectory;
 class AliL3ClustFinderNew;
 class AliL3Merger;
 class AliL3InterMerger;
-
-//#ifdef use_aliroot
 class AliL3FileHandler;
-//#else
 class AliL3MemHandler;
-//#endif
 class AliL3Benchmark;
 
 #ifdef no_root
@@ -41,7 +41,7 @@ class AliLevel3 : public TObject {
 #endif
 
  private:
-  UInt_t fNTrackData;
+  UInt_t fNTrackData; //count data
   AliL3TrackSegmentData* fTrackData; //!
   AliL3ConfMapper *fTracker; //!
   AliL3Vertex *fVertex; //! 
@@ -50,46 +50,39 @@ class AliLevel3 : public TObject {
   AliL3GlobalMerger *fGlobalMerger; //!
   AliL3InterMerger *fInterMerger; //!
   AliL3ClustFinderNew *fClusterFinder; //! 
-  //#ifdef use_aliroot
-  //AliL3FileHandler *fFileHandler; //!
-  ///#else
   AliL3MemHandler *fFileHandler; //!
-  //#endif
   AliL3Benchmark *fBenchmark;//!
 
-  Int_t fEvent;
-  Int_t fNPatch;
-  Int_t fRow[6][2];
-  Float_t fEta[2];
+  Int_t fEvent;    //event number
+  Int_t fNPatch;   //number of patches
+  Int_t fRow[6][2];//rows
+  Float_t fEta[2]; //eta
   
-#ifdef no_root
-  FILE *fInputFile;
-#else
   Char_t *fInputFile;//!
-  TDirectory *savedir;
-  //TFile *fInputFile;
+#ifdef use_newio
+  AliRunLoader *fRunLoader; //runloader
 #endif
-
-  Char_t fPath[256];
-  Char_t fWriteOutPath[256];
+  Char_t fPath[256]; //path to aliroot
+  Char_t fWriteOutPath[256]; //path to store
   
-  Bool_t fDoRoi;
-  Bool_t fFindVertex;
-  Bool_t fDoNonVertex;
-  Bool_t fPileUp;
-  Bool_t fNoCF;
+  Bool_t fDoRoi; //do region of interest
+  Bool_t fFindVertex; //find vertex
+  Bool_t fDoNonVertex;//do non vertex pass
+  Bool_t fPileUp; //do pileup
+  Bool_t fNoCF; //dont do cluster finder
   
-  Bool_t fUseBinary;
-  Bool_t fWriteOut;
-
-  Bool_t fClusterDeconv;
-  Float_t fXYClusterError;
-  Float_t fZClusterError;
+  Bool_t fUseBinary; //use binary input
+  Bool_t fWriteOut; //write tracks
+  
+  static Bool_t fgDoVertexFit; //do vertex fix
 
+  Bool_t fClusterDeconv; //do cluster deconv
+  Float_t fXYClusterError; //Cluster error
+  Float_t fZClusterError; //Cluster error
 
   void WriteSpacePoints(UInt_t npoints,AliL3SpacePointData *points,
-                                          Int_t slice,Int_t patch);
-  Int_t WriteTracks(char *filename,AliL3Merger *merger,char opt='o');  
+                        Int_t slice,Int_t patch) const;
+  Int_t WriteTracks(char *filename,AliL3Merger *merger,char opt='o') const;  
   void WriteResults();
   void FitGlobalTracks();
   void SetPath(char *p){sprintf(fPath,"%s",p);}
@@ -97,11 +90,12 @@ class AliLevel3 : public TObject {
  public:
   AliLevel3 ();
   AliLevel3(Char_t *infile);
-  //AliLevel3(TFile *in);
+#ifdef use_newio
+  AliLevel3(AliRunLoader *rl);
+#endif
   virtual ~AliLevel3();
-  enum EFileType {kBinary, kBinary8, kRoot, kRaw};
+  enum EFileType {kBinary, kBinary8, kRoot, kRaw, kDate, kRunLoader};
   void Init(Char_t *path,EFileType filetype=kBinary,Int_t npatches=6);
-  //void Init(Char_t *path,Bool_t binary=kTRUE,Int_t npatches=6);
   void SetMergerParameters(Double_t maxy=1.2,Double_t maxz=1.6,Double_t maxkappa=0.003,
                           Double_t maxpsi=0.02,Double_t maxtgl=0.03);
   void SetTrackerParam(Int_t phi_segments=50,Int_t eta_segments=100,
@@ -125,7 +119,9 @@ class AliLevel3 : public TObject {
   void NoCF() {fNoCF=kTRUE;}
   void DoRoi(Float_t e0=0.4,Float_t e1=0.5){fEta[0]=e0;fEta[1]=e1;fDoRoi=kTRUE;}
   void WriteFiles(Char_t *path="./"){fWriteOut = kTRUE; sprintf(fWriteOutPath,"%s",path);}
-  //void UseBinaryInput(char *path){SetPath(path);fUseBinary=kTRUE;}
+  
+  static void SetVertexFit(Bool_t f)   {fgDoVertexFit=f;}
+  static Bool_t DoVertexFit()          {return fgDoVertexFit;}
 
   ClassDef(AliLevel3,1) //Interface class for Level3-tracking
 };