Skip to content

Commit

Permalink
Add PHOS time resolution switch
Browse files Browse the repository at this point in the history
  • Loading branch information
gconesab committed Apr 24, 2020
1 parent b10ec41 commit f3462f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MC/DetectorConfig.C
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;
}
}

}


Expand Down
6 changes: 6 additions & 0 deletions MC/dpgsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ OVERRIDE_SYSTEM=""
CONFIG_TRIGGER=""
OVERRIDE_TRIGGER=""
CONFIG_DETECTOR=""
CONFIG_PHOS_TIMERES="on"
CONFIG_DETECTORMASK="0x0"
CONFIG_PHYSICSLIST=""
CONFIG_PDG=""
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

1 comment on commit f3462f2

@peressounko
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Gustavo,
It is better to have resolution off by default.
Best regards, Dmitri

Please sign in to comment.