#include <DiTauSelectionCuts.h>
Definition at line 68 of file DiTauSelectionCuts.h.
◆ DiTauSelectionCutPt()
◆ accept()
Implements TauAnalysisTools::DiTauSelectionCut.
Definition at line 105 of file DiTauSelectionCuts.cxx.
107{
108
109 double pt = xDiTau.pt() / 1000.;
110
111 if (
m_tDTST->m_vPtRegion.size() == 1)
112 {
113 if ( pt >=
m_tDTST->m_vPtRegion.at(0) )
114 {
115 acceptData.setCutResult( "Pt", true );
116 return true;
117 }
118 }
119 unsigned int iNumPtRegion =
m_tDTST->m_vPtRegion.size()/2;
120 for( unsigned int iPtRegion = 0; iPtRegion < iNumPtRegion; iPtRegion++ )
121 {
122 if ( pt >=
m_tDTST->m_vPtRegion.at(iPtRegion*2) and pt <= m_tDTST->m_vPtRegion.at(iPtRegion*2+1))
123 {
124 acceptData.setCutResult( "Pt", true );
125 return true;
126 }
127 }
128 m_tDTST->msg() << MSG::VERBOSE <<
"DiTau failed pt requirement, ditau pt [GeV]: " <<
pt <<
endmsg;
129 return false;
130}
◆ CreateControlPlot()
| std::unique_ptr< TH1F > DiTauSelectionCut::CreateControlPlot |
( |
const char * | sName, |
|
|
const char * | sTitle, |
|
|
int | iBins, |
|
|
double | dXLow, |
|
|
double | dXUp ) |
|
inherited |
Definition at line 31 of file DiTauSelectionCuts.cxx.
32{
33 if (
m_tDTST->m_bCreateControlPlots)
34 {
35 auto hHist = std::make_unique<TH1F>(sName, sTitle, iBins, dXLow, dXUp);
36 hHist->SetDirectory(0);
37 return hHist;
38 }
39
40 return nullptr;
41}
◆ declareProperty()
| void DiTauSelectionCut::declareProperty |
( |
const std::string & | name, |
|
|
std::string & | loc ) |
|
protectedinherited |
◆ fillHistogram()
| void DiTauSelectionCutPt::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 73 of file DiTauSelectionCuts.cxx.
74{
75 std::map<std::string, std::string&>::iterator
it =
m_mProperties.find(name);
77 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
78
80}
◆ setAcceptInfo()
◆ setProperty()
| void DiTauSelectionCut::setProperty |
( |
const std::string & | name, |
|
|
const std::string & | value ) |
|
inherited |
Definition at line 57 of file DiTauSelectionCuts.cxx.
58{
59 std::map<std::string, std::string&>::iterator
it =
m_mProperties.find(name);
61 throw std::runtime_error (("Undeclared property: " + name + "\n").c_str());
63}
◆ writeControlHistograms()
| void DiTauSelectionCut::writeControlHistograms |
( |
| ) |
|
|
inherited |
◆ m_hHistCut
| std::unique_ptr<TH1F> TauAnalysisTools::DiTauSelectionCut::m_hHistCut |
|
protectedinherited |
◆ m_hHistCutPre
| std::unique_ptr<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: