From 82563e9dc4ad9bcd7bc45b5755c4daa56c15aa64 Mon Sep 17 00:00:00 2001 From: "shexin@ihep.ac.cn" <shexin@ihep.ac.cn> Date: Tue, 24 Dec 2024 01:32:12 +0000 Subject: [PATCH] Fix incorrect gas pressure in TrackHeedSimTool --- Simulation/DetSimDedx/src/TrackHeedSimTool.cpp | 2 +- Simulation/DetSimDedx/src/TrackHeedSimTool.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Simulation/DetSimDedx/src/TrackHeedSimTool.cpp b/Simulation/DetSimDedx/src/TrackHeedSimTool.cpp index a4fe56c7..33028871 100644 --- a/Simulation/DetSimDedx/src/TrackHeedSimTool.cpp +++ b/Simulation/DetSimDedx/src/TrackHeedSimTool.cpp @@ -363,7 +363,7 @@ StatusCode TrackHeedSimTool::initialize() } else if(m_det=="TPC"){ m_gas.SetTemperature(293.15); - m_gas.SetPressure(750.); + m_gas.SetPressure(m_gaspressure); m_gas.SetComposition("Ar", 95., "isobutane", 2., "CF4", 3.); } diff --git a/Simulation/DetSimDedx/src/TrackHeedSimTool.h b/Simulation/DetSimDedx/src/TrackHeedSimTool.h index eb66b4ed..e2605fa1 100644 --- a/Simulation/DetSimDedx/src/TrackHeedSimTool.h +++ b/Simulation/DetSimDedx/src/TrackHeedSimTool.h @@ -90,6 +90,7 @@ class TrackHeedSimTool: public extends<AlgTool, IDedxSimTool> { Gaudi::Property<float> m_change_threshold {this, "change_threshold", 0.05}; Gaudi::Property<float> m_BField {this, "BField", -3}; Gaudi::Property<float> m_eps { this, "eps" , 1e-6 };//very small value, it is returned dedx for unsimulated step (may needed for SimTrackerHit) + Gaudi::Property<float> m_gaspressure { this, "gaspressure" , 760. };// default gas pressure, 760 Torr. 1 ATM // Output collections DataHandle<edm4hep::SimPrimaryIonizationClusterCollection> m_SimPrimaryIonizationColWriter{"SimPrimaryIonizationClusterCollection", Gaudi::DataHandle::Writer, this}; edm4hep::SimPrimaryIonizationClusterCollection* m_SimPrimaryIonizationCol; -- GitLab