HepMC_helper::SelectType Class Reference

#include <SelectType.h>

Inheritance diagram for HepMC_helper::SelectType:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SelectType (std::vector< int > requiredTypes)
 SelectType (int requiredType)
 SelectType (const SelectType &src)
 ~SelectType ()
IMCselectorcreate () const
bool operator() (const Particle *const p) const
bool operator() (const Particle &p) const
bool operator() (const Particle &p)

Private Attributes

std::vector< int > m_requiredTypes

Detailed Description

Definition at line 23 of file SelectType.h.


Constructor & Destructor Documentation

HepMC_helper::SelectType::SelectType ( std::vector< int >  requiredTypes  ) 

HepMC_helper::SelectType::SelectType ( int  requiredType  ) 

Definition at line 108 of file HepMC_helper.cxx.

00108 {m_requiredTypes.push_back(type);}

HepMC_helper::SelectType::SelectType ( const SelectType src  ) 

Definition at line 109 of file HepMC_helper.cxx.

00109                                              :
00110     IMCselector(),
00111     m_requiredTypes(rhs.m_requiredTypes){}

HepMC_helper::SelectType::~SelectType (  )  [inline]

Definition at line 28 of file SelectType.h.

00028 { }


Member Function Documentation

IMCselector * HepMC_helper::SelectType::create (  )  const [virtual]

Implements HepMC_helper::IMCselector.

Definition at line 125 of file HepMC_helper.cxx.

00125 {return new SelectType(*this);}

bool HepMC_helper::SelectType::operator() ( const Particle *const   p  )  const [virtual]

Implements HepMC_helper::IMCselector.

Definition at line 113 of file HepMC_helper.cxx.

00113                                                               {
00114     vector<int>::const_iterator itype = m_requiredTypes.begin();
00115     for(; itype < m_requiredTypes.end(); ++itype ){ 
00116       if( abs(p->pdg_id()) == (*itype) ){
00117         return true ;
00118       }
00119     }
00120     return false ;
00121   }

bool HepMC_helper::SelectType::operator() ( const Particle p  )  const

Definition at line 122 of file HepMC_helper.cxx.

00122                                                         {
00123     return this->operator()(&p);
00124   } 

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

std::vector<int> HepMC_helper::SelectType::m_requiredTypes [private]

Definition at line 35 of file SelectType.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