CMS 3D CMS Logo

ChargeSelector Struct Reference

#include <PhysicsTools/Utilities/interface/ChargeSelector.h>

List of all members.

Public Member Functions

 ChargeSelector (int charge)
template<typename T>
bool operator() (const T &t) const

Private Attributes

int charge_


Detailed Description

Definition at line 10 of file ChargeSelector.h.


Constructor & Destructor Documentation

ChargeSelector::ChargeSelector ( int  charge  )  [inline]

Definition at line 11 of file ChargeSelector.h.

00011 : charge_( charge ) { }


Member Function Documentation

template<typename T>
bool ChargeSelector::operator() ( const T &  t  )  const [inline]

Definition at line 13 of file ChargeSelector.h.

References charge_.

00013                                        { 
00014     return ( t.charge() == charge_ ); 
00015   }


Member Data Documentation

int ChargeSelector::charge_ [private]

Definition at line 18 of file ChargeSelector.h.

Referenced by operator()().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:16:16 2009 for CMSSW by  doxygen 1.5.4