]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstruction.h
General data base configuration class for DCS sensors (Haavard)
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.h
index de2f61b7946fb102dc7a4b5d9250c1a9c1b6319b..0db9d615e0cc76f9760fc83b6186cf8f1a5586cd 100644 (file)
@@ -27,8 +27,10 @@ class AliRawReader;
 class AliLoader;
 class AliTracker;
 class AliVertexer;
-class AliESD;
+class AliESDVertex;
+class AliESDEvent;
 class TFile;
+class TTree;
 
 class AliRunTag;
 class AliLHCTag;
@@ -51,6 +53,8 @@ public:
   void           SetEquipmentIdMap(const char *mapFile) {fEquipIdMap = mapFile;};
   void           SetEventRange(Int_t firstEvent = 0, Int_t lastEvent = -1) 
     {fFirstEvent = firstEvent; fLastEvent = lastEvent;};
+  void           SetNumberOfEventsPerFile(UInt_t nEvents)
+    {fNumberOfEventsPerFile = nEvents;};
   void           SetOption(const char* detector, const char* option);
 
   void           SetRunLocalReconstruction(const char* detectors) {
@@ -65,7 +69,9 @@ public:
   void           SetLoadAlignFromCDB(Bool_t load)  {fLoadAlignFromCDB = load;};
   void           SetLoadAlignData(const char* detectors) 
     {fLoadAlignData = detectors;};
-
+  void           SetESDParLocation(const char *c){fESDPar = c;}
+  TNamed *CopyFileToTNamed(TString fPath,TString fName);
+  void  TNamedToFile(TTree* fTree, TString fName);
 
   //*** Global reconstruction flag setters
   void SetUniformFieldTracking(Bool_t flag=kTRUE){fUniformField=flag;} 
@@ -74,8 +80,9 @@ public:
   void SetStopOnError(Bool_t flag=kTRUE) {fStopOnError=flag;}
   void SetWriteAlignmentData(Bool_t flag=kTRUE){fWriteAlignmentData=flag;}
   void SetWriteESDfriend(Bool_t flag=kTRUE){fWriteESDfriend=flag;}
+  void SetWriteAOD(Bool_t flag=kTRUE){fWriteAOD=flag;}
   void SetFillTriggerESD(Bool_t flag=kTRUE){fFillTriggerESD=flag;}
-
+  void SetDiamondProfile(AliESDVertex *dp) {fDiamondProfile=dp;}
                   
   void           SetCheckPointLevel(Int_t checkPointLevel)
     {fCheckPointLevel = checkPointLevel;}
@@ -86,30 +93,25 @@ public:
 
   Bool_t SetRunNumber();
 
-  Bool_t SetAlignObjArraySingleDet(const char* detName);
   Bool_t MisalignGeometry(const TString& detectors);
 
   void           SetAlignObjArray(TObjArray *array)
                    {fAlignObjArray = array;
                   fLoadAlignFromCDB = kFALSE;}
-  Bool_t         ApplyAlignObjsToGeom(TObjArray* alObjArray);
 
-  virtual Bool_t Run(const char* input, 
-                    Int_t firstEvent, Int_t lastEvent = -1);
-  Bool_t         Run(const char* input = NULL)
-    {return Run(input, fFirstEvent, fLastEvent);};
-  Bool_t         Run(Int_t firstEvent, Int_t lastEvent = -1)
-    {return Run(NULL, firstEvent, lastEvent);};
+  virtual Bool_t Run(const char* input = NULL);
 
 
 private:
   Bool_t         RunLocalReconstruction(const TString& detectors);
   Bool_t         RunLocalEventReconstruction(const TString& detectors);
-  Bool_t         RunVertexFinder(AliESD*& esd);
-  Bool_t         RunHLTTracking(AliESD*& esd);
-  Bool_t         RunTracking(AliESD*& esd);
-  Bool_t         FillESD(AliESD*& esd, const TString& detectors);
-  Bool_t         FillTriggerESD(AliESD*& esd);
+  Bool_t         RunVertexFinder(AliESDEvent*& esd);
+  Bool_t         RunHLTTracking(AliESDEvent*& esd);
+  Bool_t         RunMuonTracking(AliESDEvent*& esd);
+  Bool_t         RunTracking(AliESDEvent*& esd);
+  Bool_t         FillESD(AliESDEvent*& esd, const TString& detectors);
+  Bool_t         FillTriggerESD(AliESDEvent*& esd);
+  Bool_t         FillRawEventHeaderESD(AliESDEvent*& esd);
 
   Bool_t         IsSelected(TString detName, TString& detectors) const;
   Bool_t         InitRunLoader();
@@ -118,24 +120,28 @@ private:
   Bool_t         CreateTrackers(const TString& detectors);
   void           CleanUp(TFile* file = NULL, TFile* fileOld = NULL);
 
-  Bool_t         ReadESD(AliESD*& esd, const char* recStep) const;
-  void           WriteESD(AliESD* esd, const char* recStep) const;
+  Bool_t         ReadESD(AliESDEvent*& esd, const char* recStep) const;
+  void           WriteESD(AliESDEvent* esd, const char* recStep) const;
 
  
   //===========================================//
-  void           CreateTag(TFile* file);
+  void           CreateTag(const char *fESDfilename);
   //==========================================//
+  void           ESDFile2AODFile(TFile* esdFile, TFile* aodFile);
 
-  void           WriteAlignmentData(AliESD* esd);
+  void           WriteAlignmentData(AliESDEvent* esd);
 
+  void           FillRawDataErrorLog(Int_t iEvent, AliESDEvent* esd);
 
   //*** Global reconstruction flags *******************
   Bool_t         fUniformField;       // uniform field tracking flag
   Bool_t         fRunVertexFinder;    // run the vertex finder
   Bool_t         fRunHLTTracking;     // run the HLT tracking
+  Bool_t         fRunMuonTracking;     // run the HLT tracking
   Bool_t         fStopOnError;        // stop or continue on errors
   Bool_t         fWriteAlignmentData; // write track space-points flag
   Bool_t         fWriteESDfriend;     // write ESD friend flag
+  Bool_t         fWriteAOD;           // write AOD flag
   Bool_t         fFillTriggerESD;     // fill trigger info into ESD
 
   TString        fRunLocalReconstruction; // run the local reconstruction for these detectors
@@ -146,10 +152,13 @@ private:
   TString        fEquipIdMap;         // name of file with equipment id map
   Int_t          fFirstEvent;         // index of first event to be reconstr.
   Int_t          fLastEvent;          // index of last event to be reconstr.
+  UInt_t         fNumberOfEventsPerFile; // number of events per file in case of raw-data reconstruction
   Int_t          fCheckPointLevel;    // level of ESD check points
   TObjArray      fOptions;            // options for reconstructor objects
   Bool_t         fLoadAlignFromCDB;   // Load alignment data from CDB and apply it to geometry or not
   TString        fLoadAlignData;      // Load alignment data from CDB for these detectors
+  TString        fESDPar;             // String where the esd.par is stored, will be attached to the tree         
+
 
   AliRunLoader*  fRunLoader;          //! current run loader object
   AliRawReader*  fRawReader;          //! current raw data reader
@@ -160,13 +169,14 @@ private:
   AliLoader*     fLoader[fgkNDetectors];   //! detector loaders
   AliVertexer*   fVertexer;                //! vertexer for ITS
   AliTracker*    fTracker[fgkNDetectors];  //! trackers
+  AliESDVertex*  fDiamondProfile;          // (x,y) diamond profile for AliVertexerTracks
 
   TObjArray*    fAlignObjArray;      // array with the alignment objects to be applied to the geometry
 
   TString       fCDBUri;             // Uri of the default CDB storage
   TObjArray      fSpecCDBUri;         // Array with detector specific CDB storages
 
-  ClassDef(AliReconstruction, 8)      // class for running the reconstruction
+  ClassDef(AliReconstruction, 11)      // class for running the reconstruction
 };
 
 #endif