Jpp test-rotations-old
the software that should make you happy
|
Event selector. More...
#include <JEventSelector.hh>
Public Types | |
typedef JReturn_t(*) | pF(Args...) |
Type definition of method. | |
Public Member Functions | |
JEventSelector () | |
Default constructor. | |
JReturn_t | operator() (Args... args) const |
Function operation. | |
bool | is_valid () const |
Check validity of function. | |
void | reset () |
Reset function adaptor helper. | |
void | set (void(*)(Args...) pf) |
Set function. | |
void | get (const char *symbol) |
Get function with given name according to specific protocol. | |
bool | is_open () const |
Check if shared library file is open. | |
void | open (const char *file_name) |
Open file. | |
void | close () |
Close file. | |
void | load (const std::string &libso, const std::string &symbol) |
Load function from shared library. | |
void | reload () |
Reload function from shared library. | |
void | initialise () |
Initialise counter. | |
void | attach (const JSharedCounter &object) |
Attach this counter to given shared counter object. | |
bool | detach () |
Detach. | |
const int | getCount () |
Get count. | |
Static Public Member Functions | |
static bool | select (const JDAQEvent &tev, const JEvt &evt, const Evt *const pE) |
Default event selection. | |
Static Public Attributes | |
static const char | SEPARATOR |
Separation character between library file name and function name. | |
Protected Attributes | |
void * | handle |
void(*)(Args...) | function |
std::string | libso |
std::string | symbol |
int * | counter |
Event selector.
The default constructor will select all events.
A different method can dynamically be loaded from a shared library via JEEP::JFunctionAdaptor.
Definition at line 30 of file JEventSelector.hh.
|
inherited |
Type definition of method.
Definition at line 307 of file JFunctionAdaptor.hh.
|
inline |
Default constructor.
Definition at line 50 of file JEventSelector.hh.
|
inlinestatic |
Default event selection.
tev | DAQ event |
evt | input event |
pE | pointer to Monte Carlo event |
Definition at line 41 of file JEventSelector.hh.
|
inlineinherited |
Function operation.
args | arguments |
Definition at line 346 of file JFunctionAdaptor.hh.
|
inlineinherited |
Check validity of function.
Definition at line 56 of file JFunctionAdaptor.hh.
|
inlineinherited |
Reset function adaptor helper.
Definition at line 65 of file JFunctionAdaptor.hh.
|
inlineinherited |
Set function.
pf | pointer to function |
Definition at line 80 of file JFunctionAdaptor.hh.
|
inlineinherited |
Get function with given name according to specific protocol.
symbol | function name |
Definition at line 93 of file JFunctionAdaptor.hh.
|
inlineinherited |
Check if shared library file is open.
Definition at line 121 of file JFunctionAdaptor.hh.
|
inlineinherited |
Open file.
file_name | file name |
Definition at line 132 of file JFunctionAdaptor.hh.
|
inlineinherited |
|
inlineinherited |
Load function from shared library.
libso | file name |
symbol | function name |
Definition at line 168 of file JFunctionAdaptor.hh.
|
inlineinherited |
Reload function from shared library.
Definition at line 180 of file JFunctionAdaptor.hh.
|
inlineinherited |
Initialise counter.
Definition at line 33 of file JSharedCounter.hh.
|
inlineinherited |
Attach this counter to given shared counter object.
object | shared counter |
Definition at line 46 of file JSharedCounter.hh.
|
inlineinherited |
|
inlineinherited |
|
staticinherited |
Separation character between library file name and function name.
Definition at line 39 of file JFunctionAdaptor.hh.
|
protectedinherited |
Definition at line 290 of file JFunctionAdaptor.hh.
|
protectedinherited |
Definition at line 291 of file JFunctionAdaptor.hh.
|
protectedinherited |
Definition at line 292 of file JFunctionAdaptor.hh.
|
protectedinherited |
Definition at line 293 of file JFunctionAdaptor.hh.
|
protectedinherited |
Definition at line 94 of file JSharedCounter.hh.