#include <DiTauSelectionCuts.h>
Definition at line 90 of file DiTauSelectionCuts.h.
◆ DiTauSelectionCutNSubjets()
◆ accept()
Implements TauAnalysisTools::DiTauSelectionCut.
Definition at line 198 of file DiTauSelectionCuts.cxx.
200{
201 float nsubjets = xDiTau.nSubjets();
202
203 if (
m_tDTST->m_vNSubjetsRegion.size() == 1)
204 {
205 if ( nsubjets >=
m_tDTST->m_vNSubjetsRegion.at(0) )
206 {
207 acceptData.setCutResult( "NSubjets", true );
208 return true;
209 }
210 }
211 unsigned int iNumNSubjetsRegion =
m_tDTST->m_vNSubjetsRegion.size()/2;
212 for( unsigned int iNSubjetsRegion = 0; iNSubjetsRegion < iNumNSubjetsRegion; iNSubjetsRegion++ )
213 {
214 if ( nsubjets >=
m_tDTST->m_vNSubjetsRegion.at(iNSubjetsRegion*2) and nsubjets <= m_tDTST->m_vNSubjetsRegion.at(iNSubjetsRegion*2+1))
215 {
216 acceptData.setCutResult( "NSubjets", true );
217 return true;
218 }
219 }
220 m_tDTST->msg() << MSG::VERBOSE <<
"DiTau failed NSubjets requirement, ditau number of subjets: " << nsubjets <<
endmsg;
221 return false;
222}
◆ 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 DiTauSelectionCutNSubjets::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 DiTauSelectionCutNSubjets::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: