HepMC_helper::SelectTauTag Class Reference

#include <SelectTauTag.h>

Inheritance diagram for HepMC_helper::SelectTauTag:

Inheritance graph
[legend]
Collaboration diagram for HepMC_helper::SelectTauTag:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SelectTauTag (double pt, double eta)
 ~SelectTauTag ()
bool operator() (const Particle *const p) const
bool operator() (const Particle &p) const
IMCselectorcreate () const
bool operator() (const Particle &p)

Private Attributes

SelectJetTag m_jetTagSelector

Detailed Description

Definition at line 15 of file SelectTauTag.h.


Constructor & Destructor Documentation

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]

Definition at line 20 of file SelectTauTag.h.

00020 {};


Member Function Documentation

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

Definition at line 364 of file HepMC_helper.cxx.

00364                                                           {
00365     return this->operator()(&p);
00366   } 

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 27 of file IMCselector.h.

00027 {return this->operator()(&p);} 


Member Data Documentation

SelectJetTag HepMC_helper::SelectTauTag::m_jetTagSelector [private]

Definition at line 26 of file SelectTauTag.h.


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 13:20:59 2007 for AtlfastUtils by  doxygen 1.5.1