Commit b16550aa authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau Committed by Pierre-Alain Loizeau
Browse files

Add TOF system offset + fix usage in TOF CRI unpacker

parent f499a27a
......@@ -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
// -------------
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment