#include <semilCorr.h>
|
| std::vector< std::vector< std::unique_ptr< TH1F > > > | m_histos |
| std::vector< float > | m_etas |
| std::unique_ptr< TFile > | m_f |
| bool | m_Debug |
Definition at line 16 of file semilCorr.h.
◆ Systematics
| Enumerator |
|---|
| TAGGINGWEIGHT | |
| FRAGMENTATION | |
| DECAY | |
| MSRESO | |
| IDRESO | |
| DECAYREW | |
| MUONSPECTRUM | |
| ALL | |
Definition at line 19 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.reset (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<std::unique_ptr<TH1F> > corr;
39 for(
unsigned int i = 0;
i<etastr.size();
i++){
40 corr.emplace_back((TH1F*)
m_f->Get((prefix[j]+etastr[i]).c_str()));
41 }
43 }
44}
std::unique_ptr< TFile > m_f
std::vector< float > m_etas
std::vector< std::vector< std::unique_ptr< TH1F > > > m_histos
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
◆ ~semilCorr()
| semilCorr::~semilCorr |
( |
| ) |
|
◆ getBjetCorrToIncl()
| float semilCorr::getBjetCorrToIncl |
( |
const TLorentzVector & | jet, |
|
|
const TLorentzVector & | mu ) |
Definition at line 56 of file semilCorr.cxx.
58{
60}
float getSemilCorrToIncl(const TLorentzVector &jet, const TLorentzVector &mu, const std::vector< std::unique_ptr< TH1F > > &histos)
◆ getHistoIndices()
Definition at line 72 of file semilCorr.cxx.
73{
83 }else
86}
std::pair< long int, long int > indices
◆ getResponse()
| float semilCorr::getResponse |
( |
float | pt, |
|
|
float | eta, |
|
|
const std::vector< std::unique_ptr< TH1F > > & | h ) |
|
private |
Definition at line 101 of file semilCorr.cxx.
102{
104 int histbin = -1;
105 for(
unsigned int i = 0;
i<
m_etas.size()-1;
i++){
108 }
109
110 if(histbin == -1) histbin =
h.size()-1;
111 float min =
h[histbin]->GetBinCenter(1);
112 float max =
h[histbin]->GetBinCenter(h[histbin]->GetNbinsX());
115 if(pt<
min) usePt =
min+0.001;
116 float result =
h[histbin]->Interpolate(usePt);
118}
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< std::unique_ptr< TH1F > > & | histos ) |
|
private |
Definition at line 62 of file semilCorr.cxx.
65{
66 TLorentzVector jetmu = jet+
mu;
67
68 float corr =
getResponse(jetmu.Pt(), jetmu.Eta(), histos);
69 return corr;
70}
float getResponse(float pt, float eta, const std::vector< std::unique_ptr< TH1F > > &h)
◆ getSemilCorrToInclSyst()
Definition at line 88 of file semilCorr.cxx.
91{
92
94 float systr = 0;
95 for(
unsigned int i = 0;
i<indices1.size();
i++){
97 }
98 return sqrt(systr);
99}
std::vector< int > getHistoIndices(semilCorr::Systematics syst)
◆ m_Debug
◆ m_etas
| std::vector<float> semilCorr::m_etas |
|
private |
◆ m_f
| std::unique_ptr<TFile> semilCorr::m_f |
|
private |
◆ m_histos
| std::vector<std::vector<std::unique_ptr<TH1F> > > semilCorr::m_histos |
|
private |
The documentation for this class was generated from the following files: