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

Public Member Functions

def addTool (self, tool, alias="")
 
def hasTool (self, name)
 
def tool (self, name, build2Difmissing=True)
 
def printTools (self)
 

Static Public Attributes

dictionary knownTools = {}
 

Detailed Description

Definition at line 3 of file JetHistoManager.py.

Member Function Documentation

◆ addTool()

def JetHistoManager.JetHistoManager.addTool (   self,
  tool,
  alias = "" 
)

Definition at line 6 of file JetHistoManager.py.

6  def addTool(self, tool, alias=""):
7  tname = tool.getName()
8  name = tname if alias == "" else alias
9  if name in self.knownTools:
10  print ("ERROR won't add tool ", name," : already existing")
11  return
12 
13  self.knownTools[name] = tool
14  aname = name.replace(':','_').replace('[','_').replace(']','')
15 
16  setattr(self, aname , tool)
17  return tool
18 

◆ hasTool()

def JetHistoManager.JetHistoManager.hasTool (   self,
  name 
)

Definition at line 19 of file JetHistoManager.py.

19  def hasTool(self,name):
20  return name in self.knownTools
21 

◆ printTools()

def JetHistoManager.JetHistoManager.printTools (   self)

Definition at line 29 of file JetHistoManager.py.

29  def printTools(self):
30  for n, t in self.knownTools.items():
31  print ('%20s %40s'%(n, type(t)))
32 

◆ tool()

def JetHistoManager.JetHistoManager.tool (   self,
  name,
  build2Difmissing = True 
)

Definition at line 22 of file JetHistoManager.py.

22  def tool(self, name, build2Difmissing=True):
23  t = self.knownTools.get(name, None)
24  if t is None and ":" in name and build2Difmissing:
25  from JetMonitoring.JetAttributeHistoManager import attributeHistoManager as ahm
26  t = ahm.create2DHistoToolFrom1D(name)
27  return t
28 

Member Data Documentation

◆ knownTools

dictionary JetHistoManager.JetHistoManager.knownTools = {}
static

Definition at line 5 of file JetHistoManager.py.


The documentation for this class was generated from the following file:
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127