L1Trigger
L1TTrackMatch
src
MuMatchWindow.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TTrackMatch/interface/MuMatchWindow.h
"
2
3
MuMatchWindow::MuMatchWindow
() {
name_
=
""
; }
4
5
MuMatchWindow::MuMatchWindow
(
std::string
name
) {
SetName
(
name
); }
6
7
MuMatchWindow::~MuMatchWindow
() {}
8
9
void
MuMatchWindow::SetLower
(
std::string
formula
) {
10
TF1
f
(
"tmp"
,
formula
.c_str(), 0, 1000);
11
SetLower
(&
f
);
12
}
13
14
void
MuMatchWindow::SetCentral
(
std::string
formula
) {
15
TF1
f
(
"tmp"
,
formula
.c_str(), 0, 1000);
16
SetCentral
(&
f
);
17
}
18
19
void
MuMatchWindow::SetUpper
(
std::string
formula
) {
20
TF1
f
(
"tmp"
,
formula
.c_str(), 0, 1000);
21
SetUpper
(&
f
);
22
}
23
24
void
MuMatchWindow::SetLower
(TF1*
formula
) {
25
if
(
fLow_
)
26
throw
std::runtime_error(
"Cannot initialize twice fLow_"
);
27
fLow_
= std::shared_ptr<TF1>((TF1*)
formula
->Clone((
name_
+
std::string
(
"low"
)).c_str()));
28
}
29
30
void
MuMatchWindow::SetCentral
(TF1*
formula
) {
31
if
(
fCent_
)
32
throw
std::runtime_error(
"Cannot initialize twice fCent_"
);
33
fCent_
= std::shared_ptr<TF1>((TF1*)
formula
->Clone((
name_
+
std::string
(
"cent"
)).c_str()));
34
}
35
36
void
MuMatchWindow::SetUpper
(TF1*
formula
) {
37
if
(
fHigh_
)
38
throw
std::runtime_error(
"Cannot initialize twice fHigh_"
);
39
fHigh_
= std::shared_ptr<TF1>((TF1*)
formula
->Clone((
name_
+
std::string
(
"high"
)).c_str()));
40
}
MuMatchWindow::fLow_
std::shared_ptr< TF1 > fLow_
Definition:
MuMatchWindow.h:39
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
MuMatchWindow.h
pfMETCorrectionType0_cfi.formula
formula
Definition:
pfMETCorrectionType0_cfi.py:46
MuMatchWindow::MuMatchWindow
MuMatchWindow()
Definition:
MuMatchWindow.cc:3
MuMatchWindow::fCent_
std::shared_ptr< TF1 > fCent_
Definition:
MuMatchWindow.h:40
MuMatchWindow::SetName
void SetName(std::string name)
Definition:
MuMatchWindow.h:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuMatchWindow::fHigh_
std::shared_ptr< TF1 > fHigh_
Definition:
MuMatchWindow.h:41
MuMatchWindow::SetLower
void SetLower(std::string formula)
Definition:
MuMatchWindow.cc:9
MuMatchWindow::SetCentral
void SetCentral(std::string formula)
Definition:
MuMatchWindow.cc:14
MuMatchWindow::name_
std::string name_
Definition:
MuMatchWindow.h:38
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
MuMatchWindow::SetUpper
void SetUpper(std::string formula)
Definition:
MuMatchWindow.cc:19
MuMatchWindow::~MuMatchWindow
~MuMatchWindow()
Definition:
MuMatchWindow.cc:7
Generated for CMSSW Reference Manual by
1.8.16