Helper class for event-weight factor.  
 More...
#include <JEvtWeightFactorHelper.hh>
Helper class for event-weight factor. 
Definition at line 28 of file JEvtWeightFactorHelper.hh.
 
◆ pointer_type
◆ JEvtWeightFactorHelper() [1/3]
  
  
      
        
          | JAANET::JEvtWeightFactorHelper::JEvtWeightFactorHelper  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 37 of file JEvtWeightFactorHelper.hh.
   37                             :
   39    {}
std::shared_ptr< JEvtWeightFactor > pointer_type
 
 
 
 
◆ JEvtWeightFactorHelper() [2/3]
  
  
      
        
          | JAANET::JEvtWeightFactorHelper::JEvtWeightFactorHelper  | 
          ( | 
          const pointer_type & |           p | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JEvtWeightFactorHelper() [3/3]
  
  
      
        
          | JAANET::JEvtWeightFactorHelper::JEvtWeightFactorHelper  | 
          ( | 
          const JEvtWeightFactor & |           factor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | factor | event-weight factor  | 
  
   
Definition at line 57 of file JEvtWeightFactorHelper.hh.
   58    {
   60    }
void configure(const pointer_type &p)
Configure event-weight factor.
 
 
 
 
◆ configure() [1/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorHelper::configure  | 
          ( | 
          const pointer_type & |           p | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ configure() [2/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorHelper::configure  | 
          ( | 
          const JEvtWeightFactor & |           factor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Configure event-weight factor. 
- Parameters
 - 
  
    | factor | event-weight factor  | 
  
   
Definition at line 79 of file JEvtWeightFactorHelper.hh.
   80    {
   82      
   83      JEvtWeightFactor* p = dynamic_cast<JEvtWeightFactor*>(factor.clone());
   84 
   85      if (p != NULL) {
   87      } else {
   89      }
   90    }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception for null pointer operation.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
 
 
 
◆ getFactor() [1/2]
Get reference to event-weight factor. 
- Returns
 - reference to event-weight factor 
 
Definition at line 98 of file JEvtWeightFactorHelper.hh.
   99    {
  101 
  103        return *(this->get());
  104      } else {
  106      }
  107    }
Helper class for event-weight factor.
 
 
 
 
◆ is_valid()
  
  
      
        
          | bool JAANET::JEvtWeightFactorHelper::is_valid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check whether this event-weight factor is valid. 
- Returns
 - true if valid; else false 
 
Definition at line 115 of file JEvtWeightFactorHelper.hh.
  116    {
  118      
  119      return (helper && helper->is_valid());
  120    }
JEvtWeightFactorHelper()
Default constructor.
 
 
 
 
◆ getFactor() [2/2]
  
  
      
        
          | double JAANET::JEvtWeightFactorHelper::getFactor  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get weight-factor of given event. 
- Parameters
 - 
  
  
 
- Returns
 - event-weight factor 
 
Definition at line 129 of file JEvtWeightFactorHelper.hh.
  130    {
  131      const JEvtWeightFactor& weightFactor = 
getFactor();
 
  132 
  133      return weightFactor.getFactor(evt);
  134    }
JEvtWeightFactor & getFactor() const
Get reference to event-weight factor.
 
 
 
 
◆ operator()()
  
  
      
        
          | double JAANET::JEvtWeightFactorHelper::operator()  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getProperties() [1/2]
Get properties of this class. 
- Parameters
 - 
  
    | eqpars | equation parameters  | 
  
   
Definition at line 154 of file JEvtWeightFactorHelper.hh.
  155    {
  157    }
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters())
Get properties of this class.
 
 
 
 
◆ getProperties() [2/2]
The documentation for this struct was generated from the following file: