]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCGenDBTemp.cxx
Updates to accomodate change in DP name syntax
[u/mrichter/AliRoot.git] / TPC / AliTPCGenDBTemp.cxx
index 912f4472672a97674b0ba32b515d3ab2882f1e4c..eabe9c0460600366f38c7ab5207118038fb95425 100644 (file)
@@ -76,13 +76,18 @@ AliTPCGenDBTemp& AliTPCGenDBTemp::operator= (const AliTPCGenDBTemp&  )
 void AliTPCGenDBTemp::MakeCalib(const char *fList, const char *fMap,
                              const TTimeStamp& startTime,
                             const TTimeStamp& endTime,
-                            Int_t run )
+                            Int_t run, const TString& amandaString )
 {
    // The Terminate() function is the last function to be called during
    // a query. It always runs on the client, it can be used to present
    // the results graphically or save the results to file.
 
-   AliTPCSensorTempArray *temperature = new AliTPCSensorTempArray(fList);
+   AliTPCSensorTempArray *temperature=0;
+   if ( amandaString.Length()== 0 ) {
+    temperature = new AliTPCSensorTempArray(fList);
+   } else {
+    temperature = new AliTPCSensorTempArray(fList,amandaString);
+   }
    temperature->SetStartTime(startTime);
    temperature->SetEndTime(endTime);
    temperature->SetValCut(kValCut);