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 37 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   | 
  
 
 
◆ load() [1/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorTFormula::load  | 
          ( | 
          const char *const |           formula | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Compile given formula. 
- Parameters
 - 
  
  
 
Definition at line 74 of file JEvtWeightFactorTFormula.hh.
   75    {
   76      this->Clear();
   77      
   78      if (this->Compile(formula)) {
   79        THROW(JValueOutOfRange, 
"JEvtWeightFactorTFormula::load(): Could not compile formula: " << formula);    
 
   80      }
   81    }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
 
 
 
◆ load() [2/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorTFormula::load  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ is_valid()
  
  
      
        
          | bool JAANET::JEvtWeightFactorTFormula::is_valid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
◆ getProperties() [1/2]
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ getProperties() [2/2]
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ read()
  
  
      
        
          | std::istream & JAANET::JEvtWeightFactorTFormula::read  | 
          ( | 
          std::istream & |           in | ) | 
           | 
         
       
   | 
  
inlinefinaloverridevirtual   | 
  
 
Read event-weight factor from input. 
- Parameters
 - 
  
  
 
- Returns
 - input stream 
 
Reimplemented from JAANET::JEvtWeightFactor.
Definition at line 134 of file JEvtWeightFactorTFormula.hh.
  135    {
  137 
  138      this->Clear();
  139 
  140      streampos pos = in.tellg();      
  141 
  143      in >> properties;
  144      
  146      
  147      in.clear(); 
  148      in.seekg(pos);
  149      
  151      
  152      in >> properties;
  153 
  155      
  156      return in;      
  157    }
Utility class to parse parameter values.
 
void check_validity() const
Check validity of this event-weight factor.
 
 
 
 
◆ getTypeKey()
  
  
      
        
          | static const char *const JAANET::JEvtWeightFactor::getTypeKey  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Get type keyword. 
- Returns
 - type keyword 
 
Definition at line 45 of file JEvtWeightFactor.hh.
   46    {
   47      return "type";
   48    }
 
 
 
◆ 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.
   67    {
   69    }
virtual double getFactor(const Evt &evt) const =0
Get event-weight factor of given event.
 
 
 
 
◆ check_validity()
  
  
      
        
          | void JAANET::JEvtWeightFactor::check_validity  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Check validity of this event-weight factor. 
Definition at line 86 of file JEvtWeightFactor.hh.
   87    {
   89      
   92      }
   93    }
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.
  102    {
  104       
  105      return equation;
  106    }    
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.
  115    {
  117    }
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.
  175    {
  177    }
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 JPHYSICS::JPD0Transformer_t< JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer_t< JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, and JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer.
Definition at line 69 of file JClonable.hh.
   70    {
   71      return new JDerived_t(static_cast<const JDerived_t&>(*this));
   72    }
 
 
 
◆ buffer
The documentation for this class was generated from the following file: