Skip to content
Snippets Groups Projects

Fix benchmarks for Imaging Cal.

Merged Chao Peng requested to merge update_imaging_ecal into master
Files
5
@@ -31,7 +31,6 @@ print(kwargs)
# get sampling fraction from system environment variable, 1.0 by default
sf = float(os.environ.get('CB_EMCAL_SAMP_FRAC', '1.0'))
geo_service = GeoSvc("GeoSvc", detectors=kwargs['compact'].split(','))
podioevent = EICDataSvc("EventDataSvc", inputs=kwargs['input'].split(','), OutputLevel=DEBUG)
out = PodioOutput("out", filename=kwargs['output'])
@@ -64,13 +63,15 @@ imcalreco = ImagingPixelReco("imcal_reco",
readoutClass="EcalBarrelHits",
layerField="layer",
sectorField="module")
imcalcluster = ImagingTopoCluster(inputHitCollection="RecoEcalBarrelHits",
imcalcluster = ImagingTopoCluster("imcal_cluster",
inputHitCollection="RecoEcalBarrelHits",
outputClusterCollection="EcalBarrelClusters",
localRanges=[2.*units.mm, 2*units.mm],
adjLayerRanges=[10*units.mrad, 10*units.mrad],
adjLayerDiff=2,
adjSectorDist=3.*units.cm)
clusterreco = ImagingClusterReco(inputClusterCollection="EcalBarrelClusters",
clusterreco = ImagingClusterReco("imcal_clreco",
inputClusterCollection="EcalBarrelClusters",
outputLayerCollection="EcalBarrelClustersLayers",
samplingFraction=sf,
OutputLevel=DEBUG)
@@ -78,7 +79,7 @@ clusterreco = ImagingClusterReco(inputClusterCollection="EcalBarrelClusters",
out.outputCommands = ["keep *"]
ApplicationMgr(
TopAlg=[podioinput, copier, calcopier, imcaldigi, imcalreco, imcalcluster, clusterreco, out],
TopAlg=[podioinput, copier, calcopier, imcaldigi, imcalreco, imcalcluster, out],
EvtSel='NONE',
EvtMax=kwargs['nev'],
ExtSvc=[podioevent],
Loading