Abstract base class for event weighing.  
 More...
#include <JEvtWeight.hh>
 | 
|   | JEvtWeight () | 
|   | Default constructor.  
  | 
|   | 
| virtual  | ~JEvtWeight () | 
|   | Virtual destructor.  
  | 
|   | 
| virtual double  | getNormalisation () const override | 
|   | Get event-weight normalisation.  
  | 
|   | 
| virtual double  | getNormalisation (const Evt &evt) const | 
|   | Get event-weight normalisation.  
  | 
|   | 
| virtual void  | setNormalisation (const double normalisation) override | 
|   | Set event-weight normalisation factor.  
  | 
|   | 
| virtual const char *const  | getName () const =0 | 
|   | Get name.  
  | 
|   | 
| virtual void  | configure (const JHead &header)=0 | 
|   | Configuration.  
  | 
|   | 
| virtual bool  | check (const JHead &header) const =0 | 
|   | Check whether header is consistent with this event weighter.  
  | 
|   | 
| virtual double  | getWeight (const Evt &evt) const =0 | 
|   | Get weight of given event.  
  | 
|   | 
| virtual clone_type  | clone () const override | 
|   | Get clone of this object.  
  | 
|   | 
Abstract base class for event weighing. 
Definition at line 28 of file JEvtWeight.hh.
 
◆ clone_type
template<class JClonable_t , class JDerived_t > 
 
 
◆ JEvtWeight()
  
  
      
        
          | JAANET::JEvtWeight::JEvtWeight  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 35 of file JEvtWeight.hh.
   36    {}
double normalisation
Event-weight normalisation.
 
 
 
 
◆ ~JEvtWeight()
  
  
      
        
          | virtual JAANET::JEvtWeight::~JEvtWeight  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ getNormalisation() [1/2]
  
  
      
        
          | virtual double JAANET::JEvtWeight::getNormalisation  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Get event-weight normalisation. 
Note: the return-value should be multiplied in order to normalise the event-weight
- Returns
 - event-weight normalisation 
 
Implements JAANET::JEvtWeightInterface.
Definition at line 52 of file JEvtWeight.hh.
 
 
◆ getNormalisation() [2/2]
  
  
      
        
          | virtual double JAANET::JEvtWeight::getNormalisation  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
Get event-weight normalisation. 
Note: the return-value should be multiplied in order to normalise the event-weight
- Parameters
 - 
  
  
 
- Returns
 - event-weight normalisation 
 
Definition at line 65 of file JEvtWeight.hh.
   66    {
   70    }
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions)
 
static const int WEIGHTLIST_NORMALISATION
Event rate normalisation.
 
 
 
 
◆ setNormalisation()
  
  
      
        
          | virtual void JAANET::JEvtWeight::setNormalisation  | 
          ( | 
          const double |           normalisation | ) | 
           | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Set event-weight normalisation factor. 
Note: the set-value should be multiplied in order to normalise the event-weight
- Parameters
 - 
  
    | normalisation | event-weight normalisation factor.  | 
  
   
Implements JAANET::JEvtWeightInterface.
Definition at line 79 of file JEvtWeight.hh.
 
 
◆ getName()
  
  
      
        
          | virtual const char *const JAANET::JEvtWeightInterface::getName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtualinherited   | 
  
 
 
◆ configure()
  
  
      
        
          | virtual void JAANET::JEvtWeightInterface::configure  | 
          ( | 
          const JHead & |           header | ) | 
           | 
         
       
   | 
  
pure virtualinherited   | 
  
 
Configuration. 
- Parameters
 - 
  
  
 
 
 
◆ check()
  
  
      
        
          | virtual bool JAANET::JEvtWeightInterface::check  | 
          ( | 
          const JHead & |           header | ) | 
           const | 
         
       
   | 
  
pure virtualinherited   | 
  
 
Check whether header is consistent with this event weighter. 
- Parameters
 - 
  
  
 
- Returns
 - true if consistent; else false 
 
 
 
◆ getWeight()
  
  
      
        
          | virtual double JAANET::JEvtWeightInterface::getWeight  | 
          ( | 
          const Evt & |           evt | ) | 
           const | 
         
       
   | 
  
pure virtualinherited   | 
  
 
Get weight of given event. 
- Parameters
 - 
  
  
 
- Returns
 - weight [Hz] 
 
 
 
◆ 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    }
 
 
 
◆ normalisation
  
  
      
        
          | double JAANET::JEvtWeight::normalisation | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this struct was generated from the following file: