trigger condition added
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Jan 2010 09:39:36 +0000 (09:39 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Jan 2010 09:39:36 +0000 (09:39 +0000)
PWG1/macros/AddTaskPerformanceTPC.C

index 9ac60eb..87746b2 100644 (file)
@@ -247,18 +247,6 @@ AliPerformanceTask* AddTaskPerformanceTPC(Bool_t bUseMCInfo=kTRUE, Bool_t bUseES
   //
   // Add components to the performance task
   //
-  if(bUseMCInfo) task->AddPerformanceObject( pCompRes0 );
-  if(bUseMCInfo) task->AddPerformanceObject( pCompRes3 );
-  if(bUseMCInfo) task->AddPerformanceObject( pCompRes4 );
-  if(bUseMCInfo)task->AddPerformanceObject( pCompEff0 );
-  //
-  pCompDEdx3->SetTriggerClass(triggerClass);
-  pCompDCA0->SetTriggerClass(triggerClass);
-  pCompTPC0->SetTriggerClass(triggerClass);
-  pCompMatch0->SetTriggerClass(triggerClass);
-  pCompMatch1->SetTriggerClass(triggerClass);
-  pCompMatch2->SetTriggerClass(triggerClass);
-  //
   task->AddPerformanceObject( pCompDEdx3 );
   task->AddPerformanceObject( pCompDCA0 );
   task->AddPerformanceObject( pCompTPC0 );
@@ -267,6 +255,24 @@ AliPerformanceTask* AddTaskPerformanceTPC(Bool_t bUseMCInfo=kTRUE, Bool_t bUseES
   task->AddPerformanceObject( pCompMatch2 );
 
   //
+  if(bUseMCInfo) { 
+     task->AddPerformanceObject( pCompRes0 );
+     task->AddPerformanceObject( pCompRes3 );
+     task->AddPerformanceObject( pCompRes4 );
+     task->AddPerformanceObject( pCompEff0 );
+  }
+
+  //
+  if(!bUseMCInfo) {
+    pCompDEdx3->SetTriggerClass(triggerClass);
+    pCompDCA0->SetTriggerClass(triggerClass);
+    pCompTPC0->SetTriggerClass(triggerClass);
+    pCompMatch0->SetTriggerClass(triggerClass);
+    pCompMatch1->SetTriggerClass(triggerClass);
+    pCompMatch2->SetTriggerClass(triggerClass);
+  }
+
+  //
   // Create containers for input
   //
   mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());