CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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::TrackChargeSelector ( int  charge)
inline

Definition at line 10 of file TrackChargeSelector.h.

10 : charge_(charge) {}

Member Function Documentation

◆ operator()()

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

Definition at line 12 of file TrackChargeSelector.h.

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

References charge_, and OrderedSet::t.

Member Data Documentation

◆ charge_

int TrackChargeSelector::charge_
private

Definition at line 17 of file TrackChargeSelector.h.

Referenced by operator()().

OrderedSet.t
t
Definition: OrderedSet.py:90
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
TrackChargeSelector::charge_
int charge_
Definition: TrackChargeSelector.h:17