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 }
std::shared_ptr< TF1 > fCent_
Definition: MuMatchWindow.h:40
void SetLower(std::string formula)
Definition: MuMatchWindow.cc:9
std::shared_ptr< TF1 > fHigh_
Definition: MuMatchWindow.h:41
void SetUpper(std::string formula)
std::shared_ptr< TF1 > fLow_
Definition: MuMatchWindow.h:39
double f[11][100]
void SetName(std::string name)
Definition: MuMatchWindow.h:22
void SetCentral(std::string formula)
std::string name_
Definition: MuMatchWindow.h:38