#include <DiTauSelectionCuts.h>
Definition at line 102 of file DiTauSelectionCuts.h.
◆ DiTauSelectionCutAbsCharge()
◆ accept()
Implements TauAnalysisTools::DiTauSelectionCut.
Definition at line 247 of file DiTauSelectionCuts.cxx.
249{
251 static const SG::ConstAccessor<float> acc_charge ("charge");
252 if ( acc_charge.isAvailable(xTau) ) {
254 } else {
255 for (
const auto& xTrack : xTau.
trackLinks()) {
256 if (!xTrack.isValid())
257 continue;
258
260 for (
int i = 0;
i < 2; ++
i) {
261 TLorentzVector tlvSubjet = TLorentzVector();
264 double dR = tlvSubjet.DeltaR((*xTrack)->p4());
265 if (dR < 0.1) {
267 break;
268 }
269 }
270 }
271 }
272 }
273
274
275 for(
unsigned int iCharge = 0; iCharge <
m_tDTST->m_vAbsCharges.size(); iCharge++ )
276 {
278 {
279 acceptData.setCutResult( "AbsCharge", true );
280 return true;
281 }
282 }
284 return false;
285
286}
float subjetEta(unsigned int numSubjet) const
float subjetE(unsigned int numSubjet) const
float subjetPt(unsigned int numSubjet) const
float subjetPhi(unsigned int numSubjet) const
const TrackParticleLinks_t & trackLinks() const
◆ 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 DiTauSelectionCutAbsCharge::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 DiTauSelectionCutAbsCharge::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_bDiTauCharge
| float TauAnalysisTools::DiTauSelectionCutAbsCharge::m_bDiTauCharge |
|
private |
◆ 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: