ATLAS Offline Software
Loading...
Searching...
No Matches
python.JetDefinition Namespace Reference

Classes

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

Functions

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

Variables

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

Detailed Description

JetDefinition: A module for classes encoding definitions of jets and 
related objects for configuring jet reconstruction                   

Various classes encode definitions of different types of components used in Jet Reco.
They are : 

 - JetInputExternal : describes how to build a source container, typically external to the jet domain. This includes input to jet finding  (ex: CaloCluster, Track) but also other sources like EventDensity...

 - JetInputConstit :  describes specifically an input constituents container (an input to a PseudoJetAlgorithm), thus referring to a JetInputExternal as the primary source.
 - JetInputConstitSeq : a subclass of JetInputConstit, describing how a constituents container is build from a JetConstituentModSequence (ex: PU or Origin correction).
 - JetConstitModifier : describes a constituent modifier tool to be used in a JetConstituentModSequence

 - JetDefinition : describes a full jet reco sequence. Uses a JetInputConstit and a list of JetModifier
 - JetModifier : describes a JetModifier c++ tool. 

Author: TJ Khoo, P-A Delsart                                         

Function Documentation

◆ _condAlwaysPass()

python.JetDefinition._condAlwaysPass ( condflags)
protected

Definition at line 61 of file JetDefinition.py.

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

◆ buildJetAlgName()

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

Definition at line 50 of file JetDefinition.py.

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()

python.JetDefinition.buildNothing ( * l)

Definition at line 659 of file JetDefinition.py.

659def buildNothing(*l):
660 return None

◆ formatRvalue()

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.

34def 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
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition hcg.cxx:310

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.