]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Introduction of equipment id map. The map is taken from simple ascii formatted file...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 May 2006 11:29:04 +0000 (11:29 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 May 2006 11:29:04 +0000 (11:29 +0000)
STEER/AliReconstruction.cxx
STEER/AliReconstruction.h

index 417388ef6409315e938868eb23038e84f29fc0f6..7d07674fe47b355bda07573429a0dcb7a589b0bf 100644 (file)
@@ -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;
index 01425659829768f870bf12742316924ac5ec8b83..b0d8acb90f8cae71fdaa756f659f09b35b7ebb5a 100644 (file)
@@ -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