ATLAS Offline Software
semilCorr.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SEMILEPTONICCORR_SEMILCORR_H
6 #define SEMILEPTONICCORR_SEMILCORR_H
7 
8 #include "TH2F.h"
9 #include "TFile.h"
10 #include <iostream>
11 #include "TLorentzVector.h"
12 #include <vector>
13 
14 
15 class semilCorr{
16 
17 public:
21  DECAY = 3,
22  MSRESO = 4,
23  IDRESO = 5,
24  DECAYREW = 6,
26  ALL = 8
27  };
28 
29 private:
30  std::vector<std::vector<TH1F*> > m_histos;
31  std::vector<float> m_etas;
32 
33  TFile* m_f;
34 
35  bool m_Debug;
36 
37  float getResponse(float pt, float eta, const std::vector<TH1F*>& h);
38  float getSemilCorrToIncl(const TLorentzVector& jet, const TLorentzVector& mu,
39  const std::vector<TH1F*>& histos);
40  std::vector<int> getHistoIndices(semilCorr::Systematics syst);
41 
42 
43 public:
44  semilCorr(const TString& fIn, const std::string& suffix = "", bool DebugIn = false);
45  ~semilCorr();
46 
47  float getSemilCorrToIncl(const TLorentzVector& jet, const TLorentzVector& mu);
48  float getBjetCorrToIncl(const TLorentzVector& jet, const TLorentzVector& mu);
49 
50  float getSemilCorrToInclSyst(const TLorentzVector& jet, const TLorentzVector& mu,
52 
53 };
54 
55 #endif
semilCorr::getSemilCorrToIncl
float getSemilCorrToIncl(const TLorentzVector &jet, const TLorentzVector &mu, const std::vector< TH1F * > &histos)
Definition: semilCorr.cxx:69
semilCorr
Definition: semilCorr.h:15
semilCorr::getBjetCorrToIncl
float getBjetCorrToIncl(const TLorentzVector &jet, const TLorentzVector &mu)
Definition: semilCorr.cxx:63
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
semilCorr::m_etas
std::vector< float > m_etas
Definition: semilCorr.h:31
test_pyathena.pt
pt
Definition: test_pyathena.py:11
semilCorr::~semilCorr
~semilCorr()
Definition: semilCorr.cxx:47
semilCorr::TAGGINGWEIGHT
@ TAGGINGWEIGHT
Definition: semilCorr.h:19
semilCorr::ALL
@ ALL
Definition: semilCorr.h:26
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
semilCorr::getSemilCorrToInclSyst
float getSemilCorrToInclSyst(const TLorentzVector &jet, const TLorentzVector &mu, semilCorr::Systematics syst=semilCorr::ALL)
Definition: semilCorr.cxx:95
semilCorr::m_f
TFile * m_f
Definition: semilCorr.h:33
semilCorr::Systematics
Systematics
Definition: semilCorr.h:18
semilCorr::semilCorr
semilCorr(const TString &fIn, const std::string &suffix="", bool DebugIn=false)
Definition: semilCorr.cxx:9
semilCorr::getResponse
float getResponse(float pt, float eta, const std::vector< TH1F * > &h)
Definition: semilCorr.cxx:108
semilCorr::IDRESO
@ IDRESO
Definition: semilCorr.h:23
semilCorr::MUONSPECTRUM
@ MUONSPECTRUM
Definition: semilCorr.h:25
semilCorr::FRAGMENTATION
@ FRAGMENTATION
Definition: semilCorr.h:20
h
semilCorr::m_Debug
bool m_Debug
Definition: semilCorr.h:35
semilCorr::getHistoIndices
std::vector< int > getHistoIndices(semilCorr::Systematics syst)
Definition: semilCorr.cxx:79
checkCorrelInHIST.histos
dictionary histos
Definition: checkCorrelInHIST.py:413
semilCorr::MSRESO
@ MSRESO
Definition: semilCorr.h:22
semilCorr::DECAY
@ DECAY
Definition: semilCorr.h:21
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
MooRTT_summarizeCPU.fIn
fIn
Definition: MooRTT_summarizeCPU.py:11
semilCorr::DECAYREW
@ DECAYREW
Definition: semilCorr.h:24
semilCorr::m_histos
std::vector< std::vector< TH1F * > > m_histos
Definition: semilCorr.h:30