]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing local configuration path
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 May 2009 16:01:48 +0000 (16:01 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 May 2009 16:01:48 +0000 (16:01 +0000)
HLT/PHOS/AliHLTPHOSAltroConfig.cxx
HLT/PHOS/AliHLTPHOSRcuAltroPatternTestComponent.cxx
HLT/PHOS/AliHLTPHOSRcuAltroPatternTestComponent.h

index 50ca765f076532f4fc62c741f1c45b851629c39a..18655ea4882a41d67ae1d48f4d46fb936c0bed09 100644 (file)
@@ -35,42 +35,6 @@ AliHLTPHOSAltroConfig::AliHLTPHOSAltroConfig() : fNPresamples(900),
 
 
 {
-  //  fNTotalSamples =  fNPresamples + fNSamples ; 
-  int tmpNSamples = 0;
-  int tmpNPreSamples = 0;
-
-  char *tmpBaseDir = getenv("ALIHLT_BASEDIR");
-  char tmpFileName[256];
-
-  sprintf(tmpFileName, "%s/PHOS/hltAltroConfig.txt", tmpBaseDir);
-
-  int res = 0; //OD to get rid of warnings
-
-  if(tmpBaseDir != 0)
-    {
-      FILE *fp = fopen(tmpFileName, "r");
-
-      if(fp == 0)
-       {
-         printf("\nNSamples scanned from file is, ERROR \n");
-         printf("\nNPreSamples scanned from file is. ERROR\n"); 
-         PrintAltroDefaultValues(); 
-       }
-      else
-       {
-         res = fscanf(fp, "N_SAMPLES %d\n", &tmpNSamples); 
-         res = fscanf(fp, "N_PRE_SAMPLES %d\n", &tmpNPreSamples);
-         fNSamples = tmpNSamples;
-         fNPresamples = tmpNPreSamples;
-         fNTotalSamples = fNSamples + fNPresamples;
-         fclose(fp);
-       }
-
-    }
-  else
-    {
-      printf( "\nERROR: could not find ALIHLT_BASEDIR\n" );
-    }
 
 }
 
index 0f0512b036958a336dea20d1ee3308fd7744f44f..31d6105321b5476f4d2db55bb3e23e2bf1ea7367 100644 (file)
@@ -32,7 +32,8 @@ AliHLTPHOSRcuAltroPatternTestComponent:: AliHLTPHOSRcuAltroPatternTestComponent(
                                                                                    fNTotalPatterns(0),
                                                                                    fNWrongPatterns(0),
                                                                                    fNTotalSamples(0), 
-                                                                                   fNWrongSamples(0)
+                                                                                   fNWrongSamples(0),
+                                                                                   fNSamples(0)
 {
   fShmPtr = new AliHLTPHOSSharedMemoryInterface();
 } 
@@ -265,6 +266,10 @@ AliHLTPHOSRcuAltroPatternTestComponent::DoInit(int argc, const char** argv )
              isSetPartternArg = true;
            }
        }
+      if(!strcmp("-nsamples", argv[i]))
+       {
+         fNSamples = atoi(argv[i+1]);
+       }
     }
 
   if(isSetPartternArg == false)
index 8080e73af9cfdaf5a17494740e31b0b0f64b8687..0e571a1700c9f6c0af5fc0a717a122959eadaf79 100644 (file)
@@ -52,6 +52,7 @@ class AliHLTPHOSRcuAltroPatternTestComponent:public AliHLTPHOSRcuProcessor
   unsigned long fNWrongPatterns;   /**<The total number of incorrect patterns found*/
   unsigned long fNTotalSamples;    /**<The total number of samples analyzed*/
   unsigned long fNWrongSamples;    /**<The total number of incorrect samples found*/
+  unsigned long fNSamples;
 };
 
 #endif