#include <FlashHypothesis.h>
Definition at line 18 of file FlashHypothesis.h.
 
  
  | 
        
          | opdet::FlashHypothesis::FlashHypothesis | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | opdet::FlashHypothesis::FlashHypothesis | ( | size_t | s | ) |  |  | inline | 
 
Definition at line 22 of file FlashHypothesis.h.
std::vector< float > _NPEs_ErrorVector
std::vector< float > _NPEs_Vector
then echo File list $list not found else cat $list while read file do echo $file sed s
 
 
 
  
  | 
        
          | opdet::FlashHypothesis::FlashHypothesis | ( | std::vector< float > const & | vector, |  
          |  |  | std::vector< float > const & | vector_error = std::vector<float>() |  
          |  | ) |  |  |  | inline | 
 
Definition at line 24 of file FlashHypothesis.h.
void SetHypothesisVectorAndErrorVector(std::vector< float > v, std::vector< float > err=std::vector< float >(0))
 
 
 
  
  | 
        
          | float const& opdet::FlashHypothesis::GetHypothesis | ( | size_t | i_opdet | ) | const |  | inline | 
 
 
  
  | 
        
          | float const& opdet::FlashHypothesis::GetHypothesisError | ( | size_t | i_opdet | ) | const |  | inline | 
 
 
  
  | 
        
          | std::vector<float> const& opdet::FlashHypothesis::GetHypothesisErrorVector | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | std::vector<float> const& opdet::FlashHypothesis::GetHypothesisVector | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | float opdet::FlashHypothesis::GetTotalPEs | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | float opdet::FlashHypothesis::GetTotalPEsError | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | size_t opdet::FlashHypothesis::GetVectorSize | ( |  | ) | const |  | inline | 
 
 
      
        
          | void FlashHypothesis::Normalize | ( | float const & | totalPE_target | ) |  | 
      
 
Definition at line 30 of file FlashHypothesis.cxx.
   32   if( 
GetTotalPEs() < std::numeric_limits<float>::epsilon() ) 
return;
 
   34   const float PE_ratio = totalPE_target/
GetTotalPEs();
 
   35   for(
size_t i_opdet=0; i_opdet<
_NPEs_Vector.size(); i_opdet++){
 
std::vector< float > _NPEs_ErrorVector
float GetTotalPEs() const 
std::vector< float > _NPEs_Vector
 
 
 
Definition at line 52 of file FlashHypothesis.h.
   55         throw std::runtime_error(
"ERROR in FlashHypothesisAddition: Cannot add hypothesis of different size");
 
   59         flashhyp._NPEs_Vector[i] = 
_NPEs_Vector[i] + fh._NPEs_Vector[i];
 
   60         flashhyp._NPEs_ErrorVector[i] =
 
   62                     fh._NPEs_ErrorVector[i]*fh._NPEs_ErrorVector[i]);
 
std::vector< float > _NPEs_ErrorVector
std::vector< float > _NPEs_Vector
 
 
 
      
        
          | void FlashHypothesis::Print | ( |  | ) |  | 
      
 
Definition at line 42 of file FlashHypothesis.cxx.
size_t GetVectorSize() const 
float GetTotalPEsError() const 
float GetTotalPEs() const 
float const & GetHypothesisError(size_t i_opdet) const 
float const & GetHypothesis(size_t i_opdet) const 
BEGIN_PROLOG could also be cout
 
 
 
  
  | 
        
          | void opdet::FlashHypothesis::SetHypothesis | ( | size_t | i_opdet, |  
          |  |  | float | pe |  
          |  | ) |  |  |  | inline | 
 
 
      
        
          | void FlashHypothesis::SetHypothesisAndError | ( | size_t | i_opdet, | 
        
          |  |  | float | pe, | 
        
          |  |  | float | err = -999 | 
        
          |  | ) |  |  | 
      
 
Definition at line 23 of file FlashHypothesis.cxx.
EResult err(const char *call)
void SetHypothesisError(size_t i_opdet, float err)
void SetHypothesis(size_t i_opdet, float pe)
 
 
 
  
  | 
        
          | void opdet::FlashHypothesis::SetHypothesisError | ( | size_t | i_opdet, |  
          |  |  | float | err |  
          |  | ) |  |  |  | inline | 
 
Definition at line 37 of file FlashHypothesis.h.
EResult err(const char *call)
std::vector< float > _NPEs_ErrorVector
 
 
 
  
  | 
        
          | void opdet::FlashHypothesis::SetHypothesisErrorVector | ( | std::vector< float > | v | ) |  |  | inline | 
 
Definition at line 31 of file FlashHypothesis.h.
std::vector< float > _NPEs_ErrorVector
std::vector< float > _NPEs_Vector
 
 
 
  
  | 
        
          | void opdet::FlashHypothesis::SetHypothesisVector | ( | std::vector< float > | v | ) |  |  | inline | 
 
Definition at line 30 of file FlashHypothesis.h.
std::vector< float > _NPEs_ErrorVector
std::vector< float > _NPEs_Vector
 
 
 
      
        
          | void FlashHypothesis::SetHypothesisVectorAndErrorVector | ( | std::vector< float > | v, | 
        
          |  |  | std::vector< float > | err = std::vector<float>(0) | 
        
          |  | ) |  |  | 
      
 
Definition at line 6 of file FlashHypothesis.cxx.
    8   if(err.size()!=0 && err.size()!=v.size())
 
    9     throw std::runtime_error(
"ERROR in FlashHypothesisVectorSetter: Vector sizes not equal");
 
EResult err(const char *call)
std::vector< float > _NPEs_ErrorVector
std::vector< float > _NPEs_Vector
 
 
 
  
  | 
        
          | std::vector<float> opdet::FlashHypothesis::_NPEs_ErrorVector |  | private | 
 
 
  
  | 
        
          | std::vector<float> opdet::FlashHypothesis::_NPEs_Vector |  | private | 
 
 
The documentation for this class was generated from the following files: