|
Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
|
Base class implementation for reweighting factor for simulated events according to a specifiable ROOT TFormula. More...
#include <JEvtWeightFactorTFormula.hh>
Classes | |
| struct | JEvtWeightFactorTFormulaExpression |
| Auxiliary class for I/O of TFormula expression. More... | |
| struct | JEvtWeightFactorTFormulaHelper |
| Auxiliary class for I/O of TFormula-based event-weight factor. More... | |
Public Types | |
| typedef JClonable< JClonable_t >::clone_type | clone_type |
Public Member Functions | |
| JEvtWeightFactorTFormula () | |
| Default constructor. | |
| ~JEvtWeightFactorTFormula () | |
| Virtual destructor. | |
| void | load (const char *const formula) |
| Compile given formula. | |
| void | load () |
| Compile currently stored formula. | |
| bool | is_valid () const override |
| Check whether this event-weight factor is valid. | |
| JProperties | getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) override final |
| Get properties of this class. | |
| JProperties | getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) const override final |
| Get properties of this class. | |
| std::istream & | read (std::istream &in) override final |
| Read event-weight factor from input. | |
| virtual double | getFactor (const Evt &evt) const =0 |
| Get event-weight factor of given event. | |
| double | operator() (const Evt &evt) const |
| Get event-weight factor of given event. | |
| void | check_validity () const |
| Check validity of this event-weight factor. | |
| virtual std::ostream & | write (std::ostream &out) const |
| Write event-weight factor to output. | |
| virtual clone_type | clone () const override |
| Get clone of this object. | |
Static Public Member Functions | |
| static const std::string | getFormulaKey () |
| Get formula keyword. | |
| static const char *const | getTypeKey () |
| Get type keyword. | |
| static JEquationParameters & | getEquationParameters () |
| Get equation parameters. | |
| static void | setEquationParameters (const JEquationParameters &eqpars) |
| Set equation parameters. | |
Private Attributes | |
| JLoadProperty< JEvtWeightFactorTFormula, JEvtWeightFactorTFormulaExpression > | buffer |
| Formula expression. | |
Base class implementation for reweighting factor for simulated events according to a specifiable ROOT TFormula.
Definition at line 37 of file JEvtWeightFactorTFormula.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
|
inline |
Default constructor.
Definition at line 46 of file JEvtWeightFactorTFormula.hh.
|
inline |
Get formula keyword.
Definition at line 63 of file JEvtWeightFactorTFormula.hh.
Compile given formula.
| formula | formula |
Definition at line 74 of file JEvtWeightFactorTFormula.hh.
|
inline |
Compile currently stored formula.
Definition at line 87 of file JEvtWeightFactorTFormula.hh.
|
inlineoverridevirtual |
Check whether this event-weight factor is valid.
Reimplemented from JAANET::JEvtWeightFactor.
Definition at line 100 of file JEvtWeightFactorTFormula.hh.
|
inlinefinaloverridevirtual |
Get properties of this class.
| eqpars | equation parameters |
Reimplemented from JAANET::JEvtWeightFactor.
Definition at line 111 of file JEvtWeightFactorTFormula.hh.
|
inlinefinaloverridevirtual |
Get properties of this class.
| eqpars | equation parameters |
Reimplemented from JAANET::JEvtWeightFactor.
Definition at line 122 of file JEvtWeightFactorTFormula.hh.
|
inlinefinaloverridevirtual |
Read event-weight factor from input.
| in | input stream |
Reimplemented from JAANET::JEvtWeightFactor.
Definition at line 134 of file JEvtWeightFactorTFormula.hh.
Get type keyword.
Definition at line 45 of file JEvtWeightFactor.hh.
Get event-weight factor of given event.
| evt | event |
Implemented in JAANET::JDiffuseFlux.
Get event-weight factor of given event.
| evt | event |
Definition at line 66 of file JEvtWeightFactor.hh.
|
inlineinherited |
Check validity of this event-weight factor.
Definition at line 86 of file JEvtWeightFactor.hh.
|
inlinestaticinherited |
Get equation parameters.
Definition at line 101 of file JEvtWeightFactor.hh.
|
inlinestaticinherited |
Set equation parameters.
| eqpars | equation parameters |
Definition at line 114 of file JEvtWeightFactor.hh.
|
inlinevirtualinherited |
Write event-weight factor to output.
| out | output stream |
Definition at line 174 of file JEvtWeightFactor.hh.
|
inlineoverridevirtualinherited |
Get clone of this object.
Reimplemented in JLANG::JClonable< JMatch< hit_type > >, JLANG::JClonable< JMatch< hit_type >, JMatch1D >, JLANG::JClonable< JMatch< hit_type >, JMatch3D >, JLANG::JClonable< JMatch< JTRIGGER::JHitR1 > >, JLANG::JClonable< JMatch< JTRIGGER::JHitR1 >, JMatch3G< JTRIGGER::JHitR1 > >, JPHYSICS::JPDFTransformer_t< JArgument_t >, JPHYSICS::JPD0Transformer_t< JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 5, JArgument_t >, and JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer.
Definition at line 69 of file JClonable.hh.
|
private |
Formula expression.
Definition at line 245 of file JEvtWeightFactorTFormula.hh.