7 idlowpt=900311, idhighpt=800831, wlowpt=0.099791, whighpt=0.00209):
8
9 result=ComponentAccumulator()
10
11 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
12 result.merge(LArGMCfg(flags))
13 from TileGeoModel.TileGMConfig import TileGMCfg
14 result.merge(TileGMCfg(flags))
15
17 from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
18 result.merge(LArOnOffIdMappingSCCfg(flags))
19 result.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg('CaloSuperCellAlignCondAlg'))
20
21 rKey="LArOnOffIdMapSC"
22 else:
23 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
24 result.merge(LArOnOffIdMappingCfg(flags))
25
26 rKey="LArOnOffIdMap"
27
28 result.addCondAlgo(CompFactory.LArMCSymCondAlg("LArMCSymCondAlg",SuperCell=supercell,ReadKey=rKey))
29
30 from xAODEventInfoCnv.xAODEventInfoCnvConfig import EventInfoCnvAlgCfg
31 result.merge(EventInfoCnvAlgCfg(flags, disableBeamSpot=True))
32
33 larMinBiasAlg = CompFactory.LArMinBiasAlg()
34 larMinBiasAlg.datasetID_lowPt=idlowpt
35 larMinBiasAlg.datasetID_highPt=idhighpt
36
37 larMinBiasAlg.weight_lowPt = wlowpt
38 larMinBiasAlg.weight_highPt= whighpt
39 larMinBiasAlg.EvtInfo="EventInfo"
40 larMinBiasAlg.CablingKey=rKey
41 larMinBiasAlg.SuperCell=supercell
42
43
44 result.addEventAlgo(larMinBiasAlg)
45
46 import os
47 if os.path.exists(output):
48 os.remove(output)
49 result.addService(CompFactory.THistSvc(Output = ["file1 DATAFILE='"+output+"' OPT='RECREATE'"]))
50 result.setAppProperty("HistogramPersistency","ROOT")
51
52 return result
53