#include <TauSelectionCuts.h>
Definition at line 151 of file TauSelectionCuts.h.
◆ TauSelectionCutRNNEleScoreSigTrans()
| TauSelectionCutRNNEleScoreSigTrans::TauSelectionCutRNNEleScoreSigTrans |
( |
TauSelectionTool * | tTST | ) |
|
◆ accept()
Implements TauAnalysisTools::TauSelectionCut.
Definition at line 471 of file TauSelectionCuts.cxx.
473{
474 SG::ConstAccessor<float>
acc (
"RNNEleScoreSigTrans_v"+std::to_string(
m_tTST->m_iEleIDVersion));
475 float fEleRNNScoreSigTrans = 0.;
476 if(
m_tTST->m_iEleIDVersion!=0){
477 fEleRNNScoreSigTrans =
acc(xTau);
478 }else{
480 }
481 unsigned int iNumEleRNNSigTransRegion =
m_tTST->m_vEleRNNSigTransRegion.size()/2;
482 for( unsigned int iEleRNNSigTransRegion = 0; iEleRNNSigTransRegion < iNumEleRNNSigTransRegion; iEleRNNSigTransRegion++ )
483 {
484 if ( fEleRNNScoreSigTrans >=
m_tTST->m_vEleRNNSigTransRegion.at(iEleRNNSigTransRegion*2) and fEleRNNScoreSigTrans <= m_tTST->m_vEleRNNSigTransRegion.at(iEleRNNSigTransRegion*2+1))
485 {
486 acceptData.setCutResult("EleRNNScoreSigTrans", true );
487 return true;
488 }
489 }
490 m_tTST->msg() << MSG::VERBOSE <<
"Tau failed EleRNNScoreSigTrans requirement, tau EleRNNScoreSigTrans: " << fEleRNNScoreSigTrans <<
endmsg;
491 return false;
492}
double discriminant(TauJetParameters::TauID discID) const
Get value of discriminant.
@ RNNEleScoreSigTrans
RNN score which is signal transformed/flattened.
◆ 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 TauSelectionCutRNNEleScoreSigTrans::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 TauSelectionCutRNNEleScoreSigTrans::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: