1 #ifndef __JAANET__JEVTWEIGHTFACTORMULTIPARTICLE__ 
    2 #define __JAANET__JEVTWEIGHTFACTORMULTIPARTICLE__ 
   30     public JClonable<JEvtWeightFactor, JEvtWeightFactorMultiParticle>,
 
   31     public std::map<int, JEvtWeightFactorHelper>
 
   50     template<
class ...Args>
 
   55       insert(type, factor, args...);
 
   79     template<
class ...Args>
 
  112         return this->at(neutrino.
type).getFactor(evt);
 
  116         THROW(
JValueOutOfRange, 
"JEvtWeightFactorMultiParticle::getFactor(): No primary track found for event " << evt.
id << 
".");
 
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member. 
 
void insert(const int type, const JEvtWeightFactor &factor)
Insert pair of particle code and event-weight factor. 
 
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino. 
 
JEvtWeightFactorMultiParticle(const int type, const JEvtWeightFactor &factor, const Args &...args)
Constructor. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
bool is_primary() const 
Check if this is a primary particle. 
 
void insert(const int type, const JEvtWeightFactor &factor, const Args &...args)
Insert pairs of particle codes and event-weight factors. 
 
Implementation of event-weight factor for multiple particle types. 
 
Template class for object cloning. 
 
Helper class for event-weight factor. 
 
double getFactor(const Evt &evt) const override
Get event-weight factor of given event. 
 
std::map< int, JEvtWeightFactorHelper > map_type
 
JEvtWeightFactorMultiParticle()
Default constructor. 
 
int type
MC: particle type in PDG encoding. 
 
int id
offline event identifier 
 
Exception for accessing a value in a collection that is outside of its range. 
 
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino. 
 
Low-level interface for retrieving a specifiable multiplication factor corresponding to a given event...
 
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower. 
 
std::vector< Trk > mc_trks
MC: list of MC truth tracks. 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.