ATLAS Offline Software
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
python.JetGrooming.JetTrimming Class Reference
Inheritance diagram for python.JetGrooming.JetTrimming:
Collaboration diagram for python.JetGrooming.JetTrimming:

Public Member Functions

def groomSpecAsStr (self)
 
def properties (self)
 
def suffix (self)
 
def modifiers (self)
 
def __hash__ (self)
 
def __eq__ (self, rhs)
 
def __ne__ (self, rhs)
 
def lock (self)
 
def __deepcopy__ (self, memo)
 
def ungroomeddef (self)
 
def ungroomeddef (self, ungroomeddef)
 
def context (self)
 
def fullname (self)
 
def __str__ (self)
 

Public Attributes

 inputdef
 
 properties
 
 suffix
 
 modifiers
 
 basename
 

Static Public Attributes

string groomalg = "Trim"
 
string tooltype = "JetGrooming::JetTrimming"
 

Private Member Functions

def _defineName (self)
 

Private Attributes

 _ungroomeddef
 
 _context
 
 _prereqDic
 
 _prereqOrder
 
 _locked
 
 _cflags
 
 _contextDic
 

Static Private Attributes

list _allowedattributes = ['_cflags','_contextDic']
 
def __repr__ = __str__
 

Detailed Description

Definition at line 132 of file JetGrooming.py.

Member Function Documentation

◆ __deepcopy__()

def python.JetGrooming.GroomingDefinition.__deepcopy__ (   self,
  memo 
)
inherited

Definition at line 75 of file JetGrooming.py.

75  def __deepcopy__(self, memo):
76  cls = self.__class__
77  result = cls.__new__(cls)
78  memo[id(self)] = result
79  set_without_deepcopy = ['_cflags']
80  for k, v in self.__dict__.items():
81  if k in set_without_deepcopy:
82  if v:
83  assert(v.locked())
84  setattr(result, k, v)
85  else:
86  setattr(result, k, deepcopy(v, memo))
87  return result
88 

◆ __eq__()

def python.JetGrooming.GroomingDefinition.__eq__ (   self,
  rhs 
)
inherited

Definition at line 59 of file JetGrooming.py.

59  def __eq__(self,rhs):
60  return self.__hash__() == rhs.__hash__()
61 

◆ __hash__()

def python.JetGrooming.GroomingDefinition.__hash__ (   self)
inherited

Definition at line 56 of file JetGrooming.py.

56  def __hash__(self):
57  return hash("")
58 

◆ __ne__()

def python.JetGrooming.GroomingDefinition.__ne__ (   self,
  rhs 
)
inherited

Definition at line 62 of file JetGrooming.py.

62  def __ne__(self,rhs):
63  return (not self.__eq__(rhs))
64 

◆ __str__()

def python.JetGrooming.GroomingDefinition.__str__ (   self)
inherited

Definition at line 126 of file JetGrooming.py.

126  def __str__(self):
127  return "JetGrooming({0})".format(self.basename)

◆ _defineName()

def python.JetGrooming.GroomingDefinition._defineName (   self)
privateinherited

Definition at line 120 of file JetGrooming.py.

120  def _defineName(self):
121  # chop the label off so we can insert the trimming spec
122  groomedName = self.ungroomeddef.basename + self.groomSpecAsStr()
123  self.basename = groomedName
124 

◆ context()

def python.JetGrooming.GroomingDefinition.context (   self)
inherited

Definition at line 108 of file JetGrooming.py.

108  def context(self): pass
109 

◆ fullname()

def python.JetGrooming.GroomingDefinition.fullname (   self)
inherited

Definition at line 114 of file JetGrooming.py.

114  def fullname(self):
115  return self.ungroomeddef.prefix+self.basename+"Jets"+self.suffix
116 
117 
118 
119 

◆ groomSpecAsStr()

def python.JetGrooming.JetTrimming.groomSpecAsStr (   self)

Reimplemented from python.JetGrooming.GroomingDefinition.

Definition at line 136 of file JetGrooming.py.

136  def groomSpecAsStr(self):
137  ptfrac = int( self.properties["PtFrac"] *100 ) # Not usually smaller than %
138  from .JetDefinition import formatRvalue
139  smallR = formatRvalue(self.properties["RClus"]*10)
140 
141  groomstr = "TrimmedPtFrac{}SmallR{}".format(ptfrac,smallR)
142  return groomstr
143 
144 

◆ lock()

def python.JetGrooming.GroomingDefinition.lock (   self)
inherited

Definition at line 65 of file JetGrooming.py.

65  def lock(self):
66  if not self._locked:
67  self._locked = True
68 

◆ modifiers()

def python.JetGrooming.GroomingDefinition.modifiers (   self)
inherited

Definition at line 103 of file JetGrooming.py.

103  def modifiers(self): pass

◆ properties()

def python.JetGrooming.GroomingDefinition.properties (   self)
inherited

Definition at line 101 of file JetGrooming.py.

101  def properties(self): pass

◆ suffix()

def python.JetGrooming.GroomingDefinition.suffix (   self)
inherited

Definition at line 105 of file JetGrooming.py.

105  def suffix(self): pass
106 

◆ ungroomeddef() [1/2]

def python.JetGrooming.GroomingDefinition.ungroomeddef (   self)
inherited

Definition at line 93 of file JetGrooming.py.

93  def ungroomeddef(self): pass

◆ ungroomeddef() [2/2]

def python.JetGrooming.GroomingDefinition.ungroomeddef (   self,
  ungroomeddef 
)
inherited

Definition at line 95 of file JetGrooming.py.

95  def ungroomeddef(self,ungroomeddef):
96  self._ungroomeddef = ungroomeddef.clone()
97  self._defineName()
98 
99 

Member Data Documentation

◆ __repr__

def python.JetGrooming.GroomingDefinition.__repr__ = __str__
staticprivateinherited

Definition at line 129 of file JetGrooming.py.

◆ _allowedattributes

list python.JetGrooming.GroomingDefinition._allowedattributes = ['_cflags','_contextDic']
staticprivateinherited

Definition at line 23 of file JetGrooming.py.

◆ _cflags

python.JetGrooming.GroomingDefinition._cflags
privateinherited

Definition at line 45 of file JetGrooming.py.

◆ _context

python.JetGrooming.GroomingDefinition._context
privateinherited

Definition at line 34 of file JetGrooming.py.

◆ _contextDic

python.JetGrooming.GroomingDefinition._contextDic
privateinherited

Definition at line 46 of file JetGrooming.py.

◆ _locked

python.JetGrooming.GroomingDefinition._locked
privateinherited

Definition at line 44 of file JetGrooming.py.

◆ _prereqDic

python.JetGrooming.GroomingDefinition._prereqDic
privateinherited

Definition at line 42 of file JetGrooming.py.

◆ _prereqOrder

python.JetGrooming.GroomingDefinition._prereqOrder
privateinherited

Definition at line 43 of file JetGrooming.py.

◆ _ungroomeddef

python.JetGrooming.GroomingDefinition._ungroomeddef
privateinherited

Definition at line 28 of file JetGrooming.py.

◆ basename

python.JetGrooming.GroomingDefinition.basename
inherited

Definition at line 123 of file JetGrooming.py.

◆ groomalg

string python.JetGrooming.JetTrimming.groomalg = "Trim"
static

Definition at line 133 of file JetGrooming.py.

◆ inputdef

python.JetGrooming.GroomingDefinition.inputdef
inherited

Definition at line 29 of file JetGrooming.py.

◆ modifiers

python.JetGrooming.GroomingDefinition.modifiers
inherited

Definition at line 38 of file JetGrooming.py.

◆ properties

python.JetGrooming.GroomingDefinition.properties
inherited

Definition at line 31 of file JetGrooming.py.

◆ suffix

python.JetGrooming.GroomingDefinition.suffix
inherited

Definition at line 35 of file JetGrooming.py.

◆ tooltype

string python.JetGrooming.JetTrimming.tooltype = "JetGrooming::JetTrimming"
static

Definition at line 134 of file JetGrooming.py.


The documentation for this class was generated from the following file:
TrigJetMonitorAlgorithm.modifiers
modifiers
Definition: TrigJetMonitorAlgorithm.py:1227
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
vtune_athena.format
format
Definition: vtune_athena.py:14
python.TestDriveDummies.properties
dictionary properties
Definition: TestDriveDummies.py:14
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.JetDefinition.formatRvalue
def formatRvalue(parameter)
Definition: JetDefinition.py:34
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109