Jpp
|
Auxiliary class to handle run by run options. More...
#include <JRunByRun.hh>
Public Types | |
typedef JSampler_t< T > | sampler_type |
typedef JTemplate< JType_t > | template_type |
typedef JObjectIterator< T > ::pointer_type | pointer_type |
Public Member Functions | |
JRunByRun () | |
Default constructor. More... | |
bool | is_valid () |
Check validity of run by run options. More... | |
operator const JType_t & () const | |
Type conversion. More... | |
operator JType_t & () | |
Type conversion. More... | |
const JType_t * | operator-> () const |
Smart pointer operator. More... | |
JType_t * | operator-> () |
Smart pointer operator. More... | |
template<class T , bool use_polymorphism = false> | |
const T & | get () const |
Get reference to object. More... | |
template<class T , bool use_polymorphism = false> | |
T & | get () |
Get reference to object. More... | |
template_type & | set (const JType_t &value) |
Set value. More... | |
template<bool use_polymorphism, class T > | |
template_type & | set (const T &value) |
Set value. More... | |
virtual bool | hasNext () |
Check availability of next element. More... | |
virtual const pointer_type & | next () |
Get next element. More... | |
const JSampler_t< T > & | getSampler () const |
Get sampler. More... | |
JSampler_t< T > & | getSampler () |
Get sampler. More... | |
virtual skip_type | skip (const skip_type ns) |
Skip items. More... | |
Protected Member Functions | |
const JType_t & | c_get (JBool< true > option) const |
Get reference to object. More... | |
JType_t & | c_get (JBool< true > option) |
Get reference to object. More... | |
template<class T > | |
template_type & | c_set (const T &value, JBool< true > option) |
Set value. More... | |
Static Protected Member Functions | |
template<class T > | |
static JProperties | getProperties (T &object) |
Get properties of this class. More... | |
Protected Attributes | |
JType_t | object |
object More... | |
JRewindableObjectIterator< T > & | in |
JSampler_t< T > | sampler |
JPointer< T > | ps |
bool | has_next |
Friends | |
std::istream & | operator>> (std::istream &in, JRunByRun &object) |
Read run by run options from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JRunByRun &object) |
Write run by run options to output. More... | |
Auxiliary class to handle run by run options.
This class is used in e.g. JTriggerEfficiency.cc in run-by-run mode to select summary data (KM3NETDAQ::JDAQSummaryslice) from the specified raw data file(s).
The two parameters of the JSUPPORT::JRandomSampler class should therefore be set to sufficiently cover the contents of raw data file(s) and to minimise possible biases.
The values can also be tuned to reduce the overhead of accessing the data in the input file(s).
The range of acceptable rates (JRunByRun::range_Hz) was originally used to define "working" PMTs.
With the use of the hardware high-rate veto and FIFO (almost) full information, this criterion is redundant.
Note that the range is applied to the rate of photo-electrons (i.e. before the application of QE, etc.).
It is therefore recommended to set this range sufficiently wide to avoid interference with the simulation of the PMT response.
Definition at line 47 of file JRunByRun.hh.
|
inherited |
Definition at line 33 of file JMultipleFileSampler.hh.
|
inherited |
Definition at line 42 of file JTemplate.hh.
|
inherited |
Definition at line 45 of file JObjectSampler.hh.
|
inline |
Default constructor.
Definition at line 54 of file JRunByRun.hh.
|
inline |
Check validity of run by run options.
Definition at line 64 of file JRunByRun.hh.
|
inlinestaticprotected |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get reference to object.
Definition at line 113 of file JTemplate.hh.
|
inlineinherited |
Get reference to object.
Definition at line 125 of file JTemplate.hh.
|
inlineinherited |
Set value.
value | value |
Definition at line 137 of file JTemplate.hh.
|
inlineinherited |
Set value.
value | value |
Definition at line 150 of file JTemplate.hh.
|
inlineprotectedinherited |
Get reference to object.
option | true |
Definition at line 188 of file JTemplate.hh.
|
inlineprotectedinherited |
Get reference to object.
option | true |
Definition at line 200 of file JTemplate.hh.
|
inlineprotectedinherited |
Set value.
value | value |
option | true |
Definition at line 214 of file JTemplate.hh.
|
inlinevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 78 of file JObjectSampler.hh.
|
inlinevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 120 of file JObjectSampler.hh.
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, JLANG::JSTDObjectIterator< T >, JLANG::JAbstractObjectReader< T >, JLANG::JAbstractObjectReader< JNullType >, JLANG::JAbstractObjectReader< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::KM3NETDAQ::JDAQEvent >, JLANG::JAbstractObjectReader< JDAQSummaryslice >, and JLANG::JAbstractObjectReader< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 88 of file JObjectIterator.hh.
|
friend |
Read run by run options from input.
in | input stream |
object | run by run options |
Definition at line 77 of file JRunByRun.hh.
|
friend |
Write run by run options to output.
out | output stream |
object | run by run options |
Definition at line 101 of file JRunByRun.hh.
|
protectedinherited |
object
Definition at line 222 of file JTemplate.hh.
|
protectedinherited |
Definition at line 154 of file JObjectSampler.hh.
|
protectedinherited |
Definition at line 155 of file JObjectSampler.hh.
|
protectedinherited |
Definition at line 156 of file JObjectSampler.hh.
|
protectedinherited |
Definition at line 157 of file JObjectSampler.hh.