CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
TrackChargeSelector Struct Reference

#include <TrackChargeSelector.h>

Public Member Functions

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

Private Attributes

int charge_
 

Detailed Description

Definition at line 9 of file TrackChargeSelector.h.

Constructor & Destructor Documentation

TrackChargeSelector::TrackChargeSelector ( int  charge)
inline

Member Function Documentation

template<typename T >
bool TrackChargeSelector::operator() ( const T t) const
inline

Definition at line 12 of file TrackChargeSelector.h.

References charge_.

12  {
13  return ( t.charge() == charge_ );
14  }

Member Data Documentation

int TrackChargeSelector::charge_
private

Definition at line 17 of file TrackChargeSelector.h.

Referenced by operator()().