CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
MuMatchWindow Class Reference

#include <MuMatchWindow.h>

Public Member Functions

const double bound_cent (double pt)
 
const double bound_high (double pt)
 
const double bound_low (double pt)
 
 MuMatchWindow ()
 
 MuMatchWindow (std::string name)
 
void SetCentral (std::string formula)
 
void SetCentral (TF1 *formula)
 
void SetLower (std::string formula)
 
void SetLower (TF1 *formula)
 
void SetName (std::string name)
 
void SetUpper (std::string formula)
 
void SetUpper (TF1 *formula)
 
 ~MuMatchWindow ()
 

Private Attributes

std::shared_ptr< TF1 > fCent_
 
std::shared_ptr< TF1 > fHigh_
 
std::shared_ptr< TF1 > fLow_
 
std::string name_
 

Detailed Description

Definition at line 17 of file MuMatchWindow.h.

Constructor & Destructor Documentation

MuMatchWindow::MuMatchWindow ( )

Definition at line 3 of file MuMatchWindow.cc.

References name_.

3 { name_ = ""; }
std::string name_
Definition: MuMatchWindow.h:38
MuMatchWindow::MuMatchWindow ( std::string  name)

Definition at line 5 of file MuMatchWindow.cc.

References SetName().

5 { SetName(name); }
void SetName(std::string name)
Definition: MuMatchWindow.h:22
MuMatchWindow::~MuMatchWindow ( )

Definition at line 7 of file MuMatchWindow.cc.

7 {}

Member Function Documentation

const double MuMatchWindow::bound_cent ( double  pt)
inline

Definition at line 34 of file MuMatchWindow.h.

References fCent_.

34 { return fCent_->Eval(pt); }
std::shared_ptr< TF1 > fCent_
Definition: MuMatchWindow.h:40
const double MuMatchWindow::bound_high ( double  pt)
inline

Definition at line 35 of file MuMatchWindow.h.

References fHigh_.

35 { return fHigh_->Eval(pt); }
std::shared_ptr< TF1 > fHigh_
Definition: MuMatchWindow.h:41
const double MuMatchWindow::bound_low ( double  pt)
inline

Definition at line 33 of file MuMatchWindow.h.

References fLow_.

33 { return fLow_->Eval(pt); }
std::shared_ptr< TF1 > fLow_
Definition: MuMatchWindow.h:39
void MuMatchWindow::SetCentral ( std::string  formula)

Definition at line 14 of file MuMatchWindow.cc.

References validate-o2o-wbm::f.

14  {
15  TF1 f("tmp", formula.c_str(), 0, 1000);
16  SetCentral(&f);
17 }
void SetCentral(std::string formula)
void MuMatchWindow::SetCentral ( TF1 *  formula)

Definition at line 30 of file MuMatchWindow.cc.

References fCent_, name_, and AlCaHLTBitMon_QueryRunRegistry::string.

30  {
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 }
std::shared_ptr< TF1 > fCent_
Definition: MuMatchWindow.h:40
std::string name_
Definition: MuMatchWindow.h:38
void MuMatchWindow::SetLower ( std::string  formula)

Definition at line 9 of file MuMatchWindow.cc.

References validate-o2o-wbm::f.

9  {
10  TF1 f("tmp", formula.c_str(), 0, 1000);
11  SetLower(&f);
12 }
void SetLower(std::string formula)
Definition: MuMatchWindow.cc:9
void MuMatchWindow::SetLower ( TF1 *  formula)

Definition at line 24 of file MuMatchWindow.cc.

References fLow_, name_, and AlCaHLTBitMon_QueryRunRegistry::string.

24  {
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 }
std::shared_ptr< TF1 > fLow_
Definition: MuMatchWindow.h:39
std::string name_
Definition: MuMatchWindow.h:38
void MuMatchWindow::SetName ( std::string  name)
inline

Definition at line 22 of file MuMatchWindow.h.

References mergeVDriftHistosByStation::name, and name_.

Referenced by MuMatchWindow().

void MuMatchWindow::SetUpper ( std::string  formula)

Definition at line 19 of file MuMatchWindow.cc.

References validate-o2o-wbm::f.

19  {
20  TF1 f("tmp", formula.c_str(), 0, 1000);
21  SetUpper(&f);
22 }
void SetUpper(std::string formula)
void MuMatchWindow::SetUpper ( TF1 *  formula)

Definition at line 36 of file MuMatchWindow.cc.

References fHigh_, name_, and AlCaHLTBitMon_QueryRunRegistry::string.

36  {
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 > fHigh_
Definition: MuMatchWindow.h:41
std::string name_
Definition: MuMatchWindow.h:38

Member Data Documentation

std::shared_ptr<TF1> MuMatchWindow::fCent_
private

Definition at line 40 of file MuMatchWindow.h.

Referenced by bound_cent(), and SetCentral().

std::shared_ptr<TF1> MuMatchWindow::fHigh_
private

Definition at line 41 of file MuMatchWindow.h.

Referenced by bound_high(), and SetUpper().

std::shared_ptr<TF1> MuMatchWindow::fLow_
private

Definition at line 39 of file MuMatchWindow.h.

Referenced by bound_low(), and SetLower().

std::string MuMatchWindow::name_
private

Definition at line 38 of file MuMatchWindow.h.

Referenced by MuMatchWindow(), SetCentral(), SetLower(), SetName(), and SetUpper().