LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 18 of file FlashHypothesis.h.
|
inline |
Definition at line 21 of file FlashHypothesis.h.
Referenced by opdet::FlashHypothesisCollection::FlashHypothesisCollection().
|
inline |
Definition at line 22 of file FlashHypothesis.h.
References _NPEs_ErrorVector, and _NPEs_Vector.
|
inline |
Definition at line 27 of file FlashHypothesis.h.
References SetHypothesisVectorAndErrorVector().
|
inline |
Definition at line 48 of file FlashHypothesis.h.
References _NPEs_Vector.
Referenced by opdet::FlashHypothesisComparison::FillFlashHypothesisInfo(), and Print().
|
inline |
Definition at line 49 of file FlashHypothesis.h.
References _NPEs_ErrorVector.
Referenced by Print().
|
inline |
Definition at line 34 of file FlashHypothesis.h.
References _NPEs_ErrorVector.
Referenced by opdet::FlashUtilities::CompareByError().
|
inline |
Definition at line 33 of file FlashHypothesis.h.
References _NPEs_Vector.
Referenced by opdet::FlashUtilities::CompareByError(), opdet::FlashUtilities::CompareByFraction(), and opdet::FlashHypothesisComparison::FillFlashHypothesisInfo().
|
inline |
Definition at line 55 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 59 of file FlashHypothesis.h.
References _NPEs_ErrorVector.
Referenced by opdet::FlashUtilities::CompareByError(), opdet::FlashHypothesisComparison::FillFlashHypothesisInfo(), and Print().
|
inline |
Definition at line 65 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 32 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 71 of file FlashHypothesis.h.
References _NPEs_ErrorVector, _NPEs_Vector, and GetVectorSize().
void opdet::FlashHypothesis::Print | ( | ) |
Definition at line 44 of file FlashHypothesis.cxx.
References GetHypothesis(), GetHypothesisError(), GetTotalPEs(), GetTotalPEsError(), and GetVectorSize().
Referenced by opdet::FlashHypothesisCollection::GetTotalHypothesis(), and GetVectorSize().
|
inline |
Definition at line 50 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 23 of file FlashHypothesis.cxx.
References SetHypothesis(), and SetHypothesisError().
Referenced by opdet::FlashHypothesisCalculator::FillFlashHypothesis(), and SetHypothesisError().
|
inline |
Definition at line 51 of file FlashHypothesis.h.
References _NPEs_ErrorVector, and SetHypothesisAndError().
Referenced by SetHypothesisAndError().
|
inline |
Definition at line 40 of file FlashHypothesis.h.
References _NPEs_ErrorVector, _NPEs_Vector, and SetHypothesisVectorAndErrorVector().
|
inline |
Definition at line 35 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 6 of file FlashHypothesis.cxx.
References _NPEs_ErrorVector, and _NPEs_Vector.
Referenced by FlashHypothesis(), and SetHypothesisErrorVector().
|
private |
Definition at line 90 of file FlashHypothesis.h.
Referenced by FlashHypothesis(), GetHypothesisError(), GetHypothesisErrorVector(), GetTotalPEsError(), Normalize(), operator+(), SetHypothesisError(), SetHypothesisErrorVector(), SetHypothesisVector(), and SetHypothesisVectorAndErrorVector().
|
private |
Definition at line 89 of file FlashHypothesis.h.
Referenced by FlashHypothesis(), GetHypothesis(), GetHypothesisVector(), GetTotalPEs(), GetVectorSize(), Normalize(), operator+(), SetHypothesis(), SetHypothesisErrorVector(), SetHypothesisVector(), and SetHypothesisVectorAndErrorVector().