CMS 3D CMS Logo

MuMatchWindow.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TTrackMatch_MUMATCHWINDOW_H
2 #define L1Trigger_L1TTrackMatch_MUMATCHWINDOW_H
3 
4 #include "TF1.h"
5 #include <string>
6 #include <memory>
7 #include <iostream>
8 
9 /*
10 ** class : MuMatchWindow
11 ** author : L.Cadamuro (UF)
12 ** date : 25/12/2018
13 ** brief : encodes the lower, central, and upper bounds to match a track to a muon
14 ** to be flexible, limits are given as strings to create a TF1 function
15 */
16 
18 public:
19  MuMatchWindow();
23 
27 
28  void SetLower(TF1* formula);
29  void SetCentral(TF1* formula);
30  void SetUpper(TF1* formula);
31 
32  // bool matches (double pt);
33  const double bound_low(double pt) { return fLow_->Eval(pt); }
34  const double bound_cent(double pt) { return fCent_->Eval(pt); }
35  const double bound_high(double pt) { return fHigh_->Eval(pt); }
36 
37 private:
39  std::shared_ptr<TF1> fLow_;
40  std::shared_ptr<TF1> fCent_;
41  std::shared_ptr<TF1> fHigh_;
42 };
43 
44 #endif
MuMatchWindow::fLow_
std::shared_ptr< TF1 > fLow_
Definition: MuMatchWindow.h:39
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
pfMETCorrectionType0_cfi.formula
formula
Definition: pfMETCorrectionType0_cfi.py:46
MuMatchWindow::bound_high
const double bound_high(double pt)
Definition: MuMatchWindow.h:35
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
MuMatchWindow::bound_low
const double bound_low(double pt)
Definition: MuMatchWindow.h:33
MuMatchWindow
Definition: MuMatchWindow.h:17
MuMatchWindow::fHigh_
std::shared_ptr< TF1 > fHigh_
Definition: MuMatchWindow.h:41
MuMatchWindow::bound_cent
const double bound_cent(double pt)
Definition: MuMatchWindow.h:34
MuMatchWindow::SetLower
void SetLower(std::string formula)
Definition: MuMatchWindow.cc:9
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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