#include <SlidingPeakFinder.h>
|
bool | operator() (uint8_t max, uint8_t min) const |
|
bool | operator() (const uint8_t *left, const uint8_t *right, const uint8_t *begin, const uint8_t *end) const |
|
| PeakFinderTest (float mip, uint32_t detid, uint32_t firstStrip, const SiStripNoises *theNoise, float seedCutMIPs, float seedCutSN, float subclusterCutMIPs, float subclusterCutSN) |
|
Definition at line 55 of file SlidingPeakFinder.h.
◆ PeakFinderTest()
PeakFinderTest::PeakFinderTest |
( |
float |
mip, |
|
|
uint32_t |
detid, |
|
|
uint32_t |
firstStrip, |
|
|
const SiStripNoises * |
theNoise, |
|
|
float |
seedCutMIPs, |
|
|
float |
seedCutSN, |
|
|
float |
subclusterCutMIPs, |
|
|
float |
subclusterCutSN |
|
) |
| |
|
inline |
◆ operator()() [1/2]
bool PeakFinderTest::operator() |
( |
uint8_t |
max, |
|
|
uint8_t |
min |
|
) |
| const |
|
inline |
◆ operator()() [2/2]
bool PeakFinderTest::operator() |
( |
const uint8_t * |
left, |
|
|
const uint8_t * |
right, |
|
|
const uint8_t * |
begin, |
|
|
const uint8_t * |
end |
|
) |
| const |
|
inline |
Definition at line 76 of file SlidingPeakFinder.h.
References mps_fire::end, firstStrip_, SiStripNoises::getNoise(), createfilelist::int, SiStripPI::max, hgchebackDigitizer_cfi::noise, noiseObj_, noises_, funct::pow(), subclusterCutSN2_, sumCut_, and x.
77 int yleft = (left <
begin ? 0 : *left);
78 int yright = (right >=
end ? 0 : *right);
82 for (
const uint8_t *
x = left + 1;
x < right; ++
x) {
83 int baseline = (yleft *
int(right -
x) + yright *
int(
x - left)) /
int(right - left);
84 sum +=
int(*
x) - baseline;
86 maxval =
std::max(maxval,
int(*
x) - baseline);
static float getNoise(uint16_t strip, const Range &range)
const SiStripNoises * noiseObj_
SiStripNoises::Range noises_
Power< A, B >::type pow(const A &a, const B &b)
◆ cut_
uint8_t PeakFinderTest::cut_ |
|
private |
◆ detid_
unsigned int PeakFinderTest::detid_ |
|
private |
◆ firstStrip_
int PeakFinderTest::firstStrip_ |
|
private |
◆ mip_
float PeakFinderTest::mip_ |
|
private |
◆ noiseObj_
◆ noises_
◆ subclusterCutMIPs_
float PeakFinderTest::subclusterCutMIPs_ |
|
private |
◆ subclusterCutSN2_
float PeakFinderTest::subclusterCutSN2_ |
|
private |
◆ sumCut_
float PeakFinderTest::sumCut_ |
|
private |