ATLAS Offline Software
Loading...
Searching...
No Matches
RivetAnalysis_JO_Rivet3noSyst.py
Go to the documentation of this file.
1import os
2
3theApp.EvtMax = -1
4
5import AthenaPoolCnvSvc.ReadAthenaPool
6svcMgr.EventSelector.InputCollections = ["!TESTSAMPLE!"]
7
8systWeights =!SYSTWEIGHTS!
9
10from AthenaCommon.AlgSequence import AlgSequence
11job = AlgSequence()
12
13from Rivet_i.Rivet_iConf import Rivet_i
14
15
16from AthenaCommon.AppMgr import ServiceMgr as svcMgr
17from GaudiSvc.GaudiSvcConf import THistSvc
18
19svcMgr += THistSvc()
20
21def safeFileName(name):
22 name=name.strip()
23 name= name.replace(".","p").replace(" ","_")
24 name= name.replace("pyoda",".yoda")
25 name= name.replace(":","_")
26 return name
27
28if systWeights==None: systWeights={'Nominal': 0}
29
30analyses= "!RIVETANALYSIS!"
31rivet = Rivet_i()
32for analysis in analyses.split(","):
33 rivet.Analyses +=[analysis]
34rivet.RunName = ""
35rivet.DoRootHistos = False
36rivet.AnalysisPath = os.environ['PWD']
37rivet.CrossSection = 1.0
38rivet.SkipWeights=True
39job += rivet
40
Interface to the Rivet analysis package.
Definition Rivet_i.h:31
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition hcg.cxx:310