ATLAS Offline Software
Loading...
Searching...
No Matches
python.samplers.TH1Sampler Class Reference
Inheritance diagram for python.samplers.TH1Sampler:
Collaboration diagram for python.samplers.TH1Sampler:

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

 __init__ (self, *args)
 shoot (self)
 __call__ (self)

Public Attributes

 hist = TH1(*args)

Detailed Description

Definition at line 186 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.samplers.TH1Sampler.__init__ ( self,
* args )

Definition at line 189 of file samplers.py.

189 def __init__(self, *args):
190 self.hist = TH1(*args)
191 if self.hist.GetEntries() < 1:
192 raise Exception("Histogram %s is EMPTY! Cannot sample" % self.hist.GetName())
193
TGraphErrors * GetEntries(TH2F *histo)

Member Function Documentation

◆ __call__()

python.samplers.Sampler.__call__ ( self)
inherited
This is the call method that will actually be used (so that normal
functions can also be passed in as samplers).

Definition at line 17 of file samplers.py.

17 def __call__(self):
18 """This is the call method that will actually be used (so that normal
19 functions can also be passed in as samplers)."""
20 return self.shoot()
21

◆ shoot()

python.samplers.TH1Sampler.shoot ( self)

Reimplemented from python.samplers.Sampler.

Definition at line 194 of file samplers.py.

194 def shoot(self):
195 return self.hist.GetRandom()
196
197

Member Data Documentation

◆ hist

python.samplers.TH1Sampler.hist = TH1(*args)

Definition at line 190 of file samplers.py.


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