Skip to content

Commit

Permalink
ddc patch
Browse files Browse the repository at this point in the history
  • Loading branch information
f3sch committed Dec 10, 2023
1 parent 21f9731 commit 61f9755
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ struct SVertexerParams : public o2::conf::ConfigurableParamHelper<SVertexerParam

uint8_t mITSSAminNclu = 6; // global requirement of at least this many ITS clusters if no TPC info present (N.B.: affects all secondary vertexing)
uint8_t mITSSAminNcluCascades = 6; // require at least this many ITS clusters if no TPC info present for cascade finding.
bool mRejectITSonlyOBtrack = false; // reject tracks in OB with 4 hits (keep false for more low pt conversions)
bool mRequireTPCforCascBaryons = true; // require that baryon daughter of cascade has TPC
bool mSkipTPCOnlyCascade = true; // skip TPC only tracks when doing cascade finding
bool mSkipTPCOnly3Body = true; // skip TPC only tracks when doing cascade finding
Expand All @@ -135,8 +136,8 @@ struct SVertexerParams : public o2::conf::ConfigurableParamHelper<SVertexerParam
//
// cuts on different Cascade PID params
bool checkCascadeHypothesis = true;
float pidCutsXiMinus[SVertexHypothesis::NPIDParams] = {0.0, 10, 0.0, 4.0, 0.0, 1.56315e-03, 2.23279e-04, 2.75136e-02, 3.309}; // XiMinus
float pidCutsOmegaMinus[SVertexHypothesis::NPIDParams] = {0.0, 10, 0.0, 4.0, 0.0, 1.43572e-03, 6.94416e-04, 2.13534e+05, 1.48889e+01}; // OmegaMinus
float pidCutsXiMinus[SVertexHypothesis::NPIDParams] = {0.0, 15, 0.01, 4.0, 0.0, 1.56315e-03, 2.23279e-04, 2.75136e-02, 3.309}; // XiMinus
float pidCutsOmegaMinus[SVertexHypothesis::NPIDParams] = {0.0, 15, 0.01, 4.0, 0.0, 1.43572e-03, 6.94416e-04, 2.13534e+05, 1.48889e+01}; // OmegaMinus
float maximalCascadeWidth = 0.006;
//
// cuts on different 3 body PID params
Expand Down
5 changes: 4 additions & 1 deletion Detectors/Vertexing/src/SVertexer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -513,16 +513,19 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a

// get Nclusters in the ITS if available
int8_t nITSclu = -1;
bool shortOBITSOnlyTrack = false;
auto itsGID = recoData.getITSContributorGID(tvid);
if (itsGID.getSource() == GIndex::ITS) {
if (isITSloaded) {
auto& itsTrack = recoData.getITSTrack(itsGID);
nITSclu = itsTrack.getNumberOfClusters();
shortOBITSOnlyTrack = itsTrack.getFirstClusterLayer() >= 3;
}
} else if (itsGID.getSource() == GIndex::ITSAB) {
if (isITSTPCloaded) {
auto& itsABTracklet = recoData.getITSABRef(itsGID);
nITSclu = itsABTracklet.getNClusters();
shortOBITSOnlyTrack = true; // by construction true
}
}
if (!acceptTrack(tvid, trc) && !heavyIonisingParticle) {
Expand All @@ -532,7 +535,7 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a
continue;
}

if (!hasTPC && nITSclu < mSVParams->mITSSAminNclu) {
if (!hasTPC && nITSclu < mSVParams->mITSSAminNclu && (!shortOBITSOnlyTrack || mSVParams->mRejectITSonlyOBtrack)) {
continue; // reject short ITS-only
}

Expand Down

0 comments on commit 61f9755

Please sign in to comment.