From b3a0fac2581829be9351d5395c859867353b2644 Mon Sep 17 00:00:00 2001 From: Valentina <v.akishina@gsi.de> Date: Mon, 6 Feb 2023 09:52:57 +0100 Subject: [PATCH] L1 remove time correction for MUCH hit, correct create_mcbm_geo_setup.C --- macro/run/create_mcbm_geo_setup.C | 4 ++-- reco/L1/CbmL1ReadEvent.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/macro/run/create_mcbm_geo_setup.C b/macro/run/create_mcbm_geo_setup.C index 1b5a95c1c1..369ba842f3 100644 --- a/macro/run/create_mcbm_geo_setup.C +++ b/macro/run/create_mcbm_geo_setup.C @@ -2,7 +2,7 @@ SPDX-License-Identifier: GPL-3.0-only Authors: Pierre-Alain Loizeau [committer] */ -void create_mcbm_geo_setup(uint64_t ulRunId) +void create_mcbm_geo_setup(uint64_t ulRunId, const std::string& sOutputDir = "data/") { /// Do automatic mapping std::string sSetupName = ""; @@ -14,7 +14,7 @@ void create_mcbm_geo_setup(uint64_t ulRunId) std::cout << "Error in mapping from runID to setup name: " << e.what() << std::endl; return; } - std::string sPath = "data/" + sSetupName; + std::string sPath = sOutputDir + "/" + sSetupName; if (gSystem->AccessPathName(Form("%s.geo.root", sPath.data()))) { std::string sSrcDir = gSystem->Getenv("VMCWORKDIR"); // top source directory std::string sTransportMacro = sSrcDir + "/macro/mcbm/mcbm_transport.C"; diff --git a/reco/L1/CbmL1ReadEvent.cxx b/reco/L1/CbmL1ReadEvent.cxx index c77594bf4d..91bf7632e4 100644 --- a/reco/L1/CbmL1ReadEvent.cxx +++ b/reco/L1/CbmL1ReadEvent.cxx @@ -900,7 +900,7 @@ void CbmL1::ReadEvent(float& TsStart, float& TsLength, float& /*TsOverlap*/, int th.iStation = stIdx; //h->GetStationNr() - 1; //Get time - th.time = h->GetTime() - 14.5; + th.time = h->GetTime(); th.dt = h->GetTimeError(); -- GitLab