]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstruction.h
Base class (AliMisaligner); each detector will provide its derived class,
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.h
index 5367c8ee63c18ec933752bf83523aeb103dfcfdd..3b3ea784b8bdc946182573f41219dfd05a322909 100644 (file)
@@ -40,6 +40,8 @@ class TMap;
 class AliRecoParam;
 class AliDetectorRecoParam;
 class AliRunInfo;
+class AliGRPObject;
+#include "AliQA.h"
 #include "AliEventInfo.h"
 #include "AliRecoParam.h"
 
@@ -73,16 +75,13 @@ 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);
 
   //*** Magnetic field setters
   void SetUniformFieldTracking(Bool_t flag=kTRUE){fUniformField=flag;} 
-  Bool_t 
-  SetFieldMap(Float_t l3Current=30000., Float_t diCurrent=6000., 
-             Float_t factor=1., 
-              const char *path="$(ALICE_ROOT)/data/maps/mfchebKGI_meas.root");
+  Bool_t SetFieldMap(Float_t l3Current=30000., Float_t diCurrent=6000., 
+                    Float_t l3Pol=1., Float_t dipPol=1., Float_t benergy=7000., 
+                    const Char_t* btype="pp",  
+                    const Char_t* path="$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root");
 
   //*** Global reconstruction flag setters
   void SetRunVertexFinder(Bool_t flag=kTRUE) {fRunVertexFinder=flag;};
@@ -94,9 +93,9 @@ public:
   void SetWriteAlignmentData(Bool_t flag=kTRUE){fWriteAlignmentData=flag;}
   void SetWriteESDfriend(Bool_t flag=kTRUE){fWriteESDfriend=flag;}
   void SetFillTriggerESD(Bool_t flag=kTRUE){fFillTriggerESD=flag;}
+  void SetDiamondProfileSPD(AliESDVertex *dp) {fDiamondProfileSPD=dp;}
   void SetDiamondProfile(AliESDVertex *dp) {fDiamondProfile=dp;}
   void SetDiamondProfileTPC(AliESDVertex *dp) {fDiamondProfileTPC=dp;}
-  void SetMeanVertexConstraint(Bool_t flag=kTRUE){fMeanVertexConstraint=flag;}
                   
   void SetCleanESD(Bool_t flag=kTRUE){fCleanESD=flag;}
   void SetUseHLTData(const char* detectors){fUseHLTData=detectors;}
@@ -129,23 +128,26 @@ public:
   virtual void   Terminate();
   virtual Bool_t Run(const char* input = NULL);
   void           Abort(const char *method, EAbort what);
+  virtual void  SetOption(const char* option) {
+    TSelector::SetOption(option);
+  }
 
   // Trackers
-  AliTracker* GetTracker(Int_t idx) { return fTracker[idx]; }
+  AliTracker* GetTracker(Int_t idx) const { return fTracker[idx]; }
   Bool_t      CreateTrackers(const TString& detectors);
   void        ImportRunLoader(AliRunLoader* rl) { fRunLoader = rl; }
 
   // Quality Assurance 
-  void    SetQACycles(const char * detector, const Int_t cycles) { fQACycles[GetDetIndex(detector)] = cycles ; }
+  void    SetQACycles(AliQA::DETECTORINDEX_t det, Int_t cycles) { fQACycles[det] = cycles ; }
+  void    SetQAWriteExpert(AliQA::DETECTORINDEX_t det) { fQAWriteExpert[det] = kTRUE ; }
   Bool_t  SetRunQA(TString detAndAction="ALL:ALL") ; 
   void    SetRunGlobalQA(Bool_t flag=kTRUE){fRunGlobalQA = flag;}
-  void    SetInLoopQA(Bool_t flag=kTRUE)   {fInLoopQA    = flag;} 
 
   // Plane Efficiency Evaluation
   void    SetRunPlaneEff(Bool_t flag=kFALSE)  {fRunPlaneEff = flag;}
 
   enum {
-    fgkNDetectors = 15   // number of detectors
+    kNDetectors = 15   // number of detectors
   };
   static Int_t   GetDetIndex(const char * detector);
 
@@ -155,9 +157,9 @@ private:
 
   void           InitRun(const char* input);
   void           InitRawReader(const char* input);
-  void                  InitCDB();
-  Bool_t        InitGRP();
-  void                  SetCDBLock();
+  void           InitCDB();
+  Bool_t         InitGRP();
+  void           SetCDBLock();
   Bool_t         SetRunNumberFromData();
   Bool_t         LoadCDB();
   Bool_t         RunLocalEventReconstruction(const TString& detectors);
@@ -173,7 +175,7 @@ private:
   Bool_t         IsSelected(TString detName, TString& detectors) const;
   Bool_t         InitRunLoader();
   AliReconstructor* GetReconstructor(Int_t iDet);
-  Bool_t         CreateVertexer();
+  AliVertexer*   CreateVertexer();
   void           CleanUp();
 
   //==========================================//
@@ -182,7 +184,6 @@ private:
   void           FillRawDataErrorLog(Int_t iEvent, AliESDEvent* esd);
 
   //Quality Assurance
-  const Int_t          GetQACycles(const char * detector) { return fQACycles[GetDetIndex(detector)] ; }
   void                 CheckQA() ;
 
   // Plane Efficiency evaluation
@@ -199,7 +200,6 @@ private:
 
   //*** Magnetic field map settings *******************
   Bool_t         fUniformField;       // uniform field tracking flag
-  AliMagF       *fForcedFieldMap;     //! independent, not GRP, field map
 
   //*** Global reconstruction flags *******************
   Bool_t         fRunVertexFinder;    // run the vertex finder
@@ -223,6 +223,7 @@ private:
   TString        fRunLocalReconstruction; // run the local reconstruction for these detectors
   TString        fRunTracking;        // run the tracking for these detectors
   TString        fFillESD;            // fill ESD for these detectors
+  TString        fLoadCDB;            // prefetch CDB entries and init reco-params for these detectors
   TString        fUseTrackingErrorsForAlignment; // for these detectors
   TString        fGAliceFileName;     // name of the galice file
   TString        fRawInput;           // name of input raw-data file or directory
@@ -233,7 +234,6 @@ private:
   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         
   TString        fUseHLTData;        // Detectors for which the HLT data is used as input
   AliRunInfo*    fRunInfo;            // an object which contains essential global conditions information
   AliEventInfo   fEventInfo;          // an object which contains essential event information
@@ -242,17 +242,16 @@ private:
   AliRawReader*  fRawReader;          //! current raw data reader
   AliRawReader*  fParentRawReader;    //! parent raw data reader in case of AliRawReaderHLT
 
-  static const char* fgkDetectorName[fgkNDetectors]; //! names of detectors
-  AliReconstructor*  fReconstructor[fgkNDetectors];  //! array of reconstructor objects
+  static const char* fgkDetectorName[kNDetectors]; //! names of detectors
+  AliReconstructor*  fReconstructor[kNDetectors];  //! array of reconstructor objects
   AliRecoParam   fRecoParam;                      // container for the reco-param objects for detectors
-  AliLoader*     fLoader[fgkNDetectors];   //! detector loaders
-  AliVertexer*   fVertexer;                //! vertexer for ITS
-  AliTracker*    fTracker[fgkNDetectors];  //! trackers
-  AliESDVertex*  fDiamondProfile;          // (x,y) diamond profile for AliVertexerTracks
+  AliLoader*     fLoader[kNDetectors];   //! detector loaders
+  AliTracker*    fTracker[kNDetectors];  //! trackers
+  AliESDVertex*  fDiamondProfileSPD;       // (x,y) diamond profile from SPD for AliITSVertexer3D(Z)
+  AliESDVertex*  fDiamondProfile;          // (x,y) diamond profile for AliVertexerTracks (ITS+TPC)
   AliESDVertex*  fDiamondProfileTPC;       // (x,y) diamond profile from TPC for AliVertexerTracks
-  Bool_t         fMeanVertexConstraint; // use fDiamondProfile in AliVertexerTracks
 
-  TMap*          fGRPData;              // Data from the GRP/GRP/Data CDB folder
+  AliGRPObject*  fGRPData;              // Data from the GRP/GRP/Data CDB folder
 
   TObjArray*    fAlignObjArray;      //! array with the alignment objects to be applied to the geometry
 
@@ -262,13 +261,13 @@ private:
   Bool_t        fSetRunNumberFromDataCalled;  //! flag to check if run number is already loaded from run loader
 
   //Quality Assurance
-  Int_t fQACycles[      fgkNDetectors]; // # events over which QA data are accumulated
+  Int_t  fQACycles[     AliQA::kNDET];  // # events over which QA data are accumulated
+  Bool_t fQAWriteExpert[AliQA::kNDET];  // Flag to save or not expert QA data
   TString               fQADetectors ;  // list of detectors to be QA'ed       
   AliQADataMakerSteer * fQASteer    ;   //! steering class to run QA
   TString               fQATasks ;      // list of QA tasks to be performed    
   Bool_t                fRunQA ;        // Run QA flag
   Bool_t                fRunGlobalQA;   // Run global QA flag
-  Bool_t                fInLoopQA;      // In-loop QA flag
   Bool_t                fSameQACycle;   //! open a new QA data file or not
   // Plane Efficiency Evaluation
   Bool_t         fRunPlaneEff ;      // Evaluate Plane Efficiency
@@ -287,7 +286,7 @@ private:
 
   TTree*              fChain;      //! The raw-data chain in case of AliRawReaderChain
 
-  ClassDef(AliReconstruction, 27)      // class for running the reconstruction
+  ClassDef(AliReconstruction, 30)      // class for running the reconstruction
 };
 
 #endif