Skip to content
Snippets Groups Projects
Commit 217c5acb authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

switch unpack macro from BMON to TZD

parent 1680d075
No related branches found
No related tags found
1 merge request!1019Support for CbmTzdDigi in unpacking, event builder and TOF reco.
...@@ -113,26 +113,26 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid ...@@ -113,26 +113,26 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
// ----- UnpackerConfigs ---------------------------------------------- // ----- UnpackerConfigs ----------------------------------------------
// ---- BMON ---- // ---- BMON ----
std::shared_ptr<CbmBmonUnpackConfig> bmonconfig = nullptr; std::shared_ptr<CbmTzdUnpackConfig> tzdconfig = nullptr;
if (!bBmoninTof) { if (!bBmoninTof) {
bmonconfig = std::make_shared<CbmBmonUnpackConfig>("", runid); tzdconfig = std::make_shared<CbmTzdUnpackConfig>("", runid);
if (bmonconfig) { if (tzdconfig) {
// bmonconfig->SetDebugState(); // tzdconfig->SetDebugState();
bmonconfig->SetDoWriteOutput(); tzdconfig->SetDoWriteOutput();
// bmonconfig->SetDoWriteOptOutA("CbmBmonErrors"); // tzdconfig->SetDoWriteOptOutA("CbmTzdErrors");
std::string parfilesbasepathBmon = Form("%s/macro/beamtime/mcbm2022/", srcDir.Data()); std::string parfilesbasepathTzd = Form("%s/macro/beamtime/mcbm2022/", srcDir.Data());
bmonconfig->SetParFilesBasePath(parfilesbasepathBmon); tzdconfig->SetParFilesBasePath(parfilesbasepathTzd);
bmonconfig->SetParFileName("mBmonCriPar.par"); tzdconfig->SetParFileName("mBmonCriPar.par");
bmonconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated tzdconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated
if (2160 <= runid) { if (2160 <= runid) {
bmonconfig->SetSystemTimeOffset(-80); // [ns] value to be updated tzdconfig->SetSystemTimeOffset(-80); // [ns] value to be updated
} }
if (2350 <= runid) { if (2350 <= runid) {
bmonconfig->SetSystemTimeOffset(0); // [ns] value to be updated tzdconfig->SetSystemTimeOffset(0); // [ns] value to be updated
} }
/// Enable Monitor plots /// Enable Monitor plots
// bmonconfig->SetMonitor(GetTofMonitor(outfilename, true)); // tzdconfig->SetMonitor(GetTofMonitor(outfilename, true));
} }
} }
// ------------- // -------------
...@@ -475,7 +475,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid ...@@ -475,7 +475,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
// Enable full time sorting instead sorting per FLIM link // Enable full time sorting instead sorting per FLIM link
unpack->SetTimeSorting(true); unpack->SetTimeSorting(true);
if (bmonconfig) unpack->SetUnpackConfig(bmonconfig); if (tzdconfig) unpack->SetUnpackConfig(tzdconfig);
if (stsconfig) unpack->SetUnpackConfig(stsconfig); if (stsconfig) unpack->SetUnpackConfig(stsconfig);
if (muchconfig) unpack->SetUnpackConfig(muchconfig); if (muchconfig) unpack->SetUnpackConfig(muchconfig);
if (trd1Dconfig) unpack->SetUnpackConfig(trd1Dconfig); if (trd1Dconfig) unpack->SetUnpackConfig(trd1Dconfig);
...@@ -531,7 +531,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid ...@@ -531,7 +531,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
delete run; delete run;
delete source; delete source;
bmonconfig.reset(); tzdconfig.reset();
stsconfig.reset(); stsconfig.reset();
muchconfig.reset(); muchconfig.reset();
trd1Dconfig.reset(); trd1Dconfig.reset();
......
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