]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Updates for physics selection.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jan 2010 08:09:55 +0000 (08:09 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jan 2010 08:09:55 +0000 (08:09 +0000)
PWG1/PilotTrain/AddTaskPhysicsSelection.C [moved from PWG1/PilotTrain/AddTaskEventStats.C with 90% similarity]
PWG1/PilotTrain/runPilot.C

similarity index 90%
rename from PWG1/PilotTrain/AddTaskEventStats.C
rename to PWG1/PilotTrain/AddTaskPhysicsSelection.C
index f752624f4794f5cf3a4fe81546ac1906572f7d1d..5be0b3ae6af0d519a6e74f61a9afdcd726675aaf 100644 (file)
@@ -1,6 +1,6 @@
 
 
-AliEventStatsTask* AddTaskEventStats() {
+AliPhysicsSelectionTask* AddTaskPhysicsSelection() {
     
     AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
     if (!mgr) {
@@ -21,7 +21,7 @@ AliEventStatsTask* AddTaskEventStats() {
     
     
 
-  AliEventStatsTask *task= new AliEventStatsTask();
+  AliPhysicsSelectionTask *task= new AliPhysicsSelectionTask("");
   mgr->AddTask(task);
 
 
index cc2d0000d0f68945f2849ec36d43dd94c8f66212..aa9970c9a33530080c09d9e1a4114e8af6ef1a64 100644 (file)
@@ -14,7 +14,7 @@ void runPilot() {
   
  
 
-  gROOT->LoadMacro("AliESDInputHandlerRPITS.cxx++g");  
+//  gROOT->LoadMacro("AliESDInputHandlerRPITS.cxx++g");  
 
   Bool_t doQAsym        = 1;   // output ok
   Bool_t doVZERO        = 1;   // output ok but there is a 2nd file
@@ -30,7 +30,7 @@ void runPilot() {
   mgr->SetDebugLevel(2);
   
 
-  AliInputEventHandler* esdH = new AliESDInputHandlerRPITS();
+  AliInputEventHandler* esdH = new AliESDInputHandlerRP();
   esdH->SetActiveBranches("ESDfriend");
   mgr->SetInputEventHandler(esdH);  
 
@@ -44,13 +44,7 @@ void runPilot() {
   // Wagons
   //
   //
-  // Collision Selector (static)
-  AliPhysicsSelection* colsel =  new AliPhysicsSelection();
-  colsel->AddBackgroundIdentification(new AliBackgroundSelection());
-
-  AliAnalysisTaskSE::SetCollisionSelector(colsel);
   
-
   // TPC QA (E. Sicking)
   //
   if (doQAsym) {
@@ -118,10 +112,10 @@ void runPilot() {
   //
 
   if (doEventStat) {
-      gROOT->LoadMacro("AddTaskEventStats.C");
-      evtStats = AddTaskEventStats();
-      evtStats->SetPhysicsSelection(colsel);
-      AliLog::SetClassDebugLevel("AliPhysicsSelection", AliLog::kDebug);
+      gROOT->LoadMacro("AddTaskPhysicsSelection.C");
+      AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
+      AliPhysicsSelection* physSel = physSelTask->GetPhysicsSelection();
+      physSel->AddBackgroundIdentification(new AliBackgroundSelection());
   }