X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=ANALYSIS%2FTenderSupplies%2FAddTaskTender.C;h=688a1ae0b925295414c16ea342e808fc5e828cbd;hp=8011fdf4f5f44bb65f307e0b98e08733b0e98558;hb=82fdfe7dd11ca465e01daf9c7268aa56a418798b;hpb=1f671b299e8da7605b2d57e08be128673308ffad diff --git a/ANALYSIS/TenderSupplies/AddTaskTender.C b/ANALYSIS/TenderSupplies/AddTaskTender.C index 8011fdf4f5f..688a1ae0b92 100644 --- a/ANALYSIS/TenderSupplies/AddTaskTender.C +++ b/ANALYSIS/TenderSupplies/AddTaskTender.C @@ -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");