Helper class for flux function.  
 More...
#include <JFluxHelper.hh>
Helper class for flux function. 
Definition at line 23 of file JFluxHelper.hh.
 
◆ pointer_type
◆ JFluxHelper() [1/3]
  
  
      
        
          | JAANET::JFluxHelper::JFluxHelper  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JFluxHelper() [2/3]
  
  
      
        
          | JAANET::JFluxHelper::JFluxHelper  | 
          ( | 
          const pointer_type & |           flux | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 41 of file JFluxHelper.hh.
   41                                          :
   43    {}
JEvtWeightFactorHelper()
Default constructor.
 
 
 
 
◆ JFluxHelper() [3/3]
  
  
      
        
          | JAANET::JFluxHelper::JFluxHelper  | 
          ( | 
          const JFlux & |           flux | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 51 of file JFluxHelper.hh.
   52    {
   54    }
void configure(const pointer_type &p)
Configure event-weight factor.
 
 
 
 
◆ getFlux() [1/2]
  
  
      
        
          | JFlux & JAANET::JFluxHelper::getFlux  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get reference to flux function. 
- Returns
 - reference to flux function 
 
Definition at line 62 of file JFluxHelper.hh.
   63    {
   65 
   66      JEvtWeightFactor& factor = this->
getFactor();
 
   67 
   68      JFlux* p = dynamic_cast<JFlux*>(&factor);
   69 
   70      if (p != NULL) {
   71        return *p;
   72      } else {
   74      }
   75    }
#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).
 
JEvtWeightFactor & getFactor() const
Get reference to event-weight factor.
 
 
 
 
◆ getFlux() [2/2]
  
  
      
        
          | double JAANET::JFluxHelper::getFlux  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get flux of given event. 
- Parameters
 - 
  
  
 
- Returns
 - flux [GeV^-1 * m^-2 * sr^-1 * s^-1] 
 
Definition at line 84 of file JFluxHelper.hh.
 
 
◆ configure() [1/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorHelper::configure  | 
          ( | 
          const pointer_type & |           p | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Configure event-weight factor. 
- Parameters
 - 
  
    | p | pointer to event-weight factor  | 
  
   
Definition at line 68 of file JEvtWeightFactorHelper.hh.
   69    {
   71    }
std::shared_ptr< JEvtWeightFactor > pointer_type
 
 
 
 
◆ configure() [2/2]
  
  
      
        
          | void JAANET::JEvtWeightFactorHelper::configure  | 
          ( | 
          const JEvtWeightFactor & |           factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
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    }
 
 
 
◆ 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.
 
 
 
 
◆ getFactor() [2/2]
  
  
      
        
          | double JAANET::JEvtWeightFactorHelper::getFactor  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
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    }
 
 
 
◆ is_valid()
  
  
      
        
          | bool JAANET::JEvtWeightFactorHelper::is_valid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
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    }
 
 
 
◆ operator()()
  
  
      
        
          | double JAANET::JEvtWeightFactorHelper::operator()  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ 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: