X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliReconstruction.h;h=06edfd04cfe42fc50a8cd3b267d330233d6cef2d;hb=91bad62dd34a341d6bd7c932cc38679158e72fe6;hp=8d235e18151dd7ab41f6dbf9d5329c1beae7c560;hpb=44e45fac51a83f5f750bd60b54eb43e3ad9d0caf;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliReconstruction.h b/STEER/AliReconstruction.h index 8d235e18151..06edfd04cfe 100644 --- a/STEER/AliReconstruction.h +++ b/STEER/AliReconstruction.h @@ -19,6 +19,7 @@ #include #include +#include #include class AliReconstructor; @@ -35,13 +36,17 @@ class AliVertexerTracks; class TFile; class TTree; class TList; -class AliQADataMakerSteer; +class AliQAManager; class TMap; class AliRecoParam; class AliDetectorRecoParam; class AliRunInfo; class AliGRPObject; -#include "AliQA.h" +class THashTable; +class AliTriggerRunScalers; +class AliCTPTimeParams; + +#include "AliQAv1.h" #include "AliEventInfo.h" #include "AliRecoParam.h" @@ -52,6 +57,7 @@ public: void SetGAliceFile(const char* fileName); void SetInput(const char* input); + void SetOutput(const char* output); void SetEquipmentIdMap(const char *mapFile) {fEquipIdMap = mapFile;}; void SetEventRange(Int_t firstEvent = 0, Int_t lastEvent = -1) @@ -75,16 +81,6 @@ 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"); //*** Global reconstruction flag setters void SetRunVertexFinder(Bool_t flag=kTRUE) {fRunVertexFinder=flag;}; @@ -96,9 +92,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;} @@ -136,51 +132,67 @@ public: } // 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(AliQA::DETECTORINDEX_t det, Int_t cycles) { fQACycles[det] = cycles ; } - void SetQAWriteExpert(AliQA::DETECTORINDEX_t det) { fQAWriteExpert[det] = kTRUE ; } + void SetQACycles(AliQAv1::DETECTORINDEX_t det, Int_t cycles) { fQACycles[det] = cycles ; } + void SetQAWriteExpert(AliQAv1::DETECTORINDEX_t det) { fQAWriteExpert[det] = kTRUE ; } Bool_t SetRunQA(TString detAndAction="ALL:ALL") ; void SetRunGlobalQA(Bool_t flag=kTRUE){fRunGlobalQA = flag;} - + void SetQARefDefaultStorage(const char* uri); + 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;} enum { - fgkNDetectors = 15 // number of detectors + kNDetectors = 15 // number of detectors }; 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(); void SetCDBLock(); 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 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; Bool_t InitRunLoader(); AliReconstructor* GetReconstructor(Int_t iDet); - Bool_t CreateVertexer(); + AliVertexer* CreateVertexer(); void CleanUp(); + Bool_t ParseOutput(); + //==========================================// void WriteAlignmentData(AliESDEvent* esd); @@ -201,10 +213,6 @@ private: const char *MatchDetectorList(const char *detectorList, UInt_t detectorMask); - //*** 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 Bool_t fRunVertexFinderTracks; // run the vertex finder with tracks @@ -231,6 +239,11 @@ private: TString fUseTrackingErrorsForAlignment; // for these detectors TString fGAliceFileName; // name of the galice file TString fRawInput; // name of input raw-data file or directory + 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. @@ -238,43 +251,47 @@ 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 - + 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 - 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 + AliTracker* fSPDTrackleter; //! trackleter [for SPD Plane Efficiency purposes] + 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 + THashTable* fListOfCosmicTriggers; // list of cosmic triggers as defined by trigger coordination AliGRPObject* fGRPData; // Data from the GRP/GRP/Data CDB folder TObjArray* fAlignObjArray; //! array with the alignment objects to be applied to the geometry TString fCDBUri; //! Uri of the default CDB storage + TString fQARefUri; //! Uri of the default QA reference storage TObjArray fSpecCDBUri; //! Array with detector specific CDB storages Bool_t fInitCDBCalled; //! flag to check if CDB storages are already initialized Bool_t fSetRunNumberFromDataCalled; //! flag to check if run number is already loaded from run loader //Quality Assurance - 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 + Int_t fQACycles[ AliQAv1::kNDET]; // # events over which QA data are accumulated + Bool_t fQAWriteExpert[AliQAv1::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 fSameQACycle; //! open a new QA data file or not + Bool_t fInitQACalled; //! control of QA intialisation + Bool_t fWriteQAExpertData ; //! decides wheter or not to write experts QA data; true by default + // Plane Efficiency Evaluation Bool_t fRunPlaneEff ; // Evaluate Plane Efficiency @@ -292,7 +309,7 @@ private: TTree* fChain; //! The raw-data chain in case of AliRawReaderChain - ClassDef(AliReconstruction, 27) // class for running the reconstruction + ClassDef(AliReconstruction, 34) // class for running the reconstruction }; #endif