#include <TauSelectionCuts.h>
Definition at line 127 of file TauSelectionCuts.h.
◆ TauSelectionCutGNTauScoreSigTrans()
| TauSelectionCutGNTauScoreSigTrans::TauSelectionCutGNTauScoreSigTrans |
( |
TauSelectionTool * | tTST | ) |
|
◆ accept()
Implements TauAnalysisTools::TauSelectionCut.
Definition at line 314 of file TauSelectionCuts.cxx.
316{
317
318 static const SG::ConstAccessor<float>
acc (
"GNTauScoreSigTrans_v0prune");
319 float dGNTauScoreSigTrans =
acc(xTau);
320 unsigned int iNumGNTauSigTransRegion =
m_tTST->m_vGNTauSigTransRegion.size()/2;
321 for( unsigned int iGNTauSigTransRegion = 0; iGNTauSigTransRegion < iNumGNTauSigTransRegion; iGNTauSigTransRegion++ )
322 {
323 if ( dGNTauScoreSigTrans >=
m_tTST->m_vGNTauSigTransRegion.at(iGNTauSigTransRegion*2) and dGNTauScoreSigTrans <= m_tTST->m_vGNTauSigTransRegion.at(iGNTauSigTransRegion*2+1))
324 {
325 acceptData.setCutResult( "GNTauScoreSigTrans", true );
326 return true;
327 }
328 }
329 m_tTST->msg() << MSG::VERBOSE <<
"Tau failed GNTauScore requirement, tau GNTauScore: " << dGNTauScoreSigTrans <<
endmsg;
330 return false;
331}
◆ 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 TauSelectionCutGNTauScoreSigTrans::fillHistogram |
( |
const xAOD::TauJet & | xTau, |
|
|
TH1F & | hHist ) const |
|
overrideprivatevirtual |
◆ 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()
| void TauSelectionCutGNTauScoreSigTrans::setAcceptInfo |
( |
asg::AcceptInfo & | info | ) |
const |
|
overridevirtual |
◆ 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: