Skip to content

Commit 84ad624

Browse files
committed
Fix in MFT clusterer using cluster dictionary
1 parent 15082af commit 84ad624

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Detectors/ITSMFT/MFT/workflow/src/ClustererSpec.cxx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ void ClustererDPL::init(InitContext& ic)
4646

4747
mClusterer = std::make_unique<o2::itsmft::Clusterer>();
4848
mClusterer->setNChips(o2::itsmft::ChipMappingMFT::getNChips());
49+
mUseClusterDictionary = !ic.options().get<bool>("ignore-cluster-dictionary");
50+
4951
LOG(info) << "MFT ClustererDPL::init total number of sensors " << o2::itsmft::ChipMappingMFT::getNChips() << "\n";
5052

5153
//mClusterer->setMaskOverflowPixels(false);
@@ -72,14 +74,6 @@ void ClustererDPL::init(InitContext& ic)
7274
mClusterer->setMaxBCSeparationToMask(nbc);
7375
mClusterer->setMaxRowColDiffToMask(clParams.maxRowColDiffToMask);
7476

75-
std::string dictPath = o2::itsmft::ClustererParam<o2::detectors::DetID::MFT>::Instance().dictFilePath;
76-
std::string dictFile = o2::base::DetectorNameConf::getAlpideClusterDictionaryFileName(o2::detectors::DetID::MFT, dictPath);
77-
if (o2::utils::Str::pathExists(dictFile)) {
78-
mClusterer->loadDictionary(dictFile);
79-
LOG(info) << "MFTClusterer running with a provided dictionary: " << dictFile;
80-
} else {
81-
LOG(info) << "Dictionary " << dictFile << " is absent, MFTClusterer expects cluster patterns";
82-
}
8377
mState = 1;
8478
mClusterer->print();
8579
}

0 commit comments

Comments
 (0)