#include <RPCLinkSynchroStat.h>
Public Member Functions | |
const std::vector< unsigned int > & | counts () const |
unsigned int | firstHit () const |
void | increment (unsigned int bxDiff) |
double | mean () const |
SynchroCounts & | operator+= (const SynchroCounts &rhs) |
bool | operator== (const SynchroCounts &) const |
std::string | print () const |
double | rms () const |
void | set (unsigned int bxDiff) |
unsigned int | sum () const |
SynchroCounts () | |
SynchroCounts (const unsigned int *hits) | |
Private Member Functions | |
unsigned int | mom0 () const |
double | mom1 () const |
Private Attributes | |
std::vector< unsigned int > | theCounts |
Definition at line 46 of file RPCLinkSynchroStat.h.
RPCLinkSynchroStat::SynchroCounts::SynchroCounts | ( | ) | [inline] |
Definition at line 48 of file RPCLinkSynchroStat.h.
: theCounts(std::vector<unsigned int>(8,0)) {}
RPCLinkSynchroStat::SynchroCounts::SynchroCounts | ( | const unsigned int * | hits | ) | [inline] |
Definition at line 49 of file RPCLinkSynchroStat.h.
: theCounts(std::vector<unsigned int>(hits,hits+8)) {}
const std::vector<unsigned int>& RPCLinkSynchroStat::SynchroCounts::counts | ( | ) | const [inline] |
unsigned int RPCLinkSynchroStat::SynchroCounts::firstHit | ( | ) | const |
void RPCLinkSynchroStat::SynchroCounts::increment | ( | unsigned int | bxDiff | ) |
Definition at line 53 of file RPCLinkSynchroStat.cc.
{ if (bxDiff < 8) theCounts[bxDiff]++; }
double RPCLinkSynchroStat::SynchroCounts::mean | ( | ) | const |
unsigned int RPCLinkSynchroStat::SynchroCounts::mom0 | ( | ) | const [private] |
double RPCLinkSynchroStat::SynchroCounts::mom1 | ( | ) | const [private] |
RPCLinkSynchroStat::SynchroCounts & RPCLinkSynchroStat::SynchroCounts::operator+= | ( | const SynchroCounts & | rhs | ) |
bool RPCLinkSynchroStat::SynchroCounts::operator== | ( | const SynchroCounts & | o | ) | const |
std::string RPCLinkSynchroStat::SynchroCounts::print | ( | void | ) | const |
Definition at line 84 of file RPCLinkSynchroStat.cc.
References i, timingPdfMaker::mean, and plotscripts::rms().
Referenced by RPCLinkSynchroStat::dumpDelays().
double RPCLinkSynchroStat::SynchroCounts::rms | ( | ) | const |
Definition at line 73 of file RPCLinkSynchroStat.cc.
References i, timingPdfMaker::mean, query::result, and mathSSE::sqrt().
void RPCLinkSynchroStat::SynchroCounts::set | ( | unsigned int | bxDiff | ) |
Definition at line 48 of file RPCLinkSynchroStat.cc.
{ if (bxDiff < 8) theCounts[bxDiff]=1; }
unsigned int RPCLinkSynchroStat::SynchroCounts::sum | ( | ) | const [inline] |
std::vector<unsigned int> RPCLinkSynchroStat::SynchroCounts::theCounts [private] |
Definition at line 66 of file RPCLinkSynchroStat.h.
Referenced by counts(), operator+=(), and operator==().