Jpp
18.6.0-rc.1
the software that should make you happy
|
Thread pool for global fits. More...
#include <JFremantle_t.hh>
Public Types | |
typedef std::vector< JHit > | input_type |
typedef JLANG::JObjectOutput < JSuperEvt > | output_type |
Public Member Functions | |
JFremantle (const JGeometry &geometry, const JSoundVelocity &velocity, const JFitParameters ¶meters, const size_t ns, const size_t backlog=std::numeric_limits< size_t >::max()) | |
Constructor. More... | |
~JFremantle () | |
Destructor. More... | |
void | enqueue (input_type &data) |
Queue data. More... | |
Static Public Attributes | |
static std::string | oid = "" |
detector identifier More... | |
static JMATH::JQuantile_t | Q |
chi2/NDF More... | |
static bool | squash = false |
squash transmissions in output More... | |
static output_type * | output = NULL |
optional output More... | |
Private Attributes | |
std::vector< std::thread > | workers |
std::queue< input_type > | input |
std::mutex | in |
std::mutex | out |
std::condition_variable | cv |
std::condition_variable | cw |
bool | stop |
size_t | backlog |
Thread pool for global fits.
Definition at line 33 of file JFremantle_t.hh.
Definition at line 36 of file JFremantle_t.hh.
Definition at line 37 of file JFremantle_t.hh.
|
inline |
Constructor.
geometry | detector geometry |
velocity | sound velocity |
parameters | parameters |
ns | number of threads |
backlog | backlog |
Definition at line 49 of file JFremantle_t.hh.
|
inline |
|
inline |
|
static |
detector identifier
Definition at line 162 of file JFremantle_t.hh.
|
static |
chi2/NDF
Definition at line 163 of file JFremantle_t.hh.
|
static |
squash transmissions in output
Definition at line 164 of file JFremantle_t.hh.
|
static |
optional output
Definition at line 165 of file JFremantle_t.hh.
|
private |
Definition at line 168 of file JFremantle_t.hh.
|
private |
Definition at line 169 of file JFremantle_t.hh.
|
private |
Definition at line 170 of file JFremantle_t.hh.
|
private |
Definition at line 171 of file JFremantle_t.hh.
|
private |
Definition at line 172 of file JFremantle_t.hh.
|
private |
Definition at line 173 of file JFremantle_t.hh.
|
private |
Definition at line 174 of file JFremantle_t.hh.
|
private |
Definition at line 175 of file JFremantle_t.hh.