Jpp
17.2.0
the software that should make you happy
|
Implementation of event-weight factor for multiple particle types. More...
#include <JEvtWeightFactorMultiParticle.hh>
Public Types | |
typedef JEvtWeightFactorHelper < JEvtWeightFactor_t > | JEvtWeightFactorHelper_t |
typedef std::map< int, JEvtWeightFactorHelper_t > | map_type |
typedef JClonable< JClonable_t > ::clone_type | clone_type |
Public Member Functions | |
JEvtWeightFactorMultiParticle () | |
Default constructor. More... | |
JEvtWeightFactorMultiParticle (const JHead &header, const JEvtWeightFactor_t &factor) | |
Constructor. More... | |
template<class... Args> | |
JEvtWeightFactorMultiParticle (const int type, const JEvtWeightFactor_t &factor, const Args &...args) | |
Constructor. More... | |
void | insert (const int type, const JEvtWeightFactor_t &factor) |
Insert pair of particle code and event-weight factor. More... | |
template<class... Args> | |
void | insert (const int type, const JEvtWeightFactor_t &factor, const Args &...args) |
Insert pairs of particle codes and event-weight factors. More... | |
virtual double | getFactor (const Evt &evt) const override |
Get weight factor of given event. More... | |
virtual clone_type | clone () const override |
Get clone of this object. More... | |
Implementation of event-weight factor for multiple particle types.
The first template argument corresponds to the type of event-weight factor class. This class must contain the method getFactor(const Evt&)
. The second template argument refers to the helper-class to the event-weight factor of the type of the first template argument.
Definition at line 38 of file JEvtWeightFactorMultiParticle.hh.
typedef JEvtWeightFactorHelper<JEvtWeightFactor_t> JAANET::JEvtWeightFactorMultiParticle< JEvtWeightFactor_t >::JEvtWeightFactorHelper_t |
Definition at line 42 of file JEvtWeightFactorMultiParticle.hh.
typedef std::map<int, JEvtWeightFactorHelper_t> JAANET::JEvtWeightFactorMultiParticle< JEvtWeightFactor_t >::map_type |
Definition at line 43 of file JEvtWeightFactorMultiParticle.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
|
inline |
Default constructor.
Definition at line 49 of file JEvtWeightFactorMultiParticle.hh.
|
inline |
Constructor.
The multi-particle flux function is created
listing all the primaries in the JHead::flux vector field of the given header.
header | header |
factor | factor |
Definition at line 63 of file JEvtWeightFactorMultiParticle.hh.
|
inline |
Constructor.
type | particle PDG code |
factor | event-weight factor |
args | remaining pairs of PDG codes and event-weight factors |
Definition at line 88 of file JEvtWeightFactorMultiParticle.hh.
|
inline |
Insert pair of particle code and event-weight factor.
type | particle PDG code |
factor | event-weight factor |
Definition at line 103 of file JEvtWeightFactorMultiParticle.hh.
|
inline |
Insert pairs of particle codes and event-weight factors.
type | particle PDG code |
factor | event-weight factor |
args | remaining pairs of PDG codes and event-weight factors |
Definition at line 118 of file JEvtWeightFactorMultiParticle.hh.
|
inlineoverridevirtual |
Get weight factor of given event.
evt | event |
Definition at line 133 of file JEvtWeightFactorMultiParticle.hh.
|
inlineoverridevirtualinherited |
Get clone of this 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.