5 import AthenaPoolCnvSvc.ReadAthenaPool
6 svcMgr.EventSelector.InputCollections = [
"!TESTSAMPLE!"]
8 systWeights =!SYSTWEIGHTS!
10 from AthenaCommon.AlgSequence
import AlgSequence
13 from Rivet_i.Rivet_iConf
import Rivet_i
16 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
17 from GaudiSvc.GaudiSvcConf
import THistSvc
23 name= name.replace(
".",
"p").
replace(
" ",
"_")
24 name= name.replace(
"pyoda",
".yoda")
25 name= name.replace(
":",
"_")
28 if systWeights==
None: systWeights={
'Nominal': 0}
30 analyses=
"!RIVETANALYSIS!"
34 print(
'weight name:',i,
', output name',systName)
36 rivet = Rivet_i(systName)
37 for analysis
in analyses.split(
","):
38 rivet.Analyses +=[analysis]
42 if i!=
"Nominal" : rivet.WeightName=i
43 rivet.HistoFile = systName
44 rivet.DoRootHistos =
False
46 rivet.AnalysisPath = os.environ[
'PWD']
47 rivet.CrossSection = 1.0