ATLAS Offline Software
Loading...
Searching...
No Matches
TauAnalysisTools::TauSelectionCut Class Referenceabstract

#include <TauSelectionCuts.h>

Inherited by TauAnalysisTools::TauSelectionCutAbsCharge, TauAnalysisTools::TauSelectionCutAbsEta, TauAnalysisTools::TauSelectionCutEleIDWP, TauAnalysisTools::TauSelectionCutGNTauScoreSigTrans, TauAnalysisTools::TauSelectionCutJetIDWP, TauAnalysisTools::TauSelectionCutMuonOLR, TauAnalysisTools::TauSelectionCutNTracks, TauAnalysisTools::TauSelectionCutPt, TauAnalysisTools::TauSelectionCutRNNEleScoreSigTrans, and TauAnalysisTools::TauSelectionCutRNNJetScoreSigTrans.

Collaboration diagram for TauAnalysisTools::TauSelectionCut:

Public Member Functions

 TauSelectionCut (const std::string &sName, TauAnalysisTools::TauSelectionTool *tTST)
virtual ~TauSelectionCut ()
void writeControlHistograms ()
void fillHistogramCutPre (const xAOD::TauJet &xTau)
void fillHistogramCut (const xAOD::TauJet &xTau)
virtual void setAcceptInfo (asg::AcceptInfo &info) const =0
virtual bool accept (const xAOD::TauJet &xTau, asg::AcceptData &accept)=0
std::unique_ptr< TH1F > CreateControlPlot (const char *sName, const char *sTitle, int iBins, double dXLow, double dXUp)
const std::string & getName ()
void setProperty (const std::string &name, const std::string &value)

Protected Member Functions

void declareProperty (const std::string &name, std::string &loc)
std::string getProperty (const std::string &name)

Protected Attributes

std::string m_sName
std::unique_ptr< TH1F > m_hHistCutPre
std::unique_ptr< TH1F > m_hHistCut
TauSelectionToolm_tTST
std::map< std::string, std::string & > m_mProperties

Private Member Functions

virtual void fillHistogram (const xAOD::TauJet &xTau, TH1F &hHist) const =0

Detailed Description

Definition at line 33 of file TauSelectionCuts.h.

Constructor & Destructor Documentation

◆ TauSelectionCut()

TauSelectionCut::TauSelectionCut ( const std::string & sName,
TauAnalysisTools::TauSelectionTool * tTST )

Definition at line 21 of file TauSelectionCuts.cxx.

22 : m_sName(sName)
23 , m_tTST(tTST)
24{
25}

◆ ~TauSelectionCut()

TauSelectionCut::~TauSelectionCut ( )
virtual

Definition at line 28 of file TauSelectionCuts.cxx.

29{
30}

Member Function Documentation

◆ accept()

◆ CreateControlPlot()

std::unique_ptr< TH1F > TauSelectionCut::CreateControlPlot ( const char * sName,
const char * sTitle,
int iBins,
double dXLow,
double dXUp )

Definition at line 40 of file TauSelectionCuts.cxx.

41{
42 if (m_tTST->m_bCreateControlPlots)
43 {
44 auto hHist = std::make_unique<TH1F>(sName, sTitle, iBins, dXLow, dXUp);
45 hHist->SetDirectory(0);
46 return hHist;
47 }
48
49 return nullptr;
50}

◆ declareProperty()

void TauSelectionCut::declareProperty ( const std::string & name,
std::string & loc )
protected

Definition at line 75 of file TauSelectionCuts.cxx.

76{
77 m_mProperties.try_emplace(name, loc);
78}
std::map< std::string, std::string & > m_mProperties

◆ fillHistogram()

◆ fillHistogramCut()

void TauSelectionCut::fillHistogramCut ( const xAOD::TauJet & xTau)

Definition at line 59 of file TauSelectionCuts.cxx.

60{
62}
virtual void fillHistogram(const xAOD::TauJet &xTau, TH1F &hHist) const =0
std::unique_ptr< TH1F > m_hHistCut

◆ fillHistogramCutPre()

void TauSelectionCut::fillHistogramCutPre ( const xAOD::TauJet & xTau)

Definition at line 53 of file TauSelectionCuts.cxx.

54{
56}
std::unique_ptr< TH1F > m_hHistCutPre

◆ getName()

const std::string & TauAnalysisTools::TauSelectionCut::getName ( )
inline

Definition at line 48 of file TauSelectionCuts.h.

49 {
50 return m_sName;
51 };

◆ getProperty()

std::string TauSelectionCut::getProperty ( const std::string & name)
protected

Definition at line 81 of file TauSelectionCuts.cxx.

82{
83 std::map<std::string, std::string&>::iterator it = m_mProperties.find(name);
84 if(it == m_mProperties.end() )
85 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
86
87 return it->second;
88}

◆ setAcceptInfo()

◆ setProperty()

void TauSelectionCut::setProperty ( const std::string & name,
const std::string & value )

Definition at line 66 of file TauSelectionCuts.cxx.

67{
68 std::map<std::string, std::string&>::iterator it = m_mProperties.find(name);
69 if(it == m_mProperties.end() )
70 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
71 it->second = value;
72}

◆ writeControlHistograms()

void TauSelectionCut::writeControlHistograms ( )

Definition at line 33 of file TauSelectionCuts.cxx.

34{
35 m_hHistCutPre->Write();
36 m_hHistCut->Write();
37}

Member Data Documentation

◆ m_hHistCut

std::unique_ptr<TH1F> TauAnalysisTools::TauSelectionCut::m_hHistCut
protected

Definition at line 59 of file TauSelectionCuts.h.

◆ m_hHistCutPre

std::unique_ptr<TH1F> TauAnalysisTools::TauSelectionCut::m_hHistCutPre
protected

Definition at line 58 of file TauSelectionCuts.h.

◆ m_mProperties

std::map<std::string, std::string&> TauAnalysisTools::TauSelectionCut::m_mProperties
protected

Definition at line 64 of file TauSelectionCuts.h.

◆ m_sName

std::string TauAnalysisTools::TauSelectionCut::m_sName
protected

Definition at line 56 of file TauSelectionCuts.h.

◆ m_tTST

TauSelectionTool* TauAnalysisTools::TauSelectionCut::m_tTST
protected

Definition at line 61 of file TauSelectionCuts.h.


The documentation for this class was generated from the following files: