CalibTracker
SiStripAPVAnalysis
interface
MedianCommonModeCalculator.h
Go to the documentation of this file.
1
#ifndef Tracker_MedianCommonModeCalculator_h
2
#define Tracker_MedianCommonModeCalculator_h
3
4
#include "
CalibTracker/SiStripAPVAnalysis/interface/TkCommonModeCalculator.h
"
5
#include "
CalibTracker/SiStripAPVAnalysis/interface/TkNoiseCalculator.h
"
6
#include "
CalibTracker/SiStripAPVAnalysis/interface/TkApvMask.h
"
11
class
MedianCommonModeCalculator
:
public
TkCommonModeCalculator
{
12
public
:
13
MedianCommonModeCalculator
();
14
15
~MedianCommonModeCalculator
()
override
;
16
17
ApvAnalysis::PedestalType
doIt
(
const
ApvAnalysis::PedestalType
&)
override
;
18
19
void
setCM
(
TkCommonMode
*
in
)
override
{
theTkCommonMode
=
in
; }
20
void
setCM
(
const
std::vector<float>&
in
)
override
{
theTkCommonMode
->
setCommonMode
(
in
); }
21
TkCommonMode
*
commonMode
()
override
{
return
theTkCommonMode
; }
22
23
void
newEvent
()
override
;
24
float
getCMSlope
()
override
{
return
slope
; }
25
26
protected
:
27
void
calculateCommonMode
(
ApvAnalysis::PedestalType
&);
28
29
TkCommonMode
*
theTkCommonMode
;
30
std::vector<float>
theCommonModeValues
;
31
bool
alreadyUsedEvent
;
32
float
slope
;
33
37
};
38
#endif
MedianCommonModeCalculator::~MedianCommonModeCalculator
~MedianCommonModeCalculator() override
Definition:
MedianCommonModeCalculator.cc:16
MedianCommonModeCalculator
Definition:
MedianCommonModeCalculator.h:11
TkCommonModeCalculator.h
MedianCommonModeCalculator::slope
float slope
Definition:
MedianCommonModeCalculator.h:32
MedianCommonModeCalculator::alreadyUsedEvent
bool alreadyUsedEvent
Definition:
MedianCommonModeCalculator.h:31
TkCommonMode
Definition:
TkCommonMode.h:13
MedianCommonModeCalculator::commonMode
TkCommonMode * commonMode() override
Definition:
MedianCommonModeCalculator.h:21
MedianCommonModeCalculator::doIt
ApvAnalysis::PedestalType doIt(const ApvAnalysis::PedestalType &) override
Definition:
MedianCommonModeCalculator.cc:23
MedianCommonModeCalculator::MedianCommonModeCalculator
MedianCommonModeCalculator()
Definition:
MedianCommonModeCalculator.cc:5
TkCommonMode::setCommonMode
void setCommonMode(const std::vector< float > &in)
Definition:
TkCommonMode.h:21
MedianCommonModeCalculator::getCMSlope
float getCMSlope() override
Definition:
MedianCommonModeCalculator.h:24
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
MedianCommonModeCalculator::setCM
void setCM(TkCommonMode *in) override
Definition:
MedianCommonModeCalculator.h:19
TkNoiseCalculator.h
MedianCommonModeCalculator::theTkCommonMode
TkCommonMode * theTkCommonMode
Definition:
MedianCommonModeCalculator.h:29
MedianCommonModeCalculator::newEvent
void newEvent() override
Definition:
MedianCommonModeCalculator.cc:65
TkCommonModeCalculator
Definition:
TkCommonModeCalculator.h:9
MedianCommonModeCalculator::theCommonModeValues
std::vector< float > theCommonModeValues
Definition:
MedianCommonModeCalculator.h:30
ApvAnalysis::PedestalType
std::vector< float > PedestalType
Definition:
ApvAnalysis.h:44
MedianCommonModeCalculator::setCM
void setCM(const std::vector< float > &in) override
Definition:
MedianCommonModeCalculator.h:20
TkApvMask.h
MedianCommonModeCalculator::calculateCommonMode
void calculateCommonMode(ApvAnalysis::PedestalType &)
Definition:
MedianCommonModeCalculator.cc:41
Generated for CMSSW Reference Manual by
1.8.16