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 2879243a83904a8f3e53d75d148ba60c040a71f8..779241ce73a65fd98fe42f9f97d2c58b605dc914 100644 (file)
@@ -74,7 +74,8 @@ AliFMDAnaParameters::AliFMDAnaParameters() :
   fProcessHits(kFALSE),
   fTrigger(kMB1),
   fEnergy(k10000),
   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)
   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)
   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)
   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;
 }
 
   return path;
 }
index 759f93f934858c1a7a0d43744714fe10acac5acc..6b256becbb6ceb984b36a3b0a10bc108ca51eee9 100644 (file)
@@ -63,6 +63,8 @@ public:
   
   enum MagField {k0G, k5G};
   
   
   enum MagField {k0G, k5G};
   
+  enum Species {kPP, kPbPb};
+  
   /** Singleton access
       @return  single to */
   static AliFMDAnaParameters* Instance();
   /** Singleton access
       @return  single to */
   static AliFMDAnaParameters* Instance();
@@ -125,7 +127,8 @@ protected:
       fProcessHits(o.fProcessHits),
       fTrigger(o.fTrigger),
       fEnergy(o.fEnergy),
       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() {}
   {}
   AliFMDAnaParameters& operator=(const AliFMDAnaParameters&) { return *this; }
   virtual ~AliFMDAnaParameters() {}
@@ -166,6 +169,7 @@ protected:
   Trigger  fTrigger;
   Energy   fEnergy;
   MagField fMagField;
   Trigger  fTrigger;
   Energy   fEnergy;
   MagField fMagField;
+  Species  fSpecies;
   
   ClassDef(AliFMDAnaParameters,0) // Manager of parameters
 };
   
   ClassDef(AliFMDAnaParameters,0) // Manager of parameters
 };