-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
RecFCCeeCalorimeter/tests/options/runCaloXTalkNeighbours.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from Configurables import GeoSvc | ||
from Configurables import ApplicationMgr | ||
from Configurables import CreateFCCeeCaloXTalkNeighbours | ||
import os | ||
from Gaudi.Configuration import INFO, DEBUG | ||
|
||
# Detector geometry | ||
geoservice = GeoSvc("GeoSvc") | ||
# if K4GEO is empty, this should use relative path to working directory | ||
path_to_detector = os.environ.get("K4GEO", "") | ||
print(path_to_detector) | ||
detectors_to_use = [ | ||
'FCCee/ALLEGRO/compact/ALLEGRO_o1_v02/ALLEGRO_o1_v02.xml' | ||
] | ||
|
||
# prefix all xmls with path_to_detector | ||
geoservice.detectors = [os.path.join(path_to_detector, _det) for _det in detectors_to_use] | ||
geoservice.OutputLevel = INFO | ||
|
||
# create the crosstalk neighbour file for ECAL barrel cells | ||
neighbours = CreateFCCeeCaloXTalkNeighbours("xtalk_neighbours", | ||
outputFileName="xtalk_neighbours_map_ecalB_thetamodulemerged.root", | ||
readoutNames=["ECalBarrelModuleThetaMerged"], | ||
systemNames=["system"], | ||
systemValues=[4], | ||
activeFieldNames=["layer"], | ||
activeVolumesNumbers=[12], | ||
OutputLevel=DEBUG) | ||
|
||
# ApplicationMgr | ||
ApplicationMgr(TopAlg=[], | ||
EvtSel='NONE', | ||
EvtMax=1, | ||
# order is important, as GeoSvc is needed by G4SimSvc | ||
ExtSvc=[geoservice, neighbours], | ||
OutputLevel=INFO | ||
) |