#include <MedianPedestalService.h>
Definition at line 30 of file MedianPedestalService.h.
Implements PedestalEvaluationService.
Definition at line 37 of file MedianPedestalService_service.cc.
39 const string myname =
"MedianPedestalService::evaluate: ";
47 if ( sigsin.size() == 0 )
return 0;
49 unsigned int nsig = sigsin.size();
51 unsigned int nsigout = 0;
52 for (
unsigned int isig=0; isig<nsig; ++isig ) {
60 bool isSignal = signal[isig];
61 if ( isSignal )
continue;
64 else sigs.push_back(sig);
71 sort(sigs.begin(), sigs.end());
72 unsigned int isig = sigs.size()/2;
73 bool isodd = sigs.size()%2;
74 ped = isodd ? sigs[isig-1] : 0.5*(sigs[isig-1] + sigs[isig]);
77 if ( pped !=
nullptr ) *pped = ped;
78 if ( prms !=
nullptr ) *prms =
rms;
79 if ( ppederr !=
nullptr ) *ppederr = pederr;
80 if ( prmserr !=
nullptr ) *prmserr = rmserr;
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
std::vector< AdcFlag > AdcFlagVector
std::vector< bool > AdcFilterVector
std::vector< AdcSignal > AdcSignalVector
ostream & MedianPedestalService::print |
( |
std::ostream & |
out = std::cout , |
|
|
std::string |
prefix = "" |
|
) |
| const |
|
virtual |
int MedianPedestalService::m_LogLevel |
|
private |
bool MedianPedestalService::m_SkipFlaggedSamples |
|
private |
bool MedianPedestalService::m_SkipSignals |
|
private |
bool MedianPedestalService::m_UseMean |
|
private |
The documentation for this class was generated from the following files: