]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliPhysicsSelectionTask.cxx
extend lhc11h run number and add MC efficiency label
[u/mrichter/AliRoot.git] / ANALYSIS / AliPhysicsSelectionTask.cxx
index 3e0616c62db689e796dfc85a9f5d949c77b05835..b89b8e540dfd5ee611166da16c6a6297dbca2353 100644 (file)
@@ -139,51 +139,3 @@ void AliPhysicsSelectionTask::Terminate(Option_t *)
   
   Printf("Writing result to event_stat.root");
 }
-
-void AliPhysicsSelectionTask::NotifyRun(){
-  if (fPhysicsSelection->IsMC()) return;
-  TObject* prodInfoData = fInputHandler->GetUserInfo()->FindObject("alirootVersion");
-  TString filePath;
-  if (prodInfoData) {
-    // take filePath from UserInfo - available only from ~LHC12d period
-    TString str(prodInfoData->GetTitle());
-    TObjArray* tokens = str.Tokenize(";");
-    for (Int_t i=0;i<=tokens->GetLast();i++) {
-      TObjString* stObj = (TObjString*) tokens->At(i);
-      TString s = stObj->GetString();
-      if (s.Contains("OutputDir")) {
-        filePath = s;
-        break;
-      }
-    }
-    delete tokens;
-  } else {
-    // guess name from the input filename
-    // may be a problem for local analysis
-    filePath = fInputHandler->GetTree()->GetCurrentFile()->GetName();
-  }
-
-  TString passName="";
-
-  TObjArray* tokens = filePath.Tokenize("/");
-  for (Int_t i=0;i<=tokens->GetLast();i++) {
-    TObjString* stObj = (TObjString*) tokens->At(i);
-    TString s = stObj->GetString();
-    if (s.Contains("pass")) {
-      passName = s;
-      break;
-    }
-  }
-  delete tokens;
-
-  if (!passName.Contains("pass")){
-    AliError(" ******** Failed to find reconstruction pass name *********");
-    AliError(" ******** Default parameters loaded: parameters unreliable ******");
-    AliError("      --> If these are MC data: please set kTRUE first argument of AddTaskPhysicsSelection");
-    AliError("      --> If these are real data: ");
-    AliError("          (a) please insert pass number inside the path of your local file OR");
-    AliError("          (b) specify reconstruction pass number when adding physics selection task");
-    AliError(" Using default pass parameters for physics selection (PS will probably fail for LHC10h pass1 and pass2 data)!");
-  }
-  fPhysicsSelection->SetPassName(passName);
-}