Jpp
18.5.0
the software that should make you happy
|
Implementation of reweighting factor for simulated neutrino interactions according to a specifiable ROOT TFormula. More...
#include <JEvtWeightFactorGSeaGen.hh>
Public Types | |
enum | variables { COSTH, ENERGY, BJORKEN_X, INELASTICITY, NUMBER_OF_VARIABLES } |
Indices of reweighting variables for GSeaGen. More... | |
typedef JEvtWeightFactorHelper < JEvtWeightFactor_t > | JEvtWeightFactorHelper_t |
typedef std::shared_ptr < JEvtWeightFactor_t > | pointer_type |
Public Member Functions | |
JEvtWeightFactorGSeaGen () | |
Default constructor. More... | |
JEvtWeightFactorGSeaGen (const JFlux &flux, const char *name, const char *formula) | |
Constructor. More... | |
double | operator() (const Evt &evt) const |
Get weighting factor for given event. More... | |
void | configure (const JEvtWeightFactor_t &factor) |
Configure event-weight factor. More... | |
JEvtWeightFactor_t & | getEvtWeightFactor () const |
Get reference to event-weight factor. More... | |
double | getFactor (const Evt &evt) const |
Get weight-factor of given event. More... | |
Friends | |
std::istream & | operator>> (std::istream &in, JEvtWeightFactorGSeaGen &object) |
Stream input. More... | |
std::ostream & | operator<< (std::ostream &out, const JEvtWeightFactorGSeaGen &object) |
Stream output. More... | |
Implementation of reweighting factor for simulated neutrino interactions according to a specifiable ROOT TFormula.
Note: The ROOT TFormula may assume any number of parameters, but should be restricted to
the physical variables listed among JEvtWeightFactorGSeaGen::variables
.
These variables may be specified within the ROOT TFormula as 'x[<index>]',
where <index> corresponds to the index of the desired physical variable within JEvtWeightFactorGSeaGen::variables
.
Definition at line 38 of file JEvtWeightFactorGSeaGen.hh.
|
inherited |
Definition at line 32 of file JEvtWeightFactorHelper.hh.
|
inherited |
Definition at line 33 of file JEvtWeightFactorHelper.hh.
Indices of reweighting variables for GSeaGen.
Definition at line 45 of file JEvtWeightFactorGSeaGen.hh.
|
inline |
Default constructor.
Definition at line 58 of file JEvtWeightFactorGSeaGen.hh.
|
inline |
Constructor.
flux | flux function |
name | name |
formula | formula |
Definition at line 71 of file JEvtWeightFactorGSeaGen.hh.
|
inline |
Get weighting factor for given event.
evt | event |
Definition at line 85 of file JEvtWeightFactorGSeaGen.hh.
|
inlineinherited |
Configure event-weight factor.
factor | event-weight factor |
Definition at line 59 of file JEvtWeightFactorHelper.hh.
|
inlineinherited |
Get reference to event-weight factor.
Definition at line 78 of file JEvtWeightFactorHelper.hh.
|
inlineinherited |
Get weight-factor of given event.
evt | event |
Definition at line 96 of file JEvtWeightFactorHelper.hh.
|
friend |
Stream input.
in | input stream |
object | gSeaGen event-weight factor |
Definition at line 118 of file JEvtWeightFactorGSeaGen.hh.
|
friend |
Stream output.
out | output stream |
object | gSeaGen event-weight factor |
Definition at line 153 of file JEvtWeightFactorGSeaGen.hh.