|
DAS
3.0
Das Analysis System
|
Guesses the selection from the histogram name in the maps, and applies it by setting the weights to 0 to muons that don't pass the selection.
Note: tuned for Run 2 UL
◆ IDApplier()
IDApplier |
( |
const fs::path & |
filePath, |
|
|
TString |
histname, |
|
|
bool |
correction, |
|
|
bool |
uncertainties |
|
) |
| |
|
inline |
111 ,
abseta(!histname.Contains(
"_eta_pt" ))
112 ,
charge( histname.Contains(
"_charge" ))
113 ,
IPCut ( histname.Contains(
"andIPCut"))
117 auto var = histname +
"_stat";
119 var = histname +
"_syst";
122 histname.ReplaceAll(
"_eta_pt",
"");
123 histname.ReplaceAll(
"_abseta_pt",
"");
124 histname.ReplaceAll(
"_charge",
"");
125 histname.ReplaceAll(
"andIPCut",
"");
127 DEN = histname(TRegexp(
"_DEN_.*"));
128 histname.ReplaceAll(
DEN,
"");
129 DEN.ReplaceAll(
"_DEN_",
"");
133 NUM.ReplaceAll(
"NUM_",
"");
136 cout <<
"Initialisation of " << __func__ <<
" done" << endl;
◆ binIndex()
int binIndex |
( |
const RecMuon & |
muon, |
|
|
const std::unique_ptr< TH1 > & |
hist |
|
) |
| const |
|
inlineoverrideprotected |
150 const float eta =
abseta ? fabsf(muon.p4.Eta()) : muon.p4.Eta();
153 const float maxpt = hist->GetZaxis()->GetXmax() - 1;
154 const float pt = min(muon.p4.Pt(),
maxpt);
155 return hist->FindBin(muon.Q,
eta,
pt);
158 const float maxpt = hist->GetYaxis()->GetXmax() - 1;
159 const float pt = min(muon.p4.Pt(),
maxpt);
160 return hist->FindBin(
eta,
pt);
◆ getMask()
static Selector getMask |
( |
const string & |
s | ) |
|
|
inlinestaticprivate |
Translate table name from Muon POG ROOT file into selector.
104 BOOST_THROW_EXCEPTION( invalid_argument(s +
" is not recognised.") );
◆ passes()
bool passes |
( |
const RecMuon & |
muon | ) |
const |
|
inlineoverrideprotected |
- Todo:
- IPCut? (unless it's already included in IPCut?)
144 || (
num & muon.selectors) ==
num;
◆ abseta
◆ charge
◆ den
◆ DEN
◆ IPCut
◆ name
◆ num
◆ NUM
The documentation for this class was generated from the following file:
TString name
Definition: applyMuonSelection.cc:74
pt
Definition: jmarExample.py:19
@ TkIsoLoose
Definition: applyMuonSelection.cc:52
@ PFIsoVeryTight
Definition: applyMuonSelection.cc:51
GenericSFApplier(const std::filesystem::path &filePath, bool correction, bool uncertainties)
Constructor.
Definition: GenericSFApplier.h:153
const bool charge
Definition: applyMuonSelection.cc:71
void loadNominal(const std::string &histPath)
Loads the histogram with the nominal scale factor. Has no effect when not applying the correction.
Definition: GenericSFApplier.h:259
Selector num
Definition: applyMuonSelection.cc:72
@ PFIsoTight
Definition: applyMuonSelection.cc:50
@ CutBasedIdMedium
Definition: applyMuonSelection.cc:42
void loadBinWiseUnc(const std::string &name, const std::string &histPath, Interpretation intp=UseBinContent)
Loads a systematic with bin-by-bin correlations.
Definition: GenericSFApplier.h:275
TString NUM
Definition: applyMuonSelection.cc:74
static Selector getMask(const string &s)
Translate table name from Muon POG ROOT file into selector.
Definition: applyMuonSelection.cc:80
@ PFIsoLoose
Definition: applyMuonSelection.cc:48
static const double maxpt
Definition: getMNobservables.cc:42
@ CutBasedIdTrkHighPt
Definition: applyMuonSelection.cc:46
@ CutBasedIdTight
Definition: applyMuonSelection.cc:44
@ UseBinError
The histogram errors contain the uncertainty in the scale factors.
Definition: GenericSFApplier.h:115
@ CutBasedIdMediumPrompt
Definition: applyMuonSelection.cc:43
@ PFIsoVeryLoose
Definition: applyMuonSelection.cc:47
@ CutBasedIdLoose
Definition: applyMuonSelection.cc:41
TString DEN
Definition: applyMuonSelection.cc:74
@ SoftCutBasedId
Definition: applyMuonSelection.cc:54
@ CutBasedIdGlobalHighPt
Definition: applyMuonSelection.cc:45
@ TkIsoTight
Definition: applyMuonSelection.cc:53
@ None
Definition: applyMuonSelection.cc:40
const bool abseta
Definition: applyMuonSelection.cc:71
void loadGlobalUnc(const std::string &name, const std::string &histPath, Interpretation intp=UseBinContent)
Loads a fully correlated systematic.
Definition: GenericSFApplier.h:295
const bool IPCut
Definition: applyMuonSelection.cc:71
@ PFIsoMedium
Definition: applyMuonSelection.cc:49
eta
DeepAK8/ParticleNet tagging.
Definition: jmarExample.py:19
Selector den
Definition: applyMuonSelection.cc:72