Base class implementation for reweighting factor for simulated events according to a specifiable ROOT TFormula.  
 More...
#include <JEvtWeightFactorTFormula.hh>
Base class implementation for reweighting factor for simulated events according to a specifiable ROOT TFormula. 
Definition at line 33 of file JEvtWeightFactorTFormula.hh.
 
◆ clone_type
template<class JClonable_t , class JDerived_t > 
 
 
◆ JEvtWeightFactorTFormula()
  
  
      
        
          | JAANET::JEvtWeightFactorTFormula::JEvtWeightFactorTFormula  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ ~JEvtWeightFactorTFormula()
  
  
      
        
          | JAANET::JEvtWeightFactorTFormula::~JEvtWeightFactorTFormula  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getFormulaKey()
  
  
      
        
          | static const std::string JAANET::JEvtWeightFactorTFormula::getFormulaKey  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ compile() [1/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorTFormula::compile  | 
          ( | 
          const char *const  | 
          formula | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Compile given formula. 
- Parameters
 - 
  
  
 
Definition at line 69 of file JEvtWeightFactorTFormula.hh.
   73       if (this->Compile(formula)) {
 
   74         THROW(JValueOutOfRange, 
"JEvtWeightFactorTFormula::compile(): Could not compile formula: " << formula); 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
void check_validity() const
Check validity of this event-weight factor.
 
 
 
 
◆ compile() [2/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorTFormula::compile  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getProperties() [1/2]
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ getProperties() [2/2]
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ read()
  
  
      
        
          | std::istream& JAANET::JEvtWeightFactorTFormula::read  | 
          ( | 
          std::istream &  | 
          in | ) | 
           | 
         
       
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ getFormula() [1/2]
  
  
      
        
          | TFormula& JAANET::JEvtWeightFactorTFormula::getFormula  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ getFormula() [2/2]
  
  
      
        
          | const TFormula& JAANET::JEvtWeightFactorTFormula::getFormula  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ getTypeKey()
  
  
      
        
          | static const char* const JAANET::JEvtWeightFactor::getTypeKey  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
 
◆ getFactor()
  
  
      
        
          | virtual double JAANET::JEvtWeightFactor::getFactor  | 
          ( | 
          const Evt &  | 
          evt | ) | 
           const | 
         
       
   | 
  
pure virtualinherited   | 
  
 
Get event-weight factor of given event. 
- Parameters
 - 
  
  
 
- Returns
 - event-weight factor 
 
Implemented in JAANET::JDiffuseFlux.
 
 
◆ operator()()
  
  
      
        
          | double JAANET::JEvtWeightFactor::operator()  | 
          ( | 
          const Evt &  | 
          evt | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get event-weight factor of given event. 
- Parameters
 - 
  
  
 
- Returns
 - event-weight factor 
 
Definition at line 66 of file JEvtWeightFactor.hh.
virtual double getFactor(const Evt &evt) const =0
Get event-weight factor of given event.
 
 
 
 
◆ is_valid()
  
  
      
        
          | virtual bool JAANET::JEvtWeightFactor::is_valid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
Check whether this event-weight factor is valid. 
- Returns
 - true if valid; else false 
 
Definition at line 77 of file JEvtWeightFactor.hh.
 
 
◆ check_validity()
  
  
      
        
          | void JAANET::JEvtWeightFactor::check_validity  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Check validity of this event-weight factor. 
Definition at line 86 of file JEvtWeightFactor.hh.
   91         THROW(
JValueOutOfRange, 
"JEvtWeightFactor():check_validity(): Invalid event-weight factor " << *
this);
 
Exception for accessing a value in a collection that is outside of its range.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
virtual bool is_valid() const
Check whether this event-weight factor is valid.
 
 
 
 
◆ getEquationParameters()
Get equation parameters. 
- Returns
 - equation parameters 
 
Definition at line 101 of file JEvtWeightFactor.hh.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
 
 
 
 
◆ setEquationParameters()
  
  
      
        
          | static void JAANET::JEvtWeightFactor::setEquationParameters  | 
          ( | 
          const JEquationParameters &  | 
          eqpars | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Set equation parameters. 
- Parameters
 - 
  
    | eqpars | equation parameters  | 
  
   
Definition at line 114 of file JEvtWeightFactor.hh.
static JEquationParameters & getEquationParameters()
Get equation parameters.
 
 
 
 
◆ write()
  
  
      
        
          | virtual std::ostream& JAANET::JEvtWeightFactor::write  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
Write event-weight factor to output. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 174 of file JEvtWeightFactor.hh.
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters())
Get properties of this class.
 
 
 
 
◆ clone()
template<class JClonable_t , class JDerived_t > 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
Get clone of this object. 
- Returns
 - pointer to newly created object 
 
Reimplemented in JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer, 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 >, and JPHYSICS::JPDFTransformer_t< JArgument_t >.
Definition at line 69 of file JClonable.hh.
   71       return new JDerived_t(
static_cast<const JDerived_t&
>(*
this));
 
 
 
 
The documentation for this class was generated from the following file: