|
| def | __init__ (self, gmpComponent) |
| |
| def | register (self, tup) |
| |
| def | Receive (self) |
| |
| def | RebuildHistoStore (self) |
| |
| def | bookDataObject (self, n, o) |
| |
| def | bookTH1D (self, n, o) |
| |
| def | bookTH2D (self, n, o) |
| |
| def | bookTH3D (self, n, o) |
| |
| def | bookTProfile (self, n, o) |
| |
| def | bookTProfile2D (self, n, o) |
| |
| def | __init__ (self, gmpComponent) |
| |
| def | register (self, tup) |
| |
| def | Receive (self) |
| |
| def | RebuildHistoStore (self) |
| |
| def | bookDataObject (self, n, o) |
| |
| def | bookTH1D (self, n, o) |
| |
| def | bookTH2D (self, n, o) |
| |
| def | bookTH3D (self, n, o) |
| |
| def | bookTProfile (self, n, o) |
| |
| def | bookTProfile2D (self, n, o) |
| |
Definition at line 49 of file pTools.py.
| def GaudiMP.pTools.HistoAgent.__init__ |
( |
|
self, |
|
|
|
gmpComponent |
|
) |
| |
| def GaudiMP.pTools.HistoAgent.__init__ |
( |
|
self, |
|
|
|
gmpComponent |
|
) |
| |
| def GaudiMP.pTools.HistoAgent.bookDataObject |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a DataObject to the Histo Store
Definition at line 135 of file pTools.py.
137 Register a DataObject to the Histo Store
139 self._gmpc.hvt.registerObject( n, o )
| def GaudiMP.pTools.HistoAgent.bookDataObject |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a DataObject to the Histo Store
Definition at line 135 of file pTools.py.
137 Register a DataObject to the Histo Store
139 self._gmpc.hvt.registerObject( n, o )
| def GaudiMP.pTools.HistoAgent.bookTH1D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT 1D THisto to the Histo Store
Definition at line 141 of file pTools.py.
143 Register a ROOT 1D THisto to the Histo Store
145 obj = self.hvt._ihs.book( n, o.GetTitle(),\
146 o.GetXaxis().GetNbins(),\
147 o.GetXaxis().GetXmin(),\
148 o.GetXaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTH1D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT 1D THisto to the Histo Store
Definition at line 141 of file pTools.py.
143 Register a ROOT 1D THisto to the Histo Store
145 obj = self.hvt._ihs.book( n, o.GetTitle(),\
146 o.GetXaxis().GetNbins(),\
147 o.GetXaxis().GetXmin(),\
148 o.GetXaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTH2D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT 2D THisto to the Histo Store
Definition at line 151 of file pTools.py.
153 Register a ROOT 2D THisto to the Histo Store
155 obj = self.hvt._ihs.book( n, o.GetTitle(),\
156 o.GetXaxis().GetNbins(),\
157 o.GetXaxis().GetXmin(),\
158 o.GetXaxis().GetXmax(),\
159 o.GetYaxis().GetNbins(),\
160 o.GetYaxis().GetXmin(),\
161 o.GetYaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTH2D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT 2D THisto to the Histo Store
Definition at line 151 of file pTools.py.
153 Register a ROOT 2D THisto to the Histo Store
155 obj = self.hvt._ihs.book( n, o.GetTitle(),\
156 o.GetXaxis().GetNbins(),\
157 o.GetXaxis().GetXmin(),\
158 o.GetXaxis().GetXmax(),\
159 o.GetYaxis().GetNbins(),\
160 o.GetYaxis().GetXmin(),\
161 o.GetYaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTH3D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT 3D THisto to the Histo Store
Definition at line 164 of file pTools.py.
166 Register a ROOT 3D THisto to the Histo Store
168 obj = self.hvt._ihs.book( n, o.GetTitle(),\
169 o.GetXaxis().GetXbins(),\
170 o.GetXaxis().GetXmin(),\
171 o.GetXaxis().GetXmax(),\
172 o.GetYaxis().GetXbins(),\
173 o.GetYaxis().GetXmin(),\
174 o.GetYaxis().GetXmax(),\
175 o.GetZaxis().GetXbins(),\
176 o.GetZaxis().GetXmin(),\
177 o.GetZaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTH3D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT 3D THisto to the Histo Store
Definition at line 164 of file pTools.py.
166 Register a ROOT 3D THisto to the Histo Store
168 obj = self.hvt._ihs.book( n, o.GetTitle(),\
169 o.GetXaxis().GetXbins(),\
170 o.GetXaxis().GetXmin(),\
171 o.GetXaxis().GetXmax(),\
172 o.GetYaxis().GetXbins(),\
173 o.GetYaxis().GetXmin(),\
174 o.GetYaxis().GetXmax(),\
175 o.GetZaxis().GetXbins(),\
176 o.GetZaxis().GetXmin(),\
177 o.GetZaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTProfile |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT TProfile to the Histo Store
Definition at line 180 of file pTools.py.
182 Register a ROOT TProfile to the Histo Store
184 obj = self.hvt._ihs.bookProf( n, o.GetTitle(),\
185 o.GetXaxis().GetNbins(),\
186 o.GetXaxis().GetXmin(),\
187 o.GetXaxis().GetXmax(),\
| def GaudiMP.pTools.HistoAgent.bookTProfile |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT TProfile to the Histo Store
Definition at line 180 of file pTools.py.
182 Register a ROOT TProfile to the Histo Store
184 obj = self.hvt._ihs.bookProf( n, o.GetTitle(),\
185 o.GetXaxis().GetNbins(),\
186 o.GetXaxis().GetXmin(),\
187 o.GetXaxis().GetXmax(),\
| def GaudiMP.pTools.HistoAgent.bookTProfile2D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT TProfile2D to the Histo Store
Definition at line 191 of file pTools.py.
193 Register a ROOT TProfile2D to the Histo Store
195 obj = self.hvt._ihs.bookProf( n, o.GetTitle(),\
196 o.GetXaxis().GetNbins(),\
197 o.GetXaxis().GetXmin(),\
198 o.GetXaxis().GetXmax(),\
199 o.GetYaxis().GetNbins(),\
200 o.GetYaxis().GetXmin(),\
201 o.GetYaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.bookTProfile2D |
( |
|
self, |
|
|
|
n, |
|
|
|
o |
|
) |
| |
Register a ROOT TProfile2D to the Histo Store
Definition at line 191 of file pTools.py.
193 Register a ROOT TProfile2D to the Histo Store
195 obj = self.hvt._ihs.bookProf( n, o.GetTitle(),\
196 o.GetXaxis().GetNbins(),\
197 o.GetXaxis().GetXmin(),\
198 o.GetXaxis().GetXmax(),\
199 o.GetYaxis().GetNbins(),\
200 o.GetYaxis().GetXmin(),\
201 o.GetYaxis().GetXmax() )
| def GaudiMP.pTools.HistoAgent.RebuildHistoStore |
( |
|
self | ) |
|
Rebuild the Histogram Store from the histos received by Receive()
If we have a histo which is not in the store,
book and fill it according to self.bookingDict
If we have a histo with a matching histo in the store,
add the two histos, remembering that aida2root must be used on
the Stored histo for compatibility.
Definition at line 89 of file pTools.py.
91 Rebuild the Histogram Store from the histos received by Receive()
92 If we have a histo which is not in the store,
93 book and fill it according to self.bookingDict
94 If we have a histo with a matching histo in the store,
95 add the two histos, remembering that aida2root must be used on
96 the Stored histo for compatibility.
100 workerID, histDict = tup
101 added = 0 ; registered = 0; booked = 0
103 for n
in histDict.keys() :
105 obj = self.hvt.retrieve( n )
111 self.log.warning(
'FAILED TO ADD : %s'%(str(obj)))
116 if o.__class__.__name__
in self.bookingDict.keys() :
120 self.log.warning(
'FAILED TO REGISTER : %s\tto%s'\
121 %(o.__class__.__name__, n))
124 self.log.warning(
'No booking method for: %s\t%s\t%s'\
125 %(n,
type(o),o.__class__.__name__) )
128 hs = self.hvt.getHistoNames()
129 self.log.info(
'Histo Store Rebuilt : ' )
130 self.log.info(
' Contains %i objects.'%(len(hs)) )
131 self.log.info(
' Errors in Rebuilding : %i'%(errors) )
| def GaudiMP.pTools.HistoAgent.RebuildHistoStore |
( |
|
self | ) |
|
Rebuild the Histogram Store from the histos received by Receive()
If we have a histo which is not in the store,
book and fill it according to self.bookingDict
If we have a histo with a matching histo in the store,
add the two histos, remembering that aida2root must be used on
the Stored histo for compatibility.
Definition at line 89 of file pTools.py.
91 Rebuild the Histogram Store from the histos received by Receive()
92 If we have a histo which is not in the store,
93 book and fill it according to self.bookingDict
94 If we have a histo with a matching histo in the store,
95 add the two histos, remembering that aida2root must be used on
96 the Stored histo for compatibility.
100 workerID, histDict = tup
101 added = 0 ; registered = 0; booked = 0
103 for n
in histDict.keys() :
105 obj = self.hvt.retrieve( n )
111 self.log.warning(
'FAILED TO ADD : %s'%(str(obj)))
116 if o.__class__.__name__
in self.bookingDict.keys() :
120 self.log.warning(
'FAILED TO REGISTER : %s\tto%s'\
121 %(o.__class__.__name__, n))
124 self.log.warning(
'No booking method for: %s\t%s\t%s'\
125 %(n,
type(o),o.__class__.__name__) )
128 hs = self.hvt.getHistoNames()
129 self.log.info(
'Histo Store Rebuilt : ' )
130 self.log.info(
' Contains %i objects.'%(len(hs)) )
131 self.log.info(
' Errors in Rebuilding : %i'%(errors) )
| def GaudiMP.pTools.HistoAgent.Receive |
( |
|
self | ) |
|
Definition at line 74 of file pTools.py.
75 hstatus = self._gmpc.nWorkers+1
78 if tup ==
'HISTOS_SENT' :
79 self.log.debug(
'received HISTOS_SENT message')
81 if not hstatus :
break
84 self._gmpc.sEvent.set()
85 self.log.info(
'Writer received all histo bundles and set sync event')
| def GaudiMP.pTools.HistoAgent.Receive |
( |
|
self | ) |
|
Definition at line 74 of file pTools.py.
75 hstatus = self._gmpc.nWorkers+1
78 if tup ==
'HISTOS_SENT' :
79 self.log.debug(
'received HISTOS_SENT message')
81 if not hstatus :
break
84 self._gmpc.sEvent.set()
85 self.log.info(
'Writer received all histo bundles and set sync event')
| def GaudiMP.pTools.HistoAgent.register |
( |
|
self, |
|
|
|
tup |
|
) |
| |
Definition at line 69 of file pTools.py.
71 assert tup.__class__.__name__ ==
'tuple'
72 self.histos.append( tup )
| def GaudiMP.pTools.HistoAgent.register |
( |
|
self, |
|
|
|
tup |
|
) |
| |
Definition at line 69 of file pTools.py.
71 assert tup.__class__.__name__ ==
'tuple'
72 self.histos.append( tup )
| GaudiMP.pTools.HistoAgent._gmpc |
|
private |
| GaudiMP.pTools.HistoAgent.bookingDict |
| GaudiMP.pTools.HistoAgent.histos |
| GaudiMP.pTools.HistoAgent.hvt |
| GaudiMP.pTools.HistoAgent.log |
| GaudiMP.pTools.HistoAgent.qin |
The documentation for this class was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/python/GaudiMP/pTools.py