IsGenType Class Reference

#include <IsGenType.h>

Inheritance diagram for IsGenType:

GenIMCselector List of all members.

Public Member Functions

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

Private Attributes

std::vector< int > m_TypeList

Detailed Description

Definition at line 18 of file IsGenType.h.


Constructor & Destructor Documentation

IsGenType::IsGenType ( int  ParticleType  ) 

Definition at line 11 of file IsGenType.cxx.

References m_TypeList.

Referenced by create().

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

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

Definition at line 14 of file IsGenType.cxx.

References m_TypeList.

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  ) 

Definition at line 20 of file IsGenType.cxx.

00020 :GenIMCselector(),m_TypeList(rhs.m_TypeList){}


Member Function Documentation

GenIMCselector * IsGenType::create (  )  const [virtual]

Implements GenIMCselector.

Definition at line 33 of file IsGenType.cxx.

References IsGenType().

00033 {return new IsGenType(*this);}

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

Definition at line 26 of file GenIMCselector.h.

References GenIMCselector::operator()().

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

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

Definition at line 30 of file IsGenType.cxx.

References operator()().

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

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

Implements GenIMCselector.

Definition at line 22 of file IsGenType.cxx.

References abs, and m_TypeList.

Referenced by operator()().

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]

Definition at line 28 of file IsGenType.h.

Referenced by IsGenType(), and operator()().


Generated on Tue Nov 29 23:19:47 2016 for BOSS_7.0.2 by  doxygen 1.4.7