From 350420932b00893b1d43ee95e5582710f4b6098a Mon Sep 17 00:00:00 2001 From: cvetan Date: Tue, 30 May 2006 11:29:04 +0000 Subject: [PATCH] Introduction of equipment id map. The map is taken from simple ascii formatted file. This feature shall be removed as soon as we get proper equipment ids from the DAQ. In order to set a mapping file one has to call SetEquipmentIdMap method of AliReconstruction --- STEER/AliReconstruction.cxx | 5 +++++ STEER/AliReconstruction.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index 417388ef640..7d07674fe47 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -170,6 +170,7 @@ AliReconstruction::AliReconstruction(const char* gAliceFilename, const char* cdb fFillESD("ALL"), fGAliceFileName(gAliceFilename), fInput(""), + fEquipIdMap(""), fFirstEvent(0), fLastEvent(-1), fCheckPointLevel(0), @@ -212,6 +213,7 @@ AliReconstruction::AliReconstruction(const AliReconstruction& rec) : fFillESD(rec.fFillESD), fGAliceFileName(rec.fGAliceFileName), fInput(rec.fInput), + fEquipIdMap(rec.fEquipIdMap), fFirstEvent(rec.fFirstEvent), fLastEvent(rec.fLastEvent), fCheckPointLevel(0), @@ -485,6 +487,9 @@ Bool_t AliReconstruction::Run(const char* input, fRawReader = new AliRawReaderDate(fileName); fRawReader->SelectEvents(7); } + if (!fEquipIdMap.IsNull() && fRawReader) + fRawReader->LoadEquipmentIdsMap(fEquipIdMap); + // get the run loader if (!InitRunLoader()) return kFALSE; diff --git a/STEER/AliReconstruction.h b/STEER/AliReconstruction.h index 01425659829..b0d8acb90f8 100644 --- a/STEER/AliReconstruction.h +++ b/STEER/AliReconstruction.h @@ -48,6 +48,7 @@ public: void SetGAliceFile(const char* fileName); void SetInput(const char* input) {fInput = input;}; + void SetEquipmentIdMap(const char *mapFile) {fEquipIdMap = mapFile;}; void SetEventRange(Int_t firstEvent = 0, Int_t lastEvent = -1) {fFirstEvent = firstEvent; fLastEvent = lastEvent;}; void SetOption(const char* detector, const char* option); @@ -142,6 +143,7 @@ private: TString fFillESD; // fill ESD for these detectors TString fGAliceFileName; // name of the galice file TString fInput; // name of input file or directory + 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. Int_t fCheckPointLevel; // level of ESD check points -- 2.39.3