#include <DiTauSelectionCuts.h>
Definition at line 104 of file DiTauSelectionCuts.h.
◆ DiTauSelectionCutAbsCharge()
◆ accept()
Implements TauAnalysisTools::DiTauSelectionCut.
Definition at line 242 of file DiTauSelectionCuts.cxx.
244{
246 static const SG::ConstAccessor<float> acc_charge ("charge");
247 if ( acc_charge.isAvailable(xTau) ) {
249 } else {
250 for (
const auto& xTrack : xTau.
trackLinks()) {
251 if (!xTrack.isValid())
252 continue;
253
255 for (
int i = 0;
i < 2; ++
i) {
256 TLorentzVector tlvSubjet = TLorentzVector();
259 double dR = tlvSubjet.DeltaR((*xTrack)->p4());
260 if (dR < 0.1) {
262 break;
263 }
264 }
265 }
266 }
267 }
268
269
270 for(
unsigned int iCharge = 0; iCharge <
m_tDTST->m_vAbsCharges.size(); iCharge++ )
271 {
273 {
274 acceptData.setCutResult( "AbsCharge", true );
275 return true;
276 }
277 }
279 return false;
280
281}
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()
| 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 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 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()
| void DiTauSelectionCutAbsCharge::setAcceptInfo |
( |
asg::AcceptInfo & | info | ) |
const |
|
overridevirtual |
◆ 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_bDiTauCharge
| float TauAnalysisTools::DiTauSelectionCutAbsCharge::m_bDiTauCharge |
|
private |
◆ 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: