Added extra indices to the correction files
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Aug 2009 12:01:08 +0000 (12:01 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Aug 2009 12:01:08 +0000 (12:01 +0000)
FMD/analysis/AliFMDAnaParameters.cxx
FMD/analysis/AliFMDAnaParameters.h

index 2879243..779241c 100644 (file)
@@ -74,7 +74,8 @@ AliFMDAnaParameters::AliFMDAnaParameters() :
   fProcessHits(kFALSE),
   fTrigger(kMB1),
   fEnergy(k10000),
-  fMagField(k5G)
+  fMagField(k5G),
+  fSpecies(kPP)
 {
   
   
@@ -88,11 +89,35 @@ char* AliFMDAnaParameters::GetPath(const char* species) {
   char* path ;
   
   if(species == fgkBackgroundID)
-    path = Form("%s/%s_%d_%d_%d.root",fBackgroundPath.Data(),fgkBackgroundID,fEnergy,fTrigger,fMagField);
+    path = Form("%s/%s_%d_%d_%d.root",
+               fBackgroundPath.Data(),
+               fgkBackgroundID,
+               fEnergy,
+               fTrigger,
+               fMagField,
+               fSpecies,
+               0,
+               0);
   if(species == fgkEnergyDistributionID)
-    path = Form("%s/%s_%d_%d_%d.root",fEnergyPath.Data(),fgkEnergyDistributionID,fEnergy,fTrigger,fMagField);
+    path = Form("%s/%s_%d_%d_%d.root",
+               fEnergyPath.Data(),
+               fgkEnergyDistributionID,
+               fEnergy,
+               fTrigger,
+               fMagField,
+               fSpecies,
+               0,
+               0);
   if(species == fgkEventSelectionEffID)
-    path = Form("%s/%s_%d_%d_%d.root",fEventSelectionEffPath.Data(),fgkEventSelectionEffID,fEnergy,fTrigger,fMagField);
+    path = Form("%s/%s_%d_%d_%d.root",
+               fEventSelectionEffPath.Data(),
+               fgkEventSelectionEffID,
+               fEnergy,
+               fTrigger,
+               fMagField,
+               fSpecies,
+               0,
+               0);
 
   return path;
 }
index 759f93f..6b256be 100644 (file)
@@ -63,6 +63,8 @@ public:
   
   enum MagField {k0G, k5G};
   
+  enum Species {kPP, kPbPb};
+  
   /** Singleton access
       @return  single to */
   static AliFMDAnaParameters* Instance();
@@ -125,7 +127,8 @@ protected:
       fProcessHits(o.fProcessHits),
       fTrigger(o.fTrigger),
       fEnergy(o.fEnergy),
-      fMagField(o.fMagField)
+      fMagField(o.fMagField),
+      fSpecies(o.fSpecies)
   {}
   AliFMDAnaParameters& operator=(const AliFMDAnaParameters&) { return *this; }
   virtual ~AliFMDAnaParameters() {}
@@ -166,6 +169,7 @@ protected:
   Trigger  fTrigger;
   Energy   fEnergy;
   MagField fMagField;
+  Species  fSpecies;
   
   ClassDef(AliFMDAnaParameters,0) // Manager of parameters
 };