CMS 3D CMS Logo

MuMatchWindow.cc
Go to the documentation of this file.
2 
4 
6 
8 
10  TF1 f("tmp", formula.c_str(), 0, 1000);
11  SetLower(&f);
12 }
13 
15  TF1 f("tmp", formula.c_str(), 0, 1000);
16  SetCentral(&f);
17 }
18 
20  TF1 f("tmp", formula.c_str(), 0, 1000);
21  SetUpper(&f);
22 }
23 
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 
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 
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
tools.TF1
TF1
Definition: tools.py:23
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