Skip to content

Commit a65fcd4

Browse files
committed
Optionally ignore BC check in TPC-ITS macthing
In which case no collisision-context will be loaded
1 parent f2d736e commit a65fcd4

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

Detectors/GlobalTracking/include/GlobalTracking/MatchTPCITS.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ class MatchTPCITS
325325
void setUseFT0(bool v) { mUseFT0 = v; }
326326
bool getUseFT0() const { return mUseFT0; }
327327

328+
void setUseBCFilling(bool v) { mUseBCFilling = v; }
329+
bool getUseBCFilling() const { return mUseBCFilling; }
330+
328331
///< set ITS ROFrame duration in microseconds
329332
void setITSROFrameLengthMUS(float fums);
330333
///< set ITS ROFrame duration in BC (continuous mode only)
@@ -517,7 +520,7 @@ class MatchTPCITS
517520
const o2::ft0::InteractionTag* mFT0Params = nullptr;
518521

519522
MatCorrType mUseMatCorrFlag = MatCorrType::USEMatCorrTGeo;
520-
523+
bool mUseBCFilling = true; ///< use BC filling for candidates validation
521524
bool mSkipTPCOnly = false; ///< for test only: don't use TPC only tracks, use only external ones
522525
bool mITSTriggered = false; ///< ITS readout is triggered
523526
bool mUseFT0 = false; ///< FT0 information is available

Detectors/GlobalTracking/src/MatchTPCITS.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,12 @@ void MatchTPCITS::doMatching(int sec)
775775
int matchedIC = MinusOne;
776776
if (!isCosmics()) {
777777
// validate by bunch filling scheme
778-
auto irBracket = tBracket2IRBracket(trange);
779-
if (irBracket.isInvalid()) {
780-
continue;
778+
if (mUseBCFilling) {
779+
auto irBracket = tBracket2IRBracket(trange);
780+
if (irBracket.isInvalid()) {
781+
continue;
782+
}
781783
}
782-
783784
if (checkInteractionCandidates) {
784785
// check if corrected TPC track time is compatible with any of interaction times
785786
auto interactionRefs = mITSROFIntCandEntries[trefITS.roFrame]; // reference on interaction candidates compatible with this track

Detectors/GlobalTrackingWorkflow/src/TPCITSMatchingSpec.cxx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ void TPCITSMatchingDPL::init(InitContext& ic)
9797
mMatching.setUseFT0(mUseFT0);
9898
mMatching.setVDriftCalib(mCalibMode);
9999
mMatching.setNThreads(std::max(1, ic.options().get<int>("nthreads")));
100+
mMatching.setUseBCFilling(!ic.options().get<bool>("ignore-bc-check"));
100101
//
101102
std::string dictPath = o2::itsmft::ClustererParam<o2::detectors::DetID::ITS>::Instance().dictFilePath;
102103
std::string dictFile = o2::base::NameConf::getAlpideClusterDictionaryFileName(o2::detectors::DetID::ITS, dictPath, "bin");
@@ -123,10 +124,11 @@ void TPCITSMatchingDPL::init(InitContext& ic)
123124
mMatching.setDebugFlag(dbgFlags);
124125

125126
// set bunch filling. Eventually, this should come from CCDB
126-
const auto* digctx = o2::steer::DigitizationContext::loadFromFile();
127-
const auto& bcfill = digctx->getBunchFilling();
128-
mMatching.setBunchFilling(bcfill);
129-
127+
if (mMatching.getUseBCFilling()) {
128+
const auto* digctx = o2::steer::DigitizationContext::loadFromFile();
129+
const auto& bcfill = digctx->getBunchFilling();
130+
mMatching.setBunchFilling(bcfill);
131+
}
130132
mMatching.init();
131133
//
132134
}
@@ -199,6 +201,7 @@ DataProcessorSpec getTPCITSMatchingSpec(GTrackID::mask_t src, bool useFT0, bool
199201
Options{
200202
{"nthreads", VariantType::Int, 1, {"Number of afterburner threads"}},
201203
{"material-lut-path", VariantType::String, "", {"Path of the material LUT file"}},
204+
{"ignore-bc-check", VariantType::Bool, false, {"Do not check match candidate against BC filling"}},
202205
{"debug-tree-flags", VariantType::Int, 0, {"DebugFlagTypes bit-pattern for debug tree"}}}};
203206
}
204207

0 commit comments

Comments
 (0)