#include <DiTauSelectionCuts.h>
Definition at line 116 of file DiTauSelectionCuts.h.
◆ DiTauSelectionCutOmniScore()
◆ accept()
Implements TauAnalysisTools::DiTauSelectionCut.
Definition at line 309 of file DiTauSelectionCuts.cxx.
311{
312
313 static const SG::ConstAccessor<float>
acc (
"omni_score");
314 float dOmniScore =
acc(xTau);
315 unsigned int iNumOmniScoreRegion =
m_tDTST->m_vOmniScoreRegion.size()/2;
316 for( unsigned int iOmniScoreRegion = 0; iOmniScoreRegion < iNumOmniScoreRegion; iOmniScoreRegion++ )
317 {
318 if ( dOmniScore >=
m_tDTST->m_vOmniScoreRegion.at(iOmniScoreRegion*2) and dOmniScore <= m_tDTST->m_vOmniScoreRegion.at(iOmniScoreRegion*2+1))
319 {
320 acceptData.setCutResult( "OmniScore", true );
321 return true;
322 }
323 }
324 m_tDTST->msg() << MSG::VERBOSE <<
"Tau failed OmniScore requirement, tau OmniScore: " << dOmniScore <<
endmsg;
325 return false;
326}
◆ CreateControlPlot()
| TH1F * DiTauSelectionCut::CreateControlPlot |
( |
const char * | sName, |
|
|
const char * | sTitle, |
|
|
int | iBins, |
|
|
double | dXLow, |
|
|
double | dXUp ) |
|
inherited |
Definition at line 36 of file DiTauSelectionCuts.cxx.
37{
38 if (
m_tDTST->m_bCreateControlPlots)
39 {
40 TH1F* hHist =
new TH1F(sName, sTitle, iBins, dXLow, dXUp);
41 hHist->SetDirectory(0);
42 return hHist;
43 }
44
45 return nullptr;
46}
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
◆ declareProperty()
| void DiTauSelectionCut::declareProperty |
( |
const std::string & | name, |
|
|
std::string & | loc ) |
|
protectedinherited |
◆ fillHistogram()
| void DiTauSelectionCutOmniScore::fillHistogram |
( |
const xAOD::DiTauJet & | xTau, |
|
|
TH1F & | hHist ) const |
|
overrideprivatevirtual |
◆ fillHistogramCut()
| void DiTauSelectionCut::fillHistogramCut |
( |
const xAOD::DiTauJet & | xTau | ) |
|
|
inherited |
◆ fillHistogramCutPre()
| void DiTauSelectionCut::fillHistogramCutPre |
( |
const xAOD::DiTauJet & | xTau | ) |
|
|
inherited |
◆ getName()
| const std::string & TauAnalysisTools::DiTauSelectionCut::getName |
( |
| ) |
|
|
inlineinherited |
◆ getProperty()
| std::string DiTauSelectionCut::getProperty |
( |
const std::string & | name | ) |
|
|
protectedinherited |
Definition at line 78 of file DiTauSelectionCuts.cxx.
79{
80 std::map<std::string, std::string&>::iterator
it =
m_mProperties.find(name);
82 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
83
85}
◆ setAcceptInfo()
| void DiTauSelectionCutOmniScore::setAcceptInfo |
( |
asg::AcceptInfo & | info | ) |
const |
|
overridevirtual |
◆ setProperty()
| void DiTauSelectionCut::setProperty |
( |
const std::string & | name, |
|
|
const std::string & | value ) |
|
inherited |
Definition at line 62 of file DiTauSelectionCuts.cxx.
63{
64 std::map<std::string, std::string&>::iterator
it =
m_mProperties.find(name);
66 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
68}
◆ writeControlHistograms()
| void DiTauSelectionCut::writeControlHistograms |
( |
| ) |
|
|
inherited |
◆ m_hHistCut
| TH1F* TauAnalysisTools::DiTauSelectionCut::m_hHistCut |
|
protectedinherited |
◆ m_hHistCutPre
| TH1F* TauAnalysisTools::DiTauSelectionCut::m_hHistCutPre |
|
protectedinherited |
◆ m_mProperties
| std::map<std::string, std::string&> TauAnalysisTools::DiTauSelectionCut::m_mProperties |
|
protectedinherited |
◆ m_sName
| std::string TauAnalysisTools::DiTauSelectionCut::m_sName |
|
protectedinherited |
◆ m_tDTST
The documentation for this class was generated from the following files: