]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstruction.h
Do not reset a zero pointer to MC info
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.h
index 308658cd1538fa614b7479c323d046d2069c6480..87cd591deb0da3d8a7cae6041535f734f3779744 100644 (file)
@@ -32,6 +32,7 @@ class AliVertexer;
 class AliESDVertex;
 class AliESDEvent;
 class AliESDfriend;
+class AliESDpid;
 class AliVertexerTracks;
 class TFile;
 class TTree;
@@ -44,10 +45,11 @@ class AliRunInfo;
 class AliGRPObject;
 class THashTable;
 class AliTriggerRunScalers;
+class AliCTPTimeParams;
+
 #include "AliQAv1.h"
 #include "AliEventInfo.h"
 #include "AliRecoParam.h"
-#include "AliTriggerRunScalers.h"
 
 class AliReconstruction: public TSelector {
 public:
@@ -81,13 +83,6 @@ public:
   void           SetLoadAlignData(const char* detectors) 
     {fLoadAlignData = detectors;};
 
-  //*** Magnetic field setters
-  Bool_t SetFieldMap(Float_t l3Current=30000., Float_t diCurrent=6000., 
-                    Float_t l3Pol=-1., Float_t dipPol=-1.,
-                    Int_t convention=0, Bool_t uniform = kFALSE, 
-                    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;};
   void SetRunVertexFinderTracks(Bool_t flag=kTRUE) {fRunVertexFinderTracks=flag;};
@@ -151,7 +146,10 @@ public:
   void    InitQA();
   void    MergeQA(const char *fileName = NULL); 
   void    SetWriteQAExpert() { fWriteQAExpertData = kTRUE ; }
-
+  Bool_t  IsRunQA() { return fRunQA ; } 
+  Bool_t  IsRunGlobalQA() { return fRunGlobalQA ; }
+  Bool_t  IsInTasks(AliQAv1::TASKINDEX_t tsk) { return fQATasks.Contains(Form("%d", tsk)) ; }
+  
   // Plane Efficiency Evaluation
   void    SetRunPlaneEff(Bool_t flag=kFALSE)  {fRunPlaneEff = flag;}
 
@@ -160,11 +158,14 @@ public:
   };
   static Int_t   GetDetIndex(const char * detector);
 
+protected:
+  virtual Bool_t ProcessEvent(void* event);
+  void           InitRun(const char* input);
+
 private:
   AliReconstruction(const AliReconstruction& rec);
   AliReconstruction& operator = (const AliReconstruction& rec);
 
-  void           InitRun(const char* input);
   void           InitRawReader(const char* input);
   void           InitCDB();
   Bool_t         InitGRP();
@@ -172,15 +173,17 @@ private:
   Bool_t         SetRunNumberFromData();
   Bool_t         LoadCDB();
   Bool_t         LoadTriggerScalersCDB();
+  Bool_t         LoadCTPTimeParamsCDB();
   Bool_t         RunLocalEventReconstruction(const TString& detectors);
   Bool_t         RunVertexFinder(AliESDEvent*& esd);
   Bool_t         RunHLTTracking(AliESDEvent*& esd);
   Bool_t         RunMuonTracking(AliESDEvent*& esd);
   Bool_t         RunSPDTrackleting(AliESDEvent*& esd);
-  Bool_t         RunTracking(AliESDEvent*& esd);
+  Bool_t         RunTracking(AliESDEvent*& esd, AliESDpid &PID);
   Bool_t         CleanESD(AliESDEvent *esd);
   Bool_t         FillESD(AliESDEvent*& esd, const TString& detectors);
   Bool_t         FillTriggerESD(AliESDEvent*& esd);
+  Bool_t         FillTriggerScalers(AliESDEvent*& esd);
   Bool_t         FillRawEventHeaderESD(AliESDEvent*& esd);
 
   Bool_t         IsSelected(TString detName, TString& detectors) const;
@@ -189,6 +192,8 @@ private:
   AliVertexer*   CreateVertexer();
   void           CleanUp();
 
+  Bool_t         ParseOutput();
+
   //==========================================//
   void           WriteAlignmentData(AliESDEvent* esd);
 
@@ -235,7 +240,11 @@ private:
   TString        fUseTrackingErrorsForAlignment; // for these detectors
   TString        fGAliceFileName;     // name of the galice file
   TString        fRawInput;           // name of input raw-data file or directory
-  TUrl           fESDOutput;          //! name of output ESD file
+  TString        fESDOutput;          //! name of output ESD file
+  TString        fProofOutputFileName;//! name of output file in PROOF mode
+  TString        fProofOutputLocation;//! output location in PROOF mode
+  Bool_t         fProofOutputDataset; //! keep output file in PROOF mode in dataset or merge
+  TString        fProofOutputArchive; //! list of file to be kept in output zip archive in PROOF mode
   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.
@@ -247,6 +256,7 @@ private:
   AliRunInfo*    fRunInfo;            // an object which contains essential global conditions information
   AliEventInfo   fEventInfo;          // an object which contains essential event information
   AliTriggerRunScalers* fRunScalers;  // an object which contains the trigger counters for xsection
+  AliCTPTimeParams* fCTPTimeParams;   // an object which contains the trigger delays
   AliRunLoader*  fRunLoader;          //! current run loader object
   AliRawReader*  fRawReader;          //! current raw data reader
   AliRawReader*  fParentRawReader;    //! parent raw data reader in case of AliRawReaderHLT
@@ -292,7 +302,9 @@ private:
   AliESDEvent*         fhltesd;     //! Pointer to the HLT ESD event object
   AliESDfriend*        fesdf;       //! Pointer to the ESD friend object
   TFile*               ffile;       //! Pointer to the ESD file
+  TFile*               ffileF;      //! Pointer to the ESD friend file
   TTree*               ftree;       //! Pointer to the ESD tree
+  TTree*               ftreeF;      //! Pointer to the ESD friend tree
   TTree*               fhlttree;    //! Pointer to the HLT ESD tree
   AliVertexerTracks*   ftVertexer;  //! Pointer to the vertexer based on ESD tracks
   Bool_t               fIsNewRunLoader; // galice.root created from scratch (real raw data case)