ATLAS Offline Software
Classes | Functions | Variables
python.JetDefinition Namespace Reference

Classes

class  JetConstitModifier
 
class  JetDefinition
 
class  JetInputConstit
 
class  JetInputConstitSeq
 
class  JetInputExternal
 
class  JetInputType
 
class  JetModifier
 

Functions

def formatRvalue (parameter)
 
def buildJetAlgName (finder, mainParam, variableRMassScale=-1.0, variableRMinRadius=-1.0)
 
def _condAlwaysPass (condflags)
 
def buildNothing (*l)
 

Variables

list __all__ = [ "JetDefinition","xAODType", "JetModifier", "JetConstitModifier" , "JetInputConstitSeq", "JetInputExternal"]
 
 jetlog = Logging.logging.getLogger('JetDefinition')
 

Function Documentation

◆ _condAlwaysPass()

def python.JetDefinition._condAlwaysPass (   condflags)
private

Definition at line 61 of file JetDefinition.py.

61 def _condAlwaysPass(condflags):
62  return True,""
63 

◆ buildJetAlgName()

def python.JetDefinition.buildJetAlgName (   finder,
  mainParam,
  variableRMassScale = -1.0,
  variableRMinRadius = -1.0 
)
variableRMassScale (Rho) in MeV 

Definition at line 50 of file JetDefinition.py.

50 def buildJetAlgName(finder, mainParam,
51  variableRMassScale= -1.0, variableRMinRadius=-1.0):
52  """variableRMassScale (Rho) in MeV """
53  if ( variableRMassScale >= 0.0 and variableRMinRadius >= 0.0):
54  rmaxstr = formatRvalue(mainParam)
55  rminstr = formatRvalue(variableRMinRadius)
56  return f"{finder}VR{str(int(variableRMassScale/1000))}Rmax{rmaxstr}Rmin{rminstr}"
57  return finder + formatRvalue(mainParam)
58 
59 
60 

◆ buildNothing()

def python.JetDefinition.buildNothing ( l)

Definition at line 659 of file JetDefinition.py.

659 def buildNothing(*l):
660  return None

◆ formatRvalue()

def python.JetDefinition.formatRvalue (   parameter)
Define the convention that we write R truncating the decimal point
if R>=1, then we write R*10.
(Code from JetRecUtils )

Definition at line 34 of file JetDefinition.py.

34 def formatRvalue(parameter):
35  """Define the convention that we write R truncating the decimal point
36  if R>=1, then we write R*10.
37  (Code from JetRecUtils )
38  """
39  # impose precision limits where there could be ambiguity
40  if int(10*parameter)>=1 and int(100*parameter % 10):
41  #jetlog.warning('Radius parameter {0} exceeds allowable precision of 0.1'.format(parameter))
42  raise ValueError('Bad radius parameter')
43  if int(parameter)>=1:
44  return "{0:.0f}".format(10*parameter)
45  else:
46  return "{0:.1g}".format(10*parameter).replace('.','')
47 
48 
49 # Could also split off a VR name builder

Variable Documentation

◆ __all__

list python.JetDefinition.__all__ = [ "JetDefinition","xAODType", "JetModifier", "JetConstitModifier" , "JetInputConstitSeq", "JetInputExternal"]
private

Definition at line 24 of file JetDefinition.py.

◆ jetlog

python.JetDefinition.jetlog = Logging.logging.getLogger('JetDefinition')

Definition at line 27 of file JetDefinition.py.

python.JetDefinition._condAlwaysPass
def _condAlwaysPass(condflags)
Definition: JetDefinition.py:61
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
vtune_athena.format
format
Definition: vtune_athena.py:14
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.JetDefinition.buildJetAlgName
def buildJetAlgName(finder, mainParam, variableRMassScale=-1.0, variableRMinRadius=-1.0)
Definition: JetDefinition.py:50
python.JetDefinition.formatRvalue
def formatRvalue(parameter)
Definition: JetDefinition.py:34
python.JetDefinition.buildNothing
def buildNothing(*l)
Definition: JetDefinition.py:659