ATLAS Offline Software
Loading...
Searching...
No Matches
JetHistoManager.JetHistoManager Class Reference
Inheritance diagram for JetHistoManager.JetHistoManager:
Collaboration diagram for JetHistoManager.JetHistoManager:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Static Public Attributes

dict knownTools = {}

Detailed Description

Definition at line 3 of file JetHistoManager.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Member Function Documentation

◆ addTool()

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

◆ hasTool()

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

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

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
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130

Member Data Documentation

◆ knownTools

dict JetHistoManager.JetHistoManager.knownTools = {}
static

Definition at line 5 of file JetHistoManager.py.


The documentation for this class was generated from the following file: