LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "FlashHypothesis.h"
Public Member Functions | |
FlashHypothesis () | |
FlashHypothesis (size_t s) | |
FlashHypothesis (std::vector< float > const &vector, std::vector< float > const &vector_error=std::vector< float >()) | |
std::vector< float > const & | GetHypothesisVector () const |
std::vector< float > const & | GetHypothesisErrorVector () const |
void | SetHypothesisVector (std::vector< float > v) |
void | SetHypothesisErrorVector (std::vector< float > v) |
void | SetHypothesisVectorAndErrorVector (std::vector< float > v, std::vector< float > err=std::vector< float >(0)) |
float const & | GetHypothesis (size_t i_opdet) const |
float const & | GetHypothesisError (size_t i_opdet) const |
void | SetHypothesis (size_t i_opdet, float pe) |
void | SetHypothesisError (size_t i_opdet, float err) |
void | SetHypothesisAndError (size_t i_opdet, float pe, float err=-999) |
float | GetTotalPEs () const |
float | GetTotalPEsError () const |
size_t | GetVectorSize () const |
void | Normalize (float const &totalPE_target) |
void | Print () |
FlashHypothesis | operator+ (const FlashHypothesis &fh) |
Private Attributes | |
std::vector< float > | _NPEs_Vector |
std::vector< float > | _NPEs_ErrorVector |
Definition at line 19 of file FlashHypothesis.h.
|
inline |
Definition at line 22 of file FlashHypothesis.h.
Referenced by opdet::FlashHypothesisCollection::FlashHypothesisCollection().
|
inline |
Definition at line 23 of file FlashHypothesis.h.
References _NPEs_ErrorVector, _NPEs_Vector, and s.
|
inline |
Definition at line 25 of file FlashHypothesis.h.
References SetHypothesisVectorAndErrorVector().
|
inline |
Definition at line 35 of file FlashHypothesis.h.
References _NPEs_Vector.
Referenced by opdet::FlashHypothesisComparison::FillFlashHypothesisInfo(), and Print().
|
inline |
Definition at line 36 of file FlashHypothesis.h.
References _NPEs_ErrorVector.
Referenced by Print().
|
inline |
Definition at line 30 of file FlashHypothesis.h.
References _NPEs_ErrorVector.
Referenced by opdet::FlashUtilities::CompareByError().
|
inline |
Definition at line 29 of file FlashHypothesis.h.
References _NPEs_Vector.
Referenced by opdet::FlashUtilities::CompareByError(), opdet::FlashUtilities::CompareByFraction(), and opdet::FlashHypothesisComparison::FillFlashHypothesisInfo().
|
inline |
Definition at line 42 of file FlashHypothesis.h.
References _NPEs_Vector.
Referenced by opdet::FlashUtilities::CompareByError(), opdet::FlashHypothesisComparison::FillFlashHypothesisInfo(), Normalize(), Print(), opdet::FlashHypothesisCollection::SetPromptHypAndPromptFraction(), and opdet::FlashHypothesisCollection::SetTotalHypAndPromptFraction().
|
inline |
Definition at line 44 of file FlashHypothesis.h.
References _NPEs_ErrorVector.
Referenced by opdet::FlashUtilities::CompareByError(), opdet::FlashHypothesisComparison::FillFlashHypothesisInfo(), and Print().
|
inline |
Definition at line 47 of file FlashHypothesis.h.
References _NPEs_Vector, Normalize(), and Print().
Referenced by opdet::FlashUtilities::CompareByError(), opdet::FlashHypothesisCalculator::FillFlashHypothesis(), operator+(), opdet::FlashHypothesisCollection::operator+(), and Print().
void opdet::FlashHypothesis::Normalize | ( | float const & | totalPE_target | ) |
Definition at line 28 of file FlashHypothesis.cxx.
References _NPEs_ErrorVector, _NPEs_Vector, and GetTotalPEs().
Referenced by opdet::FlashHypothesisCollection::GetTotalHypothesis(), GetVectorSize(), opdet::FlashHypothesisCollection::SetPromptHypAndPromptFraction(), and opdet::FlashHypothesisCollection::SetTotalHypAndPromptFraction().
|
inline |
Definition at line 53 of file FlashHypothesis.h.
References _NPEs_ErrorVector, _NPEs_Vector, and GetVectorSize().
void opdet::FlashHypothesis::Print | ( | ) |
Definition at line 40 of file FlashHypothesis.cxx.
References GetHypothesis(), GetHypothesisError(), GetTotalPEs(), GetTotalPEsError(), and GetVectorSize().
Referenced by opdet::FlashHypothesisCollection::GetTotalHypothesis(), and GetVectorSize().
|
inline |
Definition at line 37 of file FlashHypothesis.h.
References _NPEs_Vector.
Referenced by SetHypothesisAndError().
void opdet::FlashHypothesis::SetHypothesisAndError | ( | size_t | i_opdet, |
float | pe, | ||
float | err = -999 |
||
) |
Definition at line 21 of file FlashHypothesis.cxx.
References SetHypothesis(), and SetHypothesisError().
Referenced by opdet::FlashHypothesisCalculator::FillFlashHypothesis(), and SetHypothesisError().
|
inline |
Definition at line 38 of file FlashHypothesis.h.
References _NPEs_ErrorVector, and SetHypothesisAndError().
Referenced by SetHypothesisAndError().
|
inline |
Definition at line 32 of file FlashHypothesis.h.
References _NPEs_ErrorVector, _NPEs_Vector, and SetHypothesisVectorAndErrorVector().
|
inline |
Definition at line 31 of file FlashHypothesis.h.
References _NPEs_ErrorVector, and _NPEs_Vector.
void opdet::FlashHypothesis::SetHypothesisVectorAndErrorVector | ( | std::vector< float > | v, |
std::vector< float > | err = std::vector<float>(0) |
||
) |
Definition at line 4 of file FlashHypothesis.cxx.
References _NPEs_ErrorVector, and _NPEs_Vector.
Referenced by FlashHypothesis(), and SetHypothesisErrorVector().
|
private |
Definition at line 70 of file FlashHypothesis.h.
Referenced by FlashHypothesis(), GetHypothesisError(), GetHypothesisErrorVector(), GetTotalPEsError(), Normalize(), operator+(), SetHypothesisError(), SetHypothesisErrorVector(), SetHypothesisVector(), and SetHypothesisVectorAndErrorVector().
|
private |
Definition at line 69 of file FlashHypothesis.h.
Referenced by FlashHypothesis(), GetHypothesis(), GetHypothesisVector(), GetTotalPEs(), GetVectorSize(), Normalize(), operator+(), SetHypothesis(), SetHypothesisErrorVector(), SetHypothesisVector(), and SetHypothesisVectorAndErrorVector().