Implementation of event weighing for DAQ data.  
 More...
#include <JEvtWeightDAQ.hh>
Implementation of event weighing for DAQ data. 
Definition at line 27 of file JEvtWeightDAQ.hh.
 
template<class JClonable_t, class JDerived_t = JNullType> 
 
 
  
  
      
        
          | JAANET::JEvtWeightDAQ::JEvtWeightDAQ  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JAANET::JEvtWeightDAQ::JEvtWeightDAQ  | 
          ( | 
          const JHead &  | 
          header | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 42 of file JEvtWeightDAQ.hh.
void configure(const JHead &header) override
Configuration. 
 
 
 
 
  
  
      
        
          | void JAANET::JEvtWeightDAQ::configure  | 
          ( | 
          const JHead &  | 
          header | ) | 
           | 
         
       
   | 
  
inlineoverride   | 
  
 
Configuration. 
- Parameters
 - 
  
  
 
Definition at line 53 of file JEvtWeightDAQ.hh.
   55       if (
check(header) && header.DAQ.livetime_s > 0.0) {
 
   57         norm = 1.0 / header.DAQ.livetime_s;
 
   61         THROW(JValueOutOfRange, 
"JEvtWeightDAQ::configure(): Provided header is inconsistent with a DAQ-header.");
 
bool check(const JHead &header) const override
Check whether header is consistent with this event weighter. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
 
 
 
  
  
      
        
          | bool JAANET::JEvtWeightDAQ::check  | 
          ( | 
          const JHead &  | 
          header | ) | 
           const | 
         
       
   | 
  
inlineoverride   | 
  
 
Check whether header is consistent with this event weighter. 
- Parameters
 - 
  
  
 
- Returns
 - true if consistent; else false 
 
Definition at line 72 of file JEvtWeightDAQ.hh.
bool is_daq(const JHead &header)
Check for real data. 
 
 
 
 
  
  
      
        
          | double JAANET::JEvtWeightDAQ::getWeight  | 
          ( | 
          const Evt &  | 
          evt | ) | 
           const | 
         
       
   | 
  
inlineoverride   | 
  
 
Get weight of given event. 
- Parameters
 - 
  
  
 
- Returns
 - weight [1/s] 
 
Definition at line 84 of file JEvtWeightDAQ.hh.
 
 
template<class JClonable_t, class JDerived_t = JNullType> 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
Get clone of this object. 
- Returns
 - pointer to newly created object 
 
Reimplemented in 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 >, JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer, JPHYSICS::JPDFTransformer_t< JArgument_t >, JLANG::JClonable< JMatch< hit_type > >, JLANG::JClonable< JMatch< hit_type >, JMatch3D >, JLANG::JClonable< JMatch< JTRIGGER::JHitR1 > >, and JLANG::JClonable< JMatch< JTRIGGER::JHitR1 >, JMatch3G< JTRIGGER::JHitR1 > >.
Definition at line 69 of file JClonable.hh.
   71       return new JDerived_t(static_cast<const JDerived_t&>(*
this));
 
 
 
 
The documentation for this struct was generated from the following file: