Skip to content
Snippets Groups Projects
Commit c807a369 authored by Dominik Smith's avatar Dominik Smith Committed by Dominik Smith
Browse files

Implemented automated switching between STS unpackers in CbmStsUnpackConfig and run_unpack_tsa.

parent a3a96fd6
No related branches found
No related tags found
1 merge request!461Switchable STS unpacker algos with legacy support for 2020 runs.
Pipeline #12906 passed
......@@ -114,7 +114,7 @@ void run_unpack_tsa(std::string infile = "test.tsa", UInt_t runid = 0, const cha
// ---- STS ----
std::shared_ptr<CbmStsUnpackConfig> stsconfig = nullptr;
stsconfig = std::make_shared<CbmStsUnpackConfig>("", runid);
stsconfig = std::make_shared<CbmStsUnpackConfig>(std::string(setupName), runid);
if (stsconfig) {
// stsconfig->SetDebugState();
stsconfig->SetDoWriteOutput();
......
......@@ -68,11 +68,17 @@ std::shared_ptr<CbmStsUnpackAlgoBase> CbmStsUnpackConfig::chooseAlgo()
{
if (fDoLog) LOG(info) << fName << "::Init - chooseAlgo";
// Non default unpacker selection
// Legacy unpacker for data taken before mcbm 2021
if (fGeoSetupTag.find("mcbm_beam_2020_03") != fGeoSetupTag.npos) {
auto algo = std::make_shared<CbmStsUnpackAlgoLegacy>();
LOG(info) << fName << "::chooseAlgo() - selected algo = " << algo->Class_Name();
return algo;
}
// Default unpacker selection
// Unpacker algo from mcbm 2021 on and hopefully default for a long time.
auto algo = std::make_shared<CbmStsUnpackAlgo>();
//auto algo = std::make_shared<CbmStsUnpackAlgoLegacy>(); // for 2020 runs
LOG(info) << fName << "::chooseAlgo() - selected algo = " << algo->Class_Name();
return algo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment