#include <TMarkov.h>
Definition at line 6 of file TMarkov.h.
◆ TMarkov()
◆ ~TMarkov()
◆ computeChain()
int TMarkov::computeChain |
( |
int * |
bing | ) |
|
|
private |
Definition at line 40 of file TMarkov.cc.
47 double sumUprime, sumU;
48 double jumpToNext, jumpToPrevious;
49 double chainToNext, chainToPrevious;
50 double aConst[101], uprime[101];
53 for (
m = 3,
i = 1, nuprime = 1;
i < 101;
i++) {
55 for (
k = 1, jumpToNext = 0., jumpToPrevious = 0.;
k <=
m;
k++) {
57 if (bing[
i] > 0 || bing[
i +
k] > 0)
58 jumpToNext +=
exp((
double)(bing[
i +
k] - bing[
i]) /
sqrt((
double)(bing[
i +
k] + bing[
i])));
60 if (bing[
i] > 0 || bing[
i -
k] > 0)
61 jumpToPrevious +=
exp((
double)(bing[
i -
k] - bing[
i]) /
sqrt((
double)(bing[
i -
k] + bing[
i])));
65 if (jumpToNext > 0. && jumpToPrevious > 0.) {
66 aConst[
i] = -
log(jumpToNext + jumpToPrevious);
67 chainToNext = aConst[
i] +
log(jumpToNext);
68 chainToPrevious = aConst[
i] +
log(jumpToPrevious);
69 uprime[
i] = chainToNext - chainToPrevious;
71 u[nuprime] = uprime[
i];
82 for (
k = 3, sumUprime =
u[2], sumU =
u[2];
k < nuprime + 1;
k++) {
90 for (
k = 2;
k < nuprime + 1;
k++)
96 for (
i = 1;
i < nuprime + 1;
i++) {
References binu, JetChargeProducer_cfi::exp, mps_fire::i, dqmdumpme::k, dqm-mbProfile::log, visualization-live-secondInstance_cfg::m, hltrates_dqm_sourceclient-live_cfg::offset, mathSSE::sqrt(), and u.
Referenced by peakFinder().
◆ getBinMax()
int TMarkov::getBinMax |
( |
| ) |
const |
|
inline |
◆ getPeakValue()
double TMarkov::getPeakValue |
( |
int |
i | ) |
const |
|
inline |
◆ init()
◆ peakFinder()
void TMarkov::peakFinder |
( |
int * |
bing | ) |
|
◆ binu
double TMarkov::binu[102] |
|
private |
◆ fNbinu
◆ fNPeakValues
int TMarkov::fNPeakValues |
|
private |
◆ imax
◆ peak