|
def | __init__ (self, algorithm, radius, inputdef, ptmin=5e3 *MeV, ghostdefs=[], modifiers=[], extrainputs=[], standardRecoMode=False, prefix="", suffix="", infix="", context="default", VRMinR=-1.0, VRMassSc=-1.0, ghostarea=0.01, byVertex=False, lock=False) |
|
def | __hash__ (self) |
|
def | __eq__ (self, rhs) |
|
def | __ne__ (self, rhs) |
|
def | lock (self) |
|
def | __deepcopy__ (self, memo) |
|
def | algorithm (self) |
|
def | algorithm (self, algorithm) |
|
def | radius (self) |
|
def | radius (self, radius) |
|
def | inputdef (self) |
|
def | inputdef (self, inputdef) |
|
def | prefix (self) |
|
def | suffix (self) |
|
def | infix (self) |
|
def | basename (self) |
|
def | basename (self, v) |
|
def | ghostdefs (self) |
|
def | modifiers (self) |
|
def | extrainputs (self) |
|
def | standardRecoMode (self) |
|
def | VRMinRadius (self) |
|
def | VRMassScale (self) |
|
def | context (self) |
|
def | ghostarea (self) |
|
def | fullname (self) |
|
def | __str__ (self) |
|
Definition at line 68 of file JetDefinition.py.
◆ __init__()
def python.JetDefinition.JetDefinition.__init__ |
( |
|
self, |
|
|
|
algorithm, |
|
|
|
radius, |
|
|
|
inputdef, |
|
|
|
ptmin = 5e3*MeV , |
|
|
|
ghostdefs = [] , |
|
|
|
modifiers = [] , |
|
|
|
extrainputs = [] , |
|
|
|
standardRecoMode = False , |
|
|
|
prefix = "" , |
|
|
|
suffix = "" , |
|
|
|
infix = "" , |
|
|
|
context = "default" , |
|
|
|
VRMinR = -1.0 , |
|
|
|
VRMassSc = -1.0 , |
|
|
|
ghostarea = 0.01 , |
|
|
|
byVertex = False , |
|
|
|
lock = False |
|
) |
| |
Definition at line 70 of file JetDefinition.py.
78 standardRecoMode = False,
93 if algorithm
not in [
"Kt",
"AntiKt",
"CamKt"]:
94 jetlog.error(
"FastJet algorithm specification was not one of Kt, AntiKt, CamKt!")
95 raise KeyError(
"Invalid fastjet algorithm choice: {0}".
format(self.algorithm))
96 self._algorithm = algorithm
99 self._inputdef = inputdef
100 self._prefix = prefix
101 self._suffix = suffix
103 self._context = context
104 self._VRMinRadius = VRMinR
105 self._VRMassScale = VRMassSc
106 self._ghostarea = ghostarea
111 self.ghostdefs = ghostdefs
112 self.modifiers = modifiers
113 self.extrainputs = extrainputs
115 self.standardRecoMode = standardRecoMode
119 self._prereqOrder = []
120 self._internalAtt = {}
122 self._contextDic =
None
123 self.byVertex = byVertex
◆ __deepcopy__()
def python.JetDefinition.JetDefinition.__deepcopy__ |
( |
|
self, |
|
|
|
memo |
|
) |
| |
Definition at line 146 of file JetDefinition.py.
146 def __deepcopy__(self, memo):
148 result = cls.__new__(cls)
149 memo[
id(self)] = result
150 set_without_deepcopy = [
'_cflags']
151 for k, v
in self.__dict__.
items():
152 if k
in set_without_deepcopy:
155 setattr(result, k, v)
157 setattr(result, k, deepcopy(v, memo))
◆ __eq__()
def python.JetDefinition.JetDefinition.__eq__ |
( |
|
self, |
|
|
|
rhs |
|
) |
| |
Definition at line 130 of file JetDefinition.py.
130 def __eq__(self,rhs):
131 return self.__hash__() == rhs.__hash__()
◆ __hash__()
def python.JetDefinition.JetDefinition.__hash__ |
( |
|
self | ) |
|
Definition at line 127 of file JetDefinition.py.
128 return hash((self.basename,self._inputdef,self.ptmin,
str(self.ghostdefs),
str(self.modifiers),
str(self.extrainputs),self.byVertex))
◆ __ne__()
def python.JetDefinition.JetDefinition.__ne__ |
( |
|
self, |
|
|
|
rhs |
|
) |
| |
Definition at line 133 of file JetDefinition.py.
133 def __ne__(self,rhs):
134 return (
not self.__eq__(rhs))
◆ __str__()
def python.JetDefinition.JetDefinition.__str__ |
( |
|
self | ) |
|
Definition at line 238 of file JetDefinition.py.
239 return f
"JetDefinition({self.fullname()})"
◆ _defineName()
def python.JetDefinition.JetDefinition._defineName |
( |
|
self | ) |
|
|
private |
Definition at line 228 of file JetDefinition.py.
228 def _defineName(self):
229 self._basename =
buildJetAlgName(self.algorithm,self.radius,self.VRMassScale,self.VRMinRadius)+self.inputdef.label
230 if self.inputdef.basetype == xAODType.CaloCluster:
234 self._basename = self.basename.
replace(
"Origin",
"")
◆ algorithm() [1/2]
def python.JetDefinition.JetDefinition.algorithm |
( |
|
self | ) |
|
◆ algorithm() [2/2]
def python.JetDefinition.JetDefinition.algorithm |
( |
|
self, |
|
|
|
algorithm |
|
) |
| |
◆ basename() [1/2]
def python.JetDefinition.JetDefinition.basename |
( |
|
self | ) |
|
◆ basename() [2/2]
def python.JetDefinition.JetDefinition.basename |
( |
|
self, |
|
|
|
v |
|
) |
| |
Definition at line 200 of file JetDefinition.py.
201 raise Exception(
"Can NOT set property basename of JetDefinition ",self,
" Change prefix, infix or suffix instead.")
◆ context()
def python.JetDefinition.JetDefinition.context |
( |
|
self | ) |
|
◆ extrainputs()
def python.JetDefinition.JetDefinition.extrainputs |
( |
|
self | ) |
|
◆ fullname()
def python.JetDefinition.JetDefinition.fullname |
( |
|
self | ) |
|
Definition at line 225 of file JetDefinition.py.
226 return self.prefix+self.basename+self.infix+
"Jets"+self.suffix
◆ ghostarea()
def python.JetDefinition.JetDefinition.ghostarea |
( |
|
self | ) |
|
◆ ghostdefs()
def python.JetDefinition.JetDefinition.ghostdefs |
( |
|
self | ) |
|
◆ infix()
def python.JetDefinition.JetDefinition.infix |
( |
|
self | ) |
|
◆ inputdef() [1/2]
def python.JetDefinition.JetDefinition.inputdef |
( |
|
self | ) |
|
◆ inputdef() [2/2]
def python.JetDefinition.JetDefinition.inputdef |
( |
|
self, |
|
|
|
inputdef |
|
) |
| |
Definition at line 183 of file JetDefinition.py.
183 def inputdef(self,inputdef):
184 self._inputdef = inputdef
◆ lock()
def python.JetDefinition.JetDefinition.lock |
( |
|
self | ) |
|
◆ modifiers()
def python.JetDefinition.JetDefinition.modifiers |
( |
|
self | ) |
|
◆ prefix()
def python.JetDefinition.JetDefinition.prefix |
( |
|
self | ) |
|
◆ radius() [1/2]
def python.JetDefinition.JetDefinition.radius |
( |
|
self | ) |
|
◆ radius() [2/2]
def python.JetDefinition.JetDefinition.radius |
( |
|
self, |
|
|
|
radius |
|
) |
| |
◆ standardRecoMode()
def python.JetDefinition.JetDefinition.standardRecoMode |
( |
|
self | ) |
|
◆ suffix()
def python.JetDefinition.JetDefinition.suffix |
( |
|
self | ) |
|
◆ VRMassScale()
def python.JetDefinition.JetDefinition.VRMassScale |
( |
|
self | ) |
|
◆ VRMinRadius()
def python.JetDefinition.JetDefinition.VRMinRadius |
( |
|
self | ) |
|
◆ __repr__
def python.JetDefinition.JetDefinition.__repr__ = __str__ |
|
staticprivate |
◆ _algorithm
python.JetDefinition.JetDefinition._algorithm |
|
private |
◆ _allowedattributes
◆ _basename
python.JetDefinition.JetDefinition._basename |
|
private |
◆ _cflags
python.JetDefinition.JetDefinition._cflags |
|
private |
◆ _context
python.JetDefinition.JetDefinition._context |
|
private |
◆ _contextDic
python.JetDefinition.JetDefinition._contextDic |
|
private |
◆ _ghostarea
python.JetDefinition.JetDefinition._ghostarea |
|
private |
◆ _infix
python.JetDefinition.JetDefinition._infix |
|
private |
◆ _inputdef
python.JetDefinition.JetDefinition._inputdef |
|
private |
◆ _internalAtt
python.JetDefinition.JetDefinition._internalAtt |
|
private |
◆ _locked
python.JetDefinition.JetDefinition._locked |
|
private |
◆ _prefix
python.JetDefinition.JetDefinition._prefix |
|
private |
◆ _prereqDic
python.JetDefinition.JetDefinition._prereqDic |
|
private |
◆ _prereqOrder
python.JetDefinition.JetDefinition._prereqOrder |
|
private |
◆ _radius
python.JetDefinition.JetDefinition._radius |
|
private |
◆ _suffix
python.JetDefinition.JetDefinition._suffix |
|
private |
◆ _VRMassScale
python.JetDefinition.JetDefinition._VRMassScale |
|
private |
◆ _VRMinRadius
python.JetDefinition.JetDefinition._VRMinRadius |
|
private |
◆ byVertex
python.JetDefinition.JetDefinition.byVertex |
◆ extrainputs
python.JetDefinition.JetDefinition.extrainputs |
◆ ghostdefs
python.JetDefinition.JetDefinition.ghostdefs |
◆ modifiers
python.JetDefinition.JetDefinition.modifiers |
◆ ptmin
python.JetDefinition.JetDefinition.ptmin |
◆ standardRecoMode
python.JetDefinition.JetDefinition.standardRecoMode |
The documentation for this class was generated from the following file: