LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "FlashUtilities.h"
Public Member Functions | |
FlashUtilities () | |
float | CompareByError (const FlashHypothesis &, const std::vector< float > &, std::vector< float > &) |
float | CompareByFraction (const FlashHypothesis &, const std::vector< float > &, std::vector< float > &) |
float | CompareByFraction (const std::vector< float > &, const std::vector< float > &, std::vector< float > &) |
void | GetPosition (const std::vector< float > &, const std::vector< float > &, float &, float &) |
void | GetPosition (const std::vector< float > &, const std::vector< float > &, double &, double &) |
Definition at line 21 of file FlashUtilities.h.
|
inline |
Definition at line 25 of file FlashUtilities.h.
References CompareByError(), CompareByFraction(), and GetPosition().
float opdet::FlashUtilities::CompareByError | ( | const FlashHypothesis & | fh, |
const std::vector< float > & | compare_vector, | ||
std::vector< float > & | result_vector | ||
) |
Title: FlashUtilities Class Author: Wes Ketchum (wketc) hum@ lanl. gov
Description: Class that contains utility functions for flash and flash hypotheses: — compare a flash hypothesis to a truth or reco vector — get an extent of a flash (central point, width) These classes should operate using simple objects, and will need other classes/functions to fill those vectors properly.
Definition at line 20 of file FlashUtilities.cxx.
References opdet::FlashHypothesis::GetHypothesisErrorVector(), opdet::FlashHypothesis::GetHypothesisVector(), opdet::FlashHypothesis::GetTotalPEs(), opdet::FlashHypothesis::GetTotalPEsError(), and opdet::FlashHypothesis::GetVectorSize().
Referenced by opdet::FlashHypothesisComparison::FillComparisonInfo(), and FlashUtilities().
float opdet::FlashUtilities::CompareByFraction | ( | const FlashHypothesis & | fh, |
const std::vector< float > & | compare_vector, | ||
std::vector< float > & | result_vector | ||
) |
Definition at line 57 of file FlashUtilities.cxx.
References opdet::FlashHypothesis::GetHypothesisVector().
Referenced by FlashUtilities().
float opdet::FlashUtilities::CompareByFraction | ( | const std::vector< float > & | NPEs_Vector, |
const std::vector< float > & | compare_vector, | ||
std::vector< float > & | result_vector | ||
) |
Definition at line 64 of file FlashUtilities.cxx.
void opdet::FlashUtilities::GetPosition | ( | const std::vector< float > & | pe_vector, |
const std::vector< float > & | pos_vector, | ||
float & | mean, | ||
float & | rms | ||
) |
Definition at line 99 of file FlashUtilities.cxx.
References pmtana::mean().
Referenced by opdet::FlashHypothesisComparison::FillFlashHypothesisInfo(), opdet::FlashHypothesisComparison::FillSimPhotonCounterInfo(), FlashUtilities(), and GetPosition().
void opdet::FlashUtilities::GetPosition | ( | const std::vector< float > & | pe_vector, |
const std::vector< float > & | pos_vector, | ||
double & | mean, | ||
double & | rms | ||
) |
Definition at line 121 of file FlashUtilities.cxx.
References GetPosition().