◆ __init__()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
monGroups, |
|
|
|
cpart, |
|
|
|
tool = None |
|
) |
| |
Definition at line 21 of file TrigEgammaFastPhotonHypoTool.py.
21 def __init__(self, name,monGroups, cpart, tool=None):
23 from AthenaCommon.Logging
import logging
24 self.__log = logging.getLogger(
'TrigEgammaFastPhotonHypoTool')
26 self.__threshold =
float(cpart[
'threshold'])
27 self.__sel =
'ion' if 'ion' in cpart[
'extra']
else (cpart[
'addInfo'][0]
if cpart[
'addInfo']
else cpart[
'IDinfo'])
28 self.__monGroups = monGroups
31 from AthenaConfiguration.ComponentFactory
import CompFactory
32 tool = CompFactory.TrigEgammaFastPhotonHypoTool(name)
36 tool.EtaBins = [0.0, 0.6, 0.8, 1.15, 1.37, 1.52, 1.81, 2.01, 2.37, 2.47]
37 tool.ETthr = self.same( 0.0 )
38 tool.CARCOREthr = self.same( 0.0 )
39 tool.CAERATIOthr = self.same( 0.0)
40 tool.F1thr = self.same( 0.005 )
41 tool.ET2thr = self.same( 90.0 * GeV )
42 tool.HADET2thr = self.same( 999. * GeV )
43 tool.HADETthr = self.same( 999. * GeV )
48 self.__log.
debug(
'Chain :%s', self.__name )
49 self.__log.
debug(
'Threshold :%s', self.__threshold )
50 self.__log.
debug(
'Pidname :%s', self.__sel )
◆ addMonitoring()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.addMonitoring |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 113 of file TrigEgammaFastPhotonHypoTool.py.
113 def addMonitoring(self, flags):
116 HistPath =
'FastPhotonHypo/'+self.chain())
117 monTool.defineHistogram(
'CutCounter', type=
'TH1I', path=
'EXPERT', title=
"FastPhoton Hypo Cut Counter;Cut Counter", xbins=8, xmin=-1.5, xmax=7.5, opt=
"kCumulative")
118 monTool.defineHistogram(
'Et', type=
'TH1F', path=
'EXPERT', title=
"FastPhoton Hypo E_{T}^{EM};E_{T}^{EM} [MeV]",xbins=50, xmin=-2000, xmax=100000)
119 monTool.defineHistogram(
'Eta', type=
'TH1F', path=
'EXPERT', title=
"FastPhoton Hypo #eta^{calo} ; #eta^{calo};Nevents", xbins=200, xmin=-2.5, xmax=2.5)
120 monTool.defineHistogram(
'Phi', type=
'TH1F', path=
'EXPERT', title=
"FastPhoton Hypo #phi^{calo} ; #phi^{calo};Nevents", xbins=320, xmin=-3.2, xmax=3.2)
121 monTool.defineHistogram(
'Rcore', type=
'TH1F', path=
'EXPERT', title=
"FastPhoton Hypo R_{core};E^{3x7}/E^{7x7} in sampling 2",xbins=48, xmin=-0.1, xmax=1.1)
122 monTool.defineHistogram(
'Eratio', type=
'TH1F', path=
'EXPERT',title=
"FastPhoton Hypo E_{ratio};E^{max1}-E^{max2}/E^{max1}+E^{max2} in sampling 1 (excl.crack)",xbins=64, xmin=-0.1, xmax=1.5)
123 monTool.defineHistogram(
'Et_had', type=
'TH1F', path=
'EXPERT', title=
"FastPhoton Hypo E_{T}^{had} in first layer;E_{T}^{had} [MeV]",xbins=50, xmin=-2000, xmax=100000)
124 monTool.defineHistogram(
'F1', type=
'TH1F', path=
'EXPERT', title=
"FastPhoton Hypo f_{1};f_{1}", xbins=34, xmin=-0.5, xmax=1.2)
126 self.__tool.MonTool = monTool
◆ chain()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.chain |
( |
|
self | ) |
|
◆ compile()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.compile |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 89 of file TrigEgammaFastPhotonHypoTool.py.
89 def compile(self, flags):
90 if self.pidname()
in (
'etcut',
'ion',
'nopid'):
92 elif 'noalg' == self.pidname():
94 elif 0 == self.etthr():
101 if hasattr(self.tool(),
"MonTool"):
103 doValidationMonitoring = flags.Trigger.doValidationMonitoring
104 monGroups = self.__monGroups
106 if (any(
'egammaMon:online' in group
for group
in monGroups)
or doValidationMonitoring):
107 self.addMonitoring(flags)
◆ etcut()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.etcut |
( |
|
self | ) |
|
Definition at line 66 of file TrigEgammaFastPhotonHypoTool.py.
67 self.__log.
debug(
'Chain :%s configured with etcut selection', self.chain() )
68 self.tool().ETthr = self.same( self.etthr() *GeV - 3.* GeV)
◆ etthr()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.etthr |
( |
|
self | ) |
|
◆ nocut()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.nocut |
( |
|
self | ) |
|
◆ nominal()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.nominal |
( |
|
self | ) |
|
Definition at line 74 of file TrigEgammaFastPhotonHypoTool.py.
75 from TrigEgammaHypo.TrigEgammaFastCutDefs
import TrigFastPhotonCutMaps
76 self.__log.
debug(
'Chain :%s configured with nominal selection', self.chain() )
77 self.tool().ETthr = self.same( self.etthr() *GeV - 3.* GeV)
78 self.tool().CARCOREthr = TrigFastPhotonCutMaps( self.etthr() ).MapsCARCOREthr[ self.pidname() ]
79 self.tool().CAERATIOthr = TrigFastPhotonCutMaps( self.etthr() ).MapsCAERATIOthr [ self.pidname() ]
80 self.tool().HADETthr = TrigFastPhotonCutMaps( self.etthr() ).MapsHADETthr[ self.pidname() ]
81 self.tool().HADET2thr = self.same(999.0 * GeV)
82 self.tool().F1thr = self.same(0.005)
83 self.tool().ET2thr = self.same( 90.0*GeV )
◆ pidname()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.pidname |
( |
|
self | ) |
|
◆ same()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.same |
( |
|
self, |
|
|
|
val |
|
) |
| |
◆ tool()
def python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.tool |
( |
|
self | ) |
|
◆ __log
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__log |
|
private |
◆ __monGroups
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__monGroups |
|
private |
◆ __name
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__name |
|
private |
◆ __operation_points
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__operation_points |
|
staticprivate |
◆ __sel
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__sel |
|
private |
◆ __threshold
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__threshold |
|
private |
◆ __tool
python.TrigEgammaFastPhotonHypoTool.TrigEgammaFastPhotonHypoToolConfig.__tool |
|
private |
The documentation for this class was generated from the following file: