Skip to content

Commit

Permalink
Add protections for methods of AliAnalysisTaskWeakDecayVertexer
Browse files Browse the repository at this point in the history
  • Loading branch information
fprino committed Feb 13, 2020
1 parent 450c748 commit e05f180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AOD/main_AODtrainRawAndMC.C
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ void AddAnalysisTasks(const char *cdb_location, Bool_t isMC)
if (iCollision == kpp || iCollision == kpPb || iCollision == kPbp) {
// pp, p-Pb cut configuration
AliAnalysisTaskWeakDecayVertexer *taskWDV = AddTaskWeakDecayVertexer();
taskWDV -> SetUseImprovedFinding();
if(AliAnalysisTaskWeakDecayVertexer::Class()->GetMethodAny("SetUseImprovedFinding")) taskWDV -> SetUseImprovedFinding();
//V0-Related topological selections
taskWDV -> SetV0VertexerDCAFirstToPV(0.05);
taskWDV -> SetV0VertexerDCASecondtoPV(0.05);
Expand All @@ -550,9 +550,9 @@ void AddAnalysisTasks(const char *cdb_location, Bool_t isMC)
}else if(iCollision == kPbPb || iCollision == kXeXe){
// A-A cut configuration
AliAnalysisTaskWeakDecayVertexer *taskWDV = AddTaskWeakDecayVertexer();
taskWDV -> SetUseImprovedFinding();
if(AliAnalysisTaskWeakDecayVertexer::Class()->GetMethodAny("SetUseImprovedFinding")) taskWDV -> SetUseImprovedFinding();
taskWDV -> SetupLooseVertexing();
taskWDV -> AddStandardV0HypSel();
if(AliAnalysisTaskWeakDecayVertexer::Class()->GetMethodAny("AddStandardV0HypSel")) taskWDV -> AddStandardV0HypSel();
}

//PWGAgammaconv
Expand Down

0 comments on commit e05f180

Please sign in to comment.