Implementation of event weighing for DAQ data.
More...
#include <JEvtWeightDAQ.hh>
Implementation of event weighing for DAQ data.
Definition at line 29 of file JEvtWeightDAQ.hh.
template<class JClonable_t, class JDerived_t = JNullType>
JAANET::JEvtWeightDAQ::JEvtWeightDAQ |
( |
| ) |
|
|
inline |
JAANET::JEvtWeightDAQ::JEvtWeightDAQ |
( |
const JHead & |
header | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 44 of file JEvtWeightDAQ.hh.
void configure(const JHead &header) override
Configuration.
void JAANET::JEvtWeightDAQ::configure |
( |
const JHead & |
header | ) |
|
|
inlineoverride |
Configuration.
- Parameters
-
Definition at line 55 of file JEvtWeightDAQ.hh.
57 if (
check(header) && header.DAQ.livetime_s > 0.0) {
59 norm = 1.0 / header.DAQ.livetime_s;
63 THROW(JValueOutOfRange,
"JEvtWeightDAQ::configure(): Provided header is inconsistent with a DAQ-header.");
bool check(const JHead &header) const override
Check whether header is consistent with this event weighter.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
bool JAANET::JEvtWeightDAQ::check |
( |
const JHead & |
header | ) |
const |
|
inlineoverride |
Check whether header is consistent with this event weighter.
- Parameters
-
- Returns
- true if consistent; else false
Definition at line 74 of file JEvtWeightDAQ.hh.
bool is_daq(const JHead &header)
Check for real data.
double JAANET::JEvtWeightDAQ::getWeight |
( |
const Evt & |
evt | ) |
const |
|
inlineoverride |
Get weight of given event.
- Parameters
-
- Returns
- weight [1/s]
Definition at line 86 of file JEvtWeightDAQ.hh.
91 return getNormalisation(evt);
static const int WEIGHTLIST_RESCALED_EVENT_RATE
Rescaled event rate [s-1].
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions) ...
template<class JClonable_t, class JDerived_t = JNullType>
|
inlineoverridevirtualinherited |
Get clone of this object.
- Returns
- pointer to newly created object
Reimplemented in JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, JPHYSICS::JPD0Transformer_t< JArgument_t >, JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer, JPHYSICS::JPDFTransformer_t< JArgument_t >, JLANG::JClonable< JMatch< hit_type > >, JLANG::JClonable< JMatch< hit_type >, JMatch3D >, JLANG::JClonable< JMatch< JTRIGGER::JHitR1 > >, and JLANG::JClonable< JMatch< JTRIGGER::JHitR1 >, JMatch3G< JTRIGGER::JHitR1 > >.
Definition at line 69 of file JClonable.hh.
71 return new JDerived_t(static_cast<const JDerived_t&>(*
this));
The documentation for this struct was generated from the following file: