11 from GaudiConfig2
import Configurables
as C
12 from GaudiConfig2
import mergeConfigs
17 C.Gaudi.TestSuite.Counter.GaudiHistoAlgorithm(
18 "SimpleCounterHistos", OutputLevel=3
21 app = C.ApplicationMgr(TopAlg=algorithms)
22 return algorithms + [app]
26 return [C.AuditorSvc(
"AuditorSvc", Auditors=[
"ChronoAuditor"])]
30 return [C.ApplicationMgr(EvtMax=nevt, EvtSel=
"NONE")]
35 C.ApplicationMgr(HistogramPersistency=
"ROOT"),
36 C.RootHistCnv.PersSvc(
"RootHistSvc", OutputFile=filename),
41 C.Gaudi.Histograming.Sink.Root(),
46 config[
"ApplicationMgr"].TopAlg[0].OutputLevel = 2
50 def main(nevt=50000, outfile="histo-c2.root", OutputLevel=3):
51 msgSvc = C.MessageSvc(OutputLevel=3)
52 app = C.ApplicationMgr(MessageSvcType=msgSvc)
53 msgSvcSink = C.Gaudi.Monitoring.MessageSvcSink(
54 HistoStringsWidth=40, NamesToSave=[
"Prof.*",
"Gauss.*"]
56 app.ExtSvc = [msgSvcSink]
59 [app, msgSvc, msgSvcSink],