ATLAS Offline Software
RivetAnalysis_JO_Rivet3.py
Go to the documentation of this file.
1 import os
2 
3 theApp.EvtMax = -1
4 
5 import AthenaPoolCnvSvc.ReadAthenaPool
6 svcMgr.EventSelector.InputCollections = ["!TESTSAMPLE!"]
7 
8 systWeights =!SYSTWEIGHTS!
9 
10 from AthenaCommon.AlgSequence import AlgSequence
11 job = AlgSequence()
12 
13 from Rivet_i.Rivet_iConf import Rivet_i
14 
15 
16 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
17 from GaudiSvc.GaudiSvcConf import THistSvc
18 
19 svcMgr += THistSvc()
20 
21 def 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 
28 if systWeights==None: systWeights={'Nominal': 0}
29 
30 analyses= "!RIVETANALYSIS!"
31 rivet = Rivet_i()
32 for analysis in analyses.split(","):
33  rivet.Analyses +=[analysis]
34 rivet.RunName = ""
35 rivet.DoRootHistos = False
36 rivet.AnalysisPath = os.environ['PWD']
37 rivet.CrossSection = 1.0
38 rivet.SkipWeights=False
39 job += rivet
40 
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
RivetAnalysis_JO_Rivet3.safeFileName
def safeFileName(name)
Definition: RivetAnalysis_JO_Rivet3.py:21
Lb2Lll.THistSvc
THistSvc
Definition: Lb2Lll.py:216