Skip to content

Commit

Permalink
Merge pull request #6994 from ddobrigk/master
Browse files Browse the repository at this point in the history
Make track selections optional via extra cleanup to more closely match…
  • Loading branch information
alibuild authored Oct 1, 2018
2 parents bc4a5e6 + 64db770 commit b76e98e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ Long_t AliAnalysisTaskWeakDecayVertexer::Tracks2V0vertices(AliESDEvent *event) {
//Track pre-selection: clusters
Float_t lThisTrackLength = -1;
if (esdTrack->GetInnerParam()) lThisTrackLength = esdTrack->GetLengthInActiveZone(1, 2.0, 220.0, b);
if (esdTrack->GetTPCNcls() < 70 && lThisTrackLength<80 ) continue;
if (esdTrack->GetTPCNcls() < 70 && lThisTrackLength<80 &&fkExtraCleanup ) continue;

Double_t d=esdTrack->GetD(xPrimaryVertex,yPrimaryVertex,b);
if (TMath::Abs(d)<fV0VertexerSels[2]) continue;
Expand Down Expand Up @@ -781,7 +781,9 @@ Long_t AliAnalysisTaskWeakDecayVertexer::V0sTracks2CascadeVertices(AliESDEvent *

if ( lPosTrackLength < lSmallestTrackLength ) lSmallestTrackLength = lPosTrackLength;
if ( lNegTrackLength < lSmallestTrackLength ) lSmallestTrackLength = lNegTrackLength;
if ( ( ( ( pTrack->GetTPCClusterInfo(2,1) ) < 70 ) || ( ( nTrack->GetTPCClusterInfo(2,1) ) < 70 ) ) && lSmallestTrackLength<80 ) continue;
if ( ( ( ( pTrack->GetTPCClusterInfo(2,1) ) < 70 ) || ( ( nTrack->GetTPCClusterInfo(2,1) ) < 70 ) ) && lSmallestTrackLength<80 ){
if(fkExtraCleanup) continue;
}

//7) Daughter eta
Double_t lNegEta = nTrack->Eta();
Expand Down Expand Up @@ -815,7 +817,7 @@ Long_t AliAnalysisTaskWeakDecayVertexer::V0sTracks2CascadeVertices(AliESDEvent *
//Track pre-selection: Track Quality
Float_t lThisTrackLength = -1;
if (esdtr->GetInnerParam()) lThisTrackLength = esdtr->GetLengthInActiveZone(1, 2.0, 220.0, b);
if (esdtr->GetTPCNcls() < 70 && lThisTrackLength<80 ) continue;
if (esdtr->GetTPCNcls() < 70 && lThisTrackLength<80 && fkExtraCleanup ) continue;

if (TMath::Abs(esdtr->GetD(xPrimaryVertex,yPrimaryVertex,b))<fCascadeVertexerSels[3]) continue;
trk[ntr++]=i;
Expand Down Expand Up @@ -920,7 +922,7 @@ Long_t AliAnalysisTaskWeakDecayVertexer::V0sTracks2CascadeVertices(AliESDEvent *
if (dca > fCascadeVertexerSels[4]) continue;

//eta cut - test
if (TMath::Abs(pbt->Eta())>0.8) continue;
if (TMath::Abs(pbt->Eta())>0.8 && fkExtraCleanup) continue;

AliESDcascade cascade(*pv0,*pbt,bidx); //constucts a cascade candidate
//PH if (cascade.GetChi2Xi() > fChi2max) continue;
Expand Down

0 comments on commit b76e98e

Please sign in to comment.