10 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
13 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
14 from AthenaConfiguration.ComponentFactory
import CompFactory
21 acc.addService(CompFactory.THistSvc(name=
"THistSvc", Output=[ f
"{name} DATAFILE='{flags.Output.HISTFileName}' OPT='RECREATE'" ]))
23 kwargs.setdefault(
'HistPath', f
"/{name}/")
24 kwargs.setdefault(
'DoCells', 0)
26 kwargs.setdefault(
'CalibrationHitContainerNames', [
27 "LArCalibrationHitInactive",
28 "LArCalibrationHitActive",
29 "TileCalibHitInactiveCell",
30 "TileCalibHitActiveCell",
33 acc.addEventAlgo(CompFactory.LarEMSamplingFraction(name, **kwargs))
40 flags.IOVDb.GlobalTag =
'OFLCOND-MC16-SDR-16'
41 flags.Input.Files = [
'test.root']
42 flags.Output.HISTFileName =
'LArEM_SF.root'
43 flags.Exec.MaxEvents = -1
56 sys.exit( acc.run().isFailure() )