16 #include "GaudiKernel/IToolSvc.h"
27 const std::string&
name,
28 const IInterface*
parent) :
30 m_truthTool(
"TauAnalysisTools::TauTruthMatchingTool/TauTruthMatchingTool", this),
31 m_primTauSel(
"TauAnalysisTools::TauSelectionTool/PrimitiveTauSelectionTool", this),
32 m_nomiTauSel(
"TauAnalysisTools::TauSelectionTool/NominalTauSelectionTool", this)
55 return StatusCode::SUCCESS;
72 return StatusCode::SUCCESS;
98 for (
auto tau : *taus) {
100 if ( !
static_cast<bool>(
m_primTauSel->accept(*tau)) )
continue;
101 bool nominal =
static_cast<bool>(
m_nomiTauSel->accept(*tau));
114 int recProng = tau->nTracks();
115 if ( recProng == 1 ) {
123 else if ( recProng == 3 ) {
140 if ( (
bool)IsTruthMatchedAcc(*tau) ) {
142 if ( trueTau->isTau() ) {
144 if ( (
bool)IsHadronicTauAcc(*trueTau) ) {
157 if ( recProng == 1 ) {
165 else if ( recProng == 3 ) {
180 }
else if(trueTau->isElectron()) {
184 }
else if( std::abs(trueTau->pdgId()) < 7 || trueTau->pdgId() == 21){
197 if ( recProng == 1 ) {
205 if ( recProng == 3 ) {
228 if ( recProng == 1 ) {
236 if ( recProng == 3 ) {
248 return StatusCode::SUCCESS;
254 return StatusCode::SUCCESS;