From 5723dbd81390e8d730b185d5eb024a77eea06cfc Mon Sep 17 00:00:00 2001 From: Michele Veltri <michele.veltri@uniurb.it> Date: Wed, 2 Apr 2025 12:11:27 +0000 Subject: [PATCH] fix file name in RunAction --- .../tests/G4GammaToDiLeptonConversionTest/src/RunAction.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/lhcb/tests/G4GammaToDiLeptonConversionTest/src/RunAction.cc b/source/lhcb/tests/G4GammaToDiLeptonConversionTest/src/RunAction.cc index dd839d690c..aababa752e 100644 --- a/source/lhcb/tests/G4GammaToDiLeptonConversionTest/src/RunAction.cc +++ b/source/lhcb/tests/G4GammaToDiLeptonConversionTest/src/RunAction.cc @@ -90,10 +90,11 @@ void RunAction::BeginOfRunAction(const G4Run* aRun) G4int n = aRun->GetNumberOfEventToBeProcessed(); G4String outDir = "G4GammaCVTestROOTFiles"; // *** The output directory name is hardwired! // m.v. Workaround to keep the same file name, if not a problem for LHCbPR can be removed - G4String mat = "Al"; - if(fMat->GetName() != "Aluminium") mat=fMat->GetName(); + //G4String mat = "Al"; + //if(fMat->GetName() != "Aluminium") mat=fMat->GetName(); std::stringstream tmp; - tmp << outDir << "/TestEM6_" << mat << "_" << t/mm << "mm_" << e/GeV << "GeV_" << n << ".root"; + //tmp << outDir << "/TestEM6_" << mat << "_" << t/mm << "mm_" << e/GeV << "GeV_" << n << ".root"; + tmp << outDir << "/TestEM6_Al_" << t/mm << "mm_" << e/GeV << "GeV_" << n << ".root"; G4String fileName = tmp.str(); fAnalysis->OpenFile(fileName); -- GitLab