#include <TauSelectionCuts.h>
Definition at line 163 of file TauSelectionCuts.h.
◆ TauSelectionCutEleIDWP()
◆ accept()
Implements TauAnalysisTools::TauSelectionCut.
Definition at line 543 of file TauSelectionCuts.cxx.
545{
546
547 bool bPass = false;
548 switch (
m_tTST->m_iEleIDWP)
549 {
551 bPass = true;
552 break;
554 bPass = true;
555 break;
557 if (
m_tTST->m_iEleIDVersion!=0){
558 SG::ConstAccessor<char> accLoose (
"EleRNNLoose_v"+std::to_string(
m_tTST->m_iEleIDVersion));
559 if (accLoose(xTau) == 1)bPass = true;
560 }
562 break;
564 if (
m_tTST->m_iEleIDVersion!=0){
565 SG::ConstAccessor<char> accMedium (
"EleRNNMedium_v"+std::to_string(
m_tTST->m_iEleIDVersion));
566 if (accMedium(xTau) == 1)bPass = true;
567 }
569 break;
571 if (
m_tTST->m_iEleIDVersion!=0){
572 SG::ConstAccessor<char> accTight (
"EleRNNTight_v"+std::to_string(
m_tTST->m_iEleIDVersion));
573 if (accTight(xTau) == 1)bPass = true;
574 }
576 break;
577 default:
578 m_tTST->msg() << MSG::WARNING <<
"The electron ID working point with the enum " <<
m_tTST->m_iEleIDWP <<
" is not available" <<
endmsg;
579 break;
580 }
581
582
584 bPass = true;
585 }
586
587 if (bPass)
588 {
589 acceptData.setCutResult( "EleIDWP", true );
590 return true;
591 }
592 m_tTST->msg() << MSG::VERBOSE <<
"Tau failed EleID WP requirement" <<
endmsg;
593 return false;
594}
bool isTau(TauJetParameters::IsTauFlag flag) const
Get Flag for tau acceptance based on predefined arbitrary criteria.
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
◆ CreateControlPlot()
| std::unique_ptr< TH1F > TauSelectionCut::CreateControlPlot |
( |
const char * | sName, |
|
|
const char * | sTitle, |
|
|
int | iBins, |
|
|
double | dXLow, |
|
|
double | dXUp ) |
|
inherited |
Definition at line 39 of file TauSelectionCuts.cxx.
40{
41 if (
m_tTST->m_bCreateControlPlots)
42 {
43 auto hHist = std::make_unique<TH1F>(sName, sTitle, iBins, dXLow, dXUp);
44 hHist->SetDirectory(0);
45 return hHist;
46 }
47
48 return nullptr;
49}
◆ declareProperty()
| void TauSelectionCut::declareProperty |
( |
const std::string & | name, |
|
|
std::string & | loc ) |
|
protectedinherited |
◆ fillHistogram()
| void TauSelectionCutEleIDWP::fillHistogram |
( |
const xAOD::TauJet & | xTau, |
|
|
TH1F & | hHist ) const |
|
overrideprivatevirtual |
Implements TauAnalysisTools::TauSelectionCut.
Definition at line 519 of file TauSelectionCuts.cxx.
520{
521 if (
m_tTST->m_iEleIDVersion!=0){
522 SG::ConstAccessor<char> accLoose (
"EleRNNLoose_v"+std::to_string(
m_tTST->m_iEleIDVersion));
523 SG::ConstAccessor<char> accMedium (
"EleRNNMedium_v"+std::to_string(
m_tTST->m_iEleIDVersion));
524 SG::ConstAccessor<char> accTight (
"EleRNNTight_v"+std::to_string(
m_tTST->m_iEleIDVersion));
525 hHist.Fill((accLoose(xTau) == 1));
526 hHist.Fill((accMedium(xTau) == 1)+2);
527 hHist.Fill((accTight(xTau) == 1)+4);
528 }
529 else{
533 }
534}
◆ fillHistogramCut()
| void TauSelectionCut::fillHistogramCut |
( |
const xAOD::TauJet & | xTau | ) |
|
|
inherited |
◆ fillHistogramCutPre()
| void TauSelectionCut::fillHistogramCutPre |
( |
const xAOD::TauJet & | xTau | ) |
|
|
inherited |
◆ getName()
| const std::string & TauAnalysisTools::TauSelectionCut::getName |
( |
| ) |
|
|
inlineinherited |
◆ getProperty()
| std::string TauSelectionCut::getProperty |
( |
const std::string & | name | ) |
|
|
protectedinherited |
Definition at line 81 of file TauSelectionCuts.cxx.
82{
83 std::map<std::string, std::string&>::iterator
it =
m_mProperties.find(name);
85 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
86
88}
◆ setAcceptInfo()
◆ setProperty()
| void TauSelectionCut::setProperty |
( |
const std::string & | name, |
|
|
const std::string & | value ) |
|
inherited |
Definition at line 65 of file TauSelectionCuts.cxx.
66{
67 std::map<std::string, std::string&>::iterator
it =
m_mProperties.find(name);
69 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
71}
◆ writeControlHistograms()
| void TauSelectionCut::writeControlHistograms |
( |
| ) |
|
|
inherited |
◆ m_hHistCut
| std::unique_ptr<TH1F> TauAnalysisTools::TauSelectionCut::m_hHistCut |
|
protectedinherited |
◆ m_hHistCutPre
| std::unique_ptr<TH1F> TauAnalysisTools::TauSelectionCut::m_hHistCutPre |
|
protectedinherited |
◆ m_mProperties
| std::map<std::string, std::string&> TauAnalysisTools::TauSelectionCut::m_mProperties |
|
protectedinherited |
◆ m_sName
| std::string TauAnalysisTools::TauSelectionCut::m_sName |
|
protectedinherited |
◆ m_tTST
The documentation for this class was generated from the following files: