]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added posibility to add V0 tender, by default this is off
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Oct 2010 08:28:11 +0000 (08:28 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Oct 2010 08:28:11 +0000 (08:28 +0000)
ANALYSIS/TenderSupplies/AddTaskTender.C

index cef40354e7dac88bcd7315b078c8269330b3f87a..90a181785f0f68e308db1b8a99142d89bd8ccd9c 100644 (file)
@@ -1,5 +1,6 @@
-AliAnalysisTask *AddTaskTender(Bool_t checkEvtSelection=kFALSE){
+AliAnalysisTask *AddTaskTender(Bool_t useV0=kFALSE){
   //get the current analysis manager
+  Bool_t checkEvtSelection = useV0;
   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
   if (!mgr) {
     Error("AddTask_tender_Tender", "No analysis manager found.");
@@ -25,9 +26,11 @@ AliAnalysisTask *AddTaskTender(Bool_t checkEvtSelection=kFALSE){
   }   
   
   //========= Attach VZERO supply ======
-  AliVZEROTenderSupply *vzeroSupply=new AliVZEROTenderSupply("VZEROtender");
-  vzeroSupply->SetDebug(kFALSE);
-  tender->AddSupply(vzeroSupply);
+  if (useV0) {
+     AliVZEROTenderSupply *vzeroSupply=new AliVZEROTenderSupply("VZEROtender");
+     vzeroSupply->SetDebug(kFALSE);
+     tender->AddSupply(vzeroSupply);
+  }   
   //========= Attach TPC supply ======
   AliTPCTenderSupply *tpcSupply=new AliTPCTenderSupply("TPCtender");
   tpcSupply->SetDebugLevel(2);