Skip to content

Commit cfd20af

Browse files
committed
Possibility to select shorter ITS tracks for special output of trackMCStudy
1 parent 9e9f5bf commit cfd20af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Detectors/GlobalTrackingWorkflow/study/include/GlobalTrackingStudy/TrackMCStudyConfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ struct TrackMCStudyConfig : o2::conf::ConfigurableParamHelper<TrackMCStudyConfig
3434
int nTBPerOccBin = 48; // number of TB per occ bin
3535
float rejectClustersResStat = 0.1;
3636
float maxTPCRefExtrap = 2; // max dX to extrapolate the track ref when extrapolating track true posions
37+
int minITSClForITSoutput = 7; // create special ITS otput only for long enough tracks
3738
int decayPDG[5] = {310, 3122, 411, 421, -1}; // decays to study, must end by -1
3839
O2ParamDef(TrackMCStudyConfig, "trmcconf");
3940
};

Detectors/GlobalTrackingWorkflow/study/src/TrackMCStudy.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,7 @@ void TrackMCStudy::processITSTracks(const o2::globaltracking::RecoContainer& rec
13031303
const auto itsClRefs = recoData.getITSTracksClusterRefs();
13041304
const auto clusITS = recoData.getITSClusters();
13051305
const auto patterns = recoData.getITSClustersPatterns();
1306+
const auto& params = o2::trackstudy::TrackMCStudyConfig::Instance();
13061307
auto pattIt = patterns.begin();
13071308
mITSClustersArray.clear();
13081309
mITSClustersArray.reserve(clusITS.size());
@@ -1324,7 +1325,7 @@ void TrackMCStudy::processITSTracks(const o2::globaltracking::RecoContainer& rec
13241325
const auto& itsLb = itsLbls[itr];
13251326
// LOGP(info,"proc {} {} {}",itr0, itr, itsLb.asString());
13261327
int nCl = itsTr.getNClusters();
1327-
if (itsLb.isFake() || nCl != 7) {
1328+
if (itsLb.isFake() || nCl < params.minITSClForITSoutput) {
13281329
continue;
13291330
}
13301331
auto entrySel = mSelMCTracks.find(itsLb);

0 commit comments

Comments
 (0)