Helper class for event weighing.  
 More...
#include <JFluxHelper.hh>
Helper class for event weighing. 
Definition at line 23 of file JFluxHelper.hh.
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
 
  
  
      
        
          | JAANET::JFluxHelper::JFluxHelper  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JAANET::JFluxHelper::JFluxHelper  | 
          ( | 
          const JFlux &  | 
          function | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 40 of file JFluxHelper.hh.
void configure(const JFlux &function)
Flux configuration. 
 
 
 
 
  
  
      
        
          | void JAANET::JFluxHelper::configure  | 
          ( | 
          const JFlux &  | 
          function | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Flux configuration. 
- Parameters
 - 
  
  
 
Definition at line 51 of file JFluxHelper.hh.
   53       reset(
function.clone());
 
virtual void reset() override
Reset pointer. 
 
 
 
 
  
  
      
        
          | double JAANET::JFluxHelper::getFlux  | 
          ( | 
          const Evt &  | 
          evt | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get flux of given event. 
- Parameters
 - 
  
  
 
- Returns
 - flux [GeV * m^-2 * sr^-1 * s^-1] 
 
Definition at line 63 of file JFluxHelper.hh.
   68         THROW(JNullPointerException, 
"JFluxHelper::getFlux(): Unspecified flux function.");
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
bool is_valid() const 
Check validity of pointer. 
 
double getFlux(const Evt &evt) const 
Get flux of given event. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Get shared pointer. 
- Returns
 - this shared pointer 
 
Definition at line 95 of file JSharedPointer.hh.
The template JSharedPointer class can be used to share a pointer to an object. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Get shared pointer. 
- Returns
 - this shared pointer 
 
Definition at line 106 of file JSharedPointer.hh.
The template JSharedPointer class can be used to share a pointer to an object. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Set shared pointer. 
- Parameters
 - 
  
  
 
Definition at line 117 of file JSharedPointer.hh.
  119       if (this->
get() != 
object.
get()) {
 
void set(const JSharedPointer &object)
Set pointer. 
 
bool is_valid() const 
Check validity of pointer. 
 
virtual void reset() override
Reset pointer. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
Reset pointer. 
The reference counter is decremented by one and the object pointed to previously is deleted when its reference counter is zero. 
Reimplemented from JLANG::JStorage< JClass_t, JMemory_t >.
Definition at line 171 of file JSharedPointer.hh.
virtual void reset() override
Reset pointer. 
 
virtual void reset() override
Reset pointer. 
 
 
 
 
template<class JClass_t> 
template<class T > 
 
Reset pointer. 
- Parameters
 - 
  
  
 
Definition at line 108 of file JPointer.hh.
virtual JClass_t * get() const override
Get pointer. 
 
virtual void reset() override
Reset pointer. 
 
 
 
 
Reset pointer. 
- Parameters
 - 
  
  
 
Definition at line 94 of file JAbstractPointer.hh.
   96       if (this->
get() != p) {
 
virtual void reset()=0
Reset pointer. 
 
virtual void set(JClass_t *p)=0
Set pointer. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Set pointer. 
The reference counter of the shared object pointed to is incremented by one.
- Parameters
 - 
  
  
 
Definition at line 188 of file JSharedPointer.hh.
void attach(const JSharedCounter &object)
Attach this counter to given shared counter object. 
 
virtual void set(JClass_t *p) override
Set pointer. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
  
  | 
      
   | 
  
inlineoverrideprotectedvirtualinherited   | 
  
 
Set pointer. 
The reference counter of the shared object pointed to is initialised to one.
- Parameters
 - 
  
    | p | pointer to derived class object  | 
  
   
Reimplemented from JLANG::JPointer< JClass_t >.
Definition at line 202 of file JSharedPointer.hh.
void initialise()
Initialise counter. 
 
virtual void set(JClass_t *p) override
Set pointer. 
 
 
 
 
template<class JClass_t> 
template<class T > 
 
Set pointer. 
- Parameters
 - 
  
  
 
Definition at line 96 of file JPointer.hh.
virtual void set(JClass_t *p) override
Set pointer. 
 
virtual JClass_t * get() const override
Get pointer. 
 
 
 
 
  
  
      
        
          | void JLANG::JSharedCounter::initialise  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
Attach this counter to given shared counter object. 
- Parameters
 - 
  
  
 
Definition at line 46 of file JSharedCounter.hh.
 
 
  
  
      
        
          | bool JLANG::JSharedCounter::detach  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Detach. 
- Returns
 - true if counter at zero; else false 
 
Definition at line 63 of file JSharedCounter.hh.
 
 
  
  
      
        
          | const int JLANG::JSharedCounter::getCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Recreate object in memory. 
A new object is created if no memory is allocated yet, else the previously created object is maintained. 
Definition at line 57 of file JStorage.hh.
   60         this->
set(memory_type::create());
 
bool is_valid() const 
Check validity of pointer. 
 
virtual void set(JClass_t *p) override
Set pointer. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Create object in memory. 
The memory allocated by a previously created object will be released. 
Definition at line 69 of file JStorage.hh.
   71       this->
reset(memory_type::create());
 
virtual void reset() override
Reset pointer. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
  
  
      
        
          | void JLANG::JStorage< JClass_t, JMemory_t >::create  | 
          ( | 
          const unsigned int  | 
          size | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Create array of objects in memory. 
The memory allocated by previously created objects will be released.
- Parameters
 - 
  
  
 
Definition at line 81 of file JStorage.hh.
   83       this->
reset(memory_type::create(size));
 
virtual void reset() override
Reset pointer. 
 
 
 
 
template<class JClass_t, template< class > class JMemory_t = JNew> 
 
Release memory. 
Definition at line 91 of file JStorage.hh.
   93       memory_type::release(this->
get());
 
 
 
 
template<class JClass_t> 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
 
Get rereference to internal pointer. 
- Returns
 - reference to internal pointer 
 
Definition at line 119 of file JPointer.hh.
JClass_t * __p
pointer to object 
 
 
 
 
Get rereference to internal pointer. 
- Returns
 - reference to internal pointer 
 
Definition at line 130 of file JPointer.hh.
JClass_t * __p
pointer to object 
 
 
 
 
Equals. 
The equality is evaluated by comparison of the internal pointers.
- Parameters
 - 
  
  
 
- Returns
 - true if equals; else false 
 
Definition at line 50 of file JAbstractPointer.hh.
   52       return this->
get() == 
object.
get();
 
 
 
 
Check validity of pointer. 
- Returns
 - true if pointer not null; else false 
 
Definition at line 83 of file JAbstractPointer.hh.
   85       return this->
get() != NULL; 
 
 
 
 
Smart pointer operator. 
- Returns
 - pointer to object 
 
Definition at line 112 of file JAbstractPointer.hh.
bool is_valid() const 
Check validity of pointer. 
 
Exception for null pointer operation. 
 
 
 
 
  
  
      
        
          | int* JLANG::JSharedCounter::counter | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this struct was generated from the following file: