Skip to content
Snippets Groups Projects
Commit b3a0fac2 authored by Valentina Akishina's avatar Valentina Akishina
Browse files

L1 remove time correction for MUCH hit, correct create_mcbm_geo_setup.C

parent 2ad7d788
No related branches found
No related tags found
1 merge request!1087L1: remove time sorting when event is present, remove zero detector hits, bug...
......@@ -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";
......
......@@ -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();
......
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