Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

IsGenType Class Reference

#include <IsGenType.h>

Inheritance diagram for IsGenType:

GenIMCselector List of all members.

Public Member Functions

GenIMCselectorcreate () const
 IsGenType (const IsGenType &src)
 IsGenType (std::vector< int > ParticleTypeList)
 IsGenType (int ParticleType)
bool operator() (const Particle &p)
virtual bool operator() (const Particle &p) const
virtual bool operator() (const Particle *const p) const

Private Attributes

std::vector< int > m_TypeList

Constructor & Destructor Documentation

IsGenType::IsGenType int  ParticleType  ) 
 

00011                                     {
00012   m_TypeList.push_back(ParticleType); 
00013 }

IsGenType::IsGenType std::vector< int >  ParticleTypeList  ) 
 

00014                                                    {
00015   vector<int>::const_iterator itype = ParticleTypeList.begin();
00016   for(; itype !=ParticleTypeList.end(); ++itype ){ 
00017     m_TypeList.push_back((*itype));
00018   }
00019 }

IsGenType::IsGenType const IsGenType src  ) 
 


Member Function Documentation

GenIMCselector * IsGenType::create  )  const [virtual]
 

Implements GenIMCselector.

00033 {return new IsGenType(*this);}

bool GenIMCselector::operator() const Particle p  )  [inline, inherited]
 

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

bool IsGenType::operator() const Particle p  )  const [virtual]
 

00030                                                      {
00031   return this->operator()(&p);
00032 } 

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

Implements GenIMCselector.

00022                                                           {
00023   vector<int>::const_iterator itype = m_TypeList.begin();
00024   for(; itype != m_TypeList.end(); ++itype ){ 
00025     if( abs(p->pdg_id()) == (*itype) ) return true ;
00026   }
00027   return false;
00028 }


Member Data Documentation

std::vector<int> IsGenType::m_TypeList [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:18:50 2011 for BOSS6.5.5 by  doxygen 1.3.9.1