From f3462f2d3e26590ff764e9194fe071feb2e9c423 Mon Sep 17 00:00:00 2001 From: gconesab Date: Fri, 24 Apr 2020 09:42:16 +0200 Subject: [PATCH] Add PHOS time resolution switch --- MC/DetectorConfig.C | 9 ++++++++- MC/dpgsim.sh | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/MC/DetectorConfig.C b/MC/DetectorConfig.C index 68f7faf6..fac368fe 100644 --- a/MC/DetectorConfig.C +++ b/MC/DetectorConfig.C @@ -482,7 +482,14 @@ DetectorInit(Int_t tag) else { AliPHOS *PHOS = new AliPHOSv1("PHOS", "Run2"); } - + + if (gSystem->Getenv("CONFIG_PHOS_TIMERES")) { + if ( !strcmp(gSystem->Getenv("CONFIG_PHOS_TIMERES"), "off") ) { + printf("*** PHOS time resolution off\n"); + AliPHOSSimParam::GetInstance()->SetTOFparameters(1.e-12,1.e-12) ; + } + } + } diff --git a/MC/dpgsim.sh b/MC/dpgsim.sh index 0e78fca6..98643699 100755 --- a/MC/dpgsim.sh +++ b/MC/dpgsim.sh @@ -194,6 +194,7 @@ OVERRIDE_SYSTEM="" CONFIG_TRIGGER="" OVERRIDE_TRIGGER="" CONFIG_DETECTOR="" +CONFIG_PHOS_TIMERES="on" CONFIG_DETECTORMASK="0x0" CONFIG_PHYSICSLIST="" CONFIG_PDG="" @@ -299,6 +300,10 @@ while [ ! -z "$1" ]; do CONFIG_DETECTOR="$1" export CONFIG_DETECTOR shift + elif [ "$option" = "--phostimeres" ]; then + CONFIG_PHOS_TIMERES="$1" + export CONFIG_PHOS_TIMERES + shift elif [ "$option" = "--system" ]; then OVERRIDE_SYSTEM="$1" OVERRIDE_TRIGGER="$1" @@ -861,6 +866,7 @@ echo "No. Events....... $CONFIG_NBKG" #echo "MC seed.......... $CONFIG_SEED (based on $CONFIG_SEED_BASED)" echo "============================================" echo "Detector......... $CONFIG_DETECTOR" +echo "PHOS Time Res.... $CONFIG_PHOS_TIMERES" echo "GEANT4........... $CONFIG_GEANT4" echo "GEANT4 Phy List.. $CONFIG_GEANT4PHYSLIST" echo "FLUKA............ $CONFIG_FLUKA"