#include <semilCorr.h>
Definition at line 15 of file semilCorr.h.
◆ Systematics
| Enumerator |
|---|
| TAGGINGWEIGHT | |
| FRAGMENTATION | |
| DECAY | |
| MSRESO | |
| IDRESO | |
| DECAYREW | |
| MUONSPECTRUM | |
| ALL | |
Definition at line 18 of file semilCorr.h.
◆ semilCorr()
| semilCorr::semilCorr |
( |
const TString & | fIn, |
|
|
const std::string & | suffix = "", |
|
|
bool | DebugIn = false ) |
Definition at line 9 of file semilCorr.cxx.
9 {
11 m_f = TFile::Open(fIn);
18
19 vector<string> etastr;
20 etastr.push_back("_e0");
21 etastr.push_back("_e1");
22 etastr.push_back("_e2");
23 etastr.push_back("_e3");
24 etastr.push_back("_e4");
25
28 prefix.push_back(
"tagSyst");
29 prefix.push_back(
"fragSyst");
30 prefix.push_back(
"decaySyst");
31 prefix.push_back(
"msSyst");
32 prefix.push_back(
"idSyst");
33 prefix.push_back(
"decayRewSyst");
34 prefix.push_back(
"muRewSyst");
35 prefix.push_back(
"corrIncl");
36
37 for(
unsigned int j = 0; j<
prefix.size(); j++){
38 vector<TH1F*> corr;
39 for(
unsigned int i = 0;
i<etastr.size();
i++){
40 corr.push_back((TH1F*)
m_f->Get((prefix[j]+etastr[i]).c_str()));
41 }
43 }
44}
std::vector< std::vector< TH1F * > > m_histos
std::vector< float > m_etas
◆ ~semilCorr()
| semilCorr::~semilCorr |
( |
| ) |
|
◆ getBjetCorrToIncl()
| float semilCorr::getBjetCorrToIncl |
( |
const TLorentzVector & | jet, |
|
|
const TLorentzVector & | mu ) |
Definition at line 63 of file semilCorr.cxx.
65{
67}
float getSemilCorrToIncl(const TLorentzVector &jet, const TLorentzVector &mu, const std::vector< TH1F * > &histos)
◆ getHistoIndices()
Definition at line 79 of file semilCorr.cxx.
80{
90 }else
93}
std::pair< long int, long int > indices
◆ getResponse()
| float semilCorr::getResponse |
( |
float | pt, |
|
|
float | eta, |
|
|
const std::vector< TH1F * > & | h ) |
|
private |
Definition at line 108 of file semilCorr.cxx.
109{
111 int histbin = -1;
112 for(
unsigned int i = 0;
i<
m_etas.size()-1;
i++){
115 }
116
117 if(histbin == -1) histbin =
h.size()-1;
118 float min =
h[histbin]->GetBinCenter(1);
119 float max =
h[histbin]->GetBinCenter(h[histbin]->GetNbinsX());
122 if(pt<
min) usePt =
min+0.001;
123 float result =
h[histbin]->Interpolate(usePt);
125}
Scalar eta() const
pseudorapidity method
◆ getSemilCorrToIncl() [1/2]
| float semilCorr::getSemilCorrToIncl |
( |
const TLorentzVector & | jet, |
|
|
const TLorentzVector & | mu ) |
◆ getSemilCorrToIncl() [2/2]
| float semilCorr::getSemilCorrToIncl |
( |
const TLorentzVector & | jet, |
|
|
const TLorentzVector & | mu, |
|
|
const std::vector< TH1F * > & | histos ) |
|
private |
Definition at line 69 of file semilCorr.cxx.
72{
73 TLorentzVector jetmu = jet+
mu;
74
75 float corr =
getResponse(jetmu.Pt(), jetmu.Eta(), histos);
76 return corr;
77}
float getResponse(float pt, float eta, const std::vector< TH1F * > &h)
◆ getSemilCorrToInclSyst()
Definition at line 95 of file semilCorr.cxx.
98{
99
101 float systr = 0;
102 for(
unsigned int i = 0;
i<indices1.size();
i++){
104 }
105 return sqrt(systr);
106}
constexpr int pow(int base, int exp) noexcept
std::vector< int > getHistoIndices(semilCorr::Systematics syst)
◆ m_Debug
◆ m_etas
| std::vector<float> semilCorr::m_etas |
|
private |
◆ m_f
◆ m_histos
| std::vector<std::vector<TH1F*> > semilCorr::m_histos |
|
private |
The documentation for this class was generated from the following files: