#include <SelectTauTag.h>
Inheritance diagram for HepMC_helper::SelectTauTag:
Public Member Functions | |
SelectTauTag (double pt, double eta) | |
~SelectTauTag () | |
bool | operator() (const Particle *const p) const |
bool | operator() (const Particle &p) const |
IMCselector * | create () const |
bool | operator() (const Particle &p) |
Private Attributes | |
SelectJetTag | m_jetTagSelector |
Definition at line 15 of file SelectTauTag.h.
HepMC_helper::SelectTauTag::SelectTauTag | ( | double | pt, | |
double | eta | |||
) |
Definition at line 338 of file HepMC_helper.cxx.
00338 : 00339 m_jetTagSelector(ParticleCodes::TAU, pt, eta){ 00340 } bool SelectTauTag::operator() ( const Particle* const p ) const{
HepMC_helper::SelectTauTag::~SelectTauTag | ( | ) | [inline] |
bool HepMC_helper::SelectTauTag::operator() | ( | const Particle *const | p | ) | const [virtual] |
Implements HepMC_helper::IMCselector.
Definition at line 341 of file HepMC_helper.cxx.
00341 { 00342 if(p->end_vertex()){ 00343 00344 HepMC::GenVertex::particle_iterator firstChild = 00345 p->end_vertex()->particles_begin(HepMC::children); 00346 00347 HepMC::GenVertex::particle_iterator endChild = 00348 p->end_vertex()->particles_end(HepMC::children); 00349 00350 HepMC::GenVertex::particle_iterator thisChild = firstChild; 00351 00352 // Reject if the Tau does not decay hadronically 00353 for(; thisChild!=endChild; ++thisChild){ 00354 if(abs((*thisChild)->pdg_id()) == 11 || 00355 abs((*thisChild)->pdg_id()) == 13 || 00356 abs((*thisChild)->pdg_id()) == 15 ) return false; 00357 } 00358 } 00359 return m_jetTagSelector(p); 00360 }
bool HepMC_helper::SelectTauTag::operator() | ( | const Particle & | p | ) | const |
IMCselector * HepMC_helper::SelectTauTag::create | ( | ) | const [virtual] |
Implements HepMC_helper::IMCselector.
Definition at line 362 of file HepMC_helper.cxx.
00362 {return new SelectTauTag(*this);}
bool HepMC_helper::IMCselector::operator() | ( | const Particle & | p | ) | [inline, inherited] |
Definition at line 26 of file SelectTauTag.h.