ATLAS Offline Software
Functions | Variables
PowhegPy8EG_H2a Namespace Reference

Functions

def getParameters ()
 

Variables

 infile = f
 
 f1 = open( infile )
 
string newfile = infile+'.temp'
 
 f2 = open(newfile,'w')
 
dictionary dict_pdgIds = {}
 
int sign = -1
 
dictionary pdgId = dict_pdgIds[part]
 
 keywords
 
 description
 
 process
 
 contact
 
 PDGGrandParent
 
 PDGParent
 
 StatusParent
 
 PDGChild1
 
 PDGChild2
 
 lfvfilter = TauFilter("lfvfilter")
 
 UseNewOptions
 
 Ntaus
 
 Nleptaus
 
 Nhadtaus
 
 EtaMaxlep
 
 EtaMaxhad
 
 Ptcutlep
 
 Ptcutlep_lead
 
 Ptcuthad
 
 Ptcuthad_lead
 

Function Documentation

◆ getParameters()

def PowhegPy8EG_H2a.getParameters ( )

Definition at line 39 of file PowhegPy8EG_H2a.py.

39 def getParameters():
40  import re
41 
42  #--- Read parts of the job option
43  jonamelist = str(runArgs.jobConfig[0]).replace(".py", "").split("_")
44 
45  tune=0
46  count=0
47  for substr in jonamelist:
48  if "AZNLO" in substr:
49  tune = count
50  break
51  count += 1
52 
53  print("squirrel",jonamelist,tune)
54  process = jonamelist[tune+1]
55  ma = float(jonamelist[tune+3].split("a")[-1].replace("p", "."))
56  decayChan = str(jonamelist[tune+4])
57  partFilter = None
58  if len(jonamelist)-tune>5:
59  partFilter = str(jonamelist[tune+5])
60 
61  #--- list of decays, e.g. [mu, tau] for 2mu2tau
62  decayProducts = []
63  for part in dict_pdgIds.keys():
64  decay = re.findall("[1-4]%s" % part, decayChan)
65  if len(decay)>0:
66  decayProducts.append(decay[0][1:]) # remove the number in front of the letter
67 
68  return process, ma, decayChan, decayProducts, partFilter
69 
70 # MC15.999999.PowhegPy8EG_ggH_H125_a60a60_2mu2tau_[filtXXX].py
71 process, ma, decayChan, decayProducts, partFilter = getParameters()

Variable Documentation

◆ contact

PowhegPy8EG_H2a.contact

Definition at line 151 of file PowhegPy8EG_H2a.py.

◆ description

PowhegPy8EG_H2a.description

Definition at line 149 of file PowhegPy8EG_H2a.py.

◆ dict_pdgIds

dictionary PowhegPy8EG_H2a.dict_pdgIds = {}

Definition at line 32 of file PowhegPy8EG_H2a.py.

◆ EtaMaxhad

PowhegPy8EG_H2a.EtaMaxhad

Definition at line 262 of file PowhegPy8EG_H2a.py.

◆ EtaMaxlep

PowhegPy8EG_H2a.EtaMaxlep

Definition at line 261 of file PowhegPy8EG_H2a.py.

◆ f1

PowhegPy8EG_H2a.f1 = open( infile )

Definition at line 16 of file PowhegPy8EG_H2a.py.

◆ f2

PowhegPy8EG_H2a.f2 = open(newfile,'w')

Definition at line 18 of file PowhegPy8EG_H2a.py.

◆ infile

PowhegPy8EG_H2a.infile = f

Definition at line 15 of file PowhegPy8EG_H2a.py.

◆ keywords

PowhegPy8EG_H2a.keywords

Definition at line 146 of file PowhegPy8EG_H2a.py.

◆ lfvfilter

PowhegPy8EG_H2a.lfvfilter = TauFilter("lfvfilter")

Definition at line 255 of file PowhegPy8EG_H2a.py.

◆ newfile

string PowhegPy8EG_H2a.newfile = infile+'.temp'

Definition at line 17 of file PowhegPy8EG_H2a.py.

◆ Nhadtaus

PowhegPy8EG_H2a.Nhadtaus

Definition at line 260 of file PowhegPy8EG_H2a.py.

◆ Nleptaus

PowhegPy8EG_H2a.Nleptaus

Definition at line 259 of file PowhegPy8EG_H2a.py.

◆ Ntaus

PowhegPy8EG_H2a.Ntaus

Definition at line 258 of file PowhegPy8EG_H2a.py.

◆ PDGChild1

PowhegPy8EG_H2a.PDGChild1

Definition at line 239 of file PowhegPy8EG_H2a.py.

◆ PDGChild2

PowhegPy8EG_H2a.PDGChild2

Definition at line 240 of file PowhegPy8EG_H2a.py.

◆ PDGGrandParent

PowhegPy8EG_H2a.PDGGrandParent

Definition at line 235 of file PowhegPy8EG_H2a.py.

◆ pdgId

dictionary PowhegPy8EG_H2a.pdgId = dict_pdgIds[part]

Definition at line 128 of file PowhegPy8EG_H2a.py.

◆ PDGParent

PowhegPy8EG_H2a.PDGParent

Definition at line 236 of file PowhegPy8EG_H2a.py.

◆ process

PowhegPy8EG_H2a.process

Definition at line 150 of file PowhegPy8EG_H2a.py.

◆ Ptcuthad

PowhegPy8EG_H2a.Ptcuthad

Definition at line 265 of file PowhegPy8EG_H2a.py.

◆ Ptcuthad_lead

PowhegPy8EG_H2a.Ptcuthad_lead

Definition at line 266 of file PowhegPy8EG_H2a.py.

◆ Ptcutlep

PowhegPy8EG_H2a.Ptcutlep

Definition at line 263 of file PowhegPy8EG_H2a.py.

◆ Ptcutlep_lead

PowhegPy8EG_H2a.Ptcutlep_lead

Definition at line 264 of file PowhegPy8EG_H2a.py.

◆ sign

int PowhegPy8EG_H2a.sign = -1

Definition at line 126 of file PowhegPy8EG_H2a.py.

◆ StatusParent

PowhegPy8EG_H2a.StatusParent

Definition at line 237 of file PowhegPy8EG_H2a.py.

◆ UseNewOptions

PowhegPy8EG_H2a.UseNewOptions

Definition at line 257 of file PowhegPy8EG_H2a.py.

replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
PowhegPy8EG_H2a.getParameters
def getParameters()
Definition: PowhegPy8EG_H2a.py:39
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
str
Definition: BTagTrackIpAccessor.cxx:11
readCCLHist.float
float
Definition: readCCLHist.py:83
Trk::split
@ split
Definition: LayerMaterialProperties.h:38