diff --git a/macro/run/run_unpack_tsa.C b/macro/run/run_unpack_tsa.C index de0cecd81351db89efcf09b4222e24ae68b4c90c..9606370845ca087e1f4fcff972a93a7a00a4f5bc 100644 --- a/macro/run/run_unpack_tsa.C +++ b/macro/run/run_unpack_tsa.C @@ -158,7 +158,7 @@ void run_unpack_tsa(std::string infile = "test.tsa", UInt_t runid = 0, const cha // tofconfig->SetDoWriteOptOutA("CbmTofErrors"); std::string parfilesbasepathTof = Form("%s/macro/beamtime/mcbm2021/", srcDir.Data()); tofconfig->SetParFilesBasePath(parfilesbasepathTof); - //tofconfig->SetSystemTimeOffset(-2221); // [ns] value to be updated + tofconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated // ------------- diff --git a/reco/detectors/tof/unpack/CbmTofUnpackAlgo.cxx b/reco/detectors/tof/unpack/CbmTofUnpackAlgo.cxx index 5719ae8da4f1cf25a8dfe6aedd005eb8e3c11047..a1285fa8f84b2246a3f7d7170661f06ea6b3cb2f 100644 --- a/reco/detectors/tof/unpack/CbmTofUnpackAlgo.cxx +++ b/reco/detectors/tof/unpack/CbmTofUnpackAlgo.cxx @@ -385,7 +385,7 @@ void CbmTofUnpackAlgo::ProcessHit(const critof001::Message& mess) /// Apply offset to T0 only to TOF digis if (0x90 != fuCurrentMsSysId) { /// Tricking clang to avoid one liner - dHitTime -= fdTimeOffsetNs; + dHitTime -= fSystemTimeOffset; } /// FIXME: seems there is an offset of +4 Epoch between data and header diff --git a/reco/detectors/tof/unpack/CbmTofUnpackAlgo.h b/reco/detectors/tof/unpack/CbmTofUnpackAlgo.h index e773bd76a477a5c1eb6247e959258f0f856f9d2a..d2543049bf73c3122ce76f8905f68114531e7ac3 100644 --- a/reco/detectors/tof/unpack/CbmTofUnpackAlgo.h +++ b/reco/detectors/tof/unpack/CbmTofUnpackAlgo.h @@ -159,9 +159,6 @@ private: std::vector<Int_t> fviModuleId = {}; std::vector<Int_t> fviRpcChUId = {}; - /// User settings: Data correction parameters - Double_t fdTimeOffsetNs; - /// Running indices UInt_t fuMapWarnToPrint = 100; ULong64_t fulCurrentTsIdx = 0; //! Idx of the current TS