Include 1/pt fixing supply to the train (but switched off)
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jul 2012 15:44:27 +0000 (15:44 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jul 2012 15:44:27 +0000 (15:44 +0000)
ANALYSIS/TenderSupplies/AddTaskTender.C

index 8011fdf..688a1ae 100644 (file)
@@ -5,7 +5,8 @@ AliAnalysisTask *AddTaskTender(Bool_t useV0=kFALSE,
                                Bool_t usePID=kTRUE,
                                Bool_t useVTX=kTRUE,
                                Bool_t useT0=kTRUE,
-                               Bool_t useEmc=kFALSE)
+                               Bool_t useEmc=kFALSE,
+                              Bool_t usePtFix=kFALSE)
 {
   if (!(useV0 | useTPC | useTOF | useTRD | usePID | useVTX | useEmc)) {
      ::Error("AddTaskTender", "No supply added to tender, so tender not created");
@@ -57,6 +58,13 @@ AliAnalysisTask *AddTaskTender(Bool_t useV0=kFALSE,
      tender->AddSupply(tpcSupply);
   }   
 
+  //========= Attach track 1/pt correction supply ======
+  if (usePtFix) {
+     AliTrackFixTenderSupply *trfixSupply=new AliTrackFixTenderSupply("PTInvFix");
+     //trfixSupply->SetDebugLevel(2);
+     tender->AddSupply(trfixSupply);
+  }   
+
   //========= Attach T0 supply ======
   if (useT0) {
     AliT0TenderSupply *t0Tender = new AliT0TenderSupply("T0tender");