CMS 3D CMS Logo

Public Member Functions | Private Attributes

IMASelector Struct Reference

#include <IMASelector.h>

List of all members.

Public Member Functions

 IMASelector (double ESCOPinMin, double ESeedOPoutMin, double PinMPoutOPinMin, double ESCOPinMax, double ESeedOPoutMax, double PinMPoutOPinMax, double EMPoutMin, double EMPoutMax)
template<typename T >
bool operator() (const T &t) const

Private Attributes

double EMPoutMax_
double EMPoutMin_
double ESCOPinMax_
double ESCOPinMin_
double ESeedOPoutMax_
double ESeedOPoutMin_
double PinMPoutOPinMax_
double PinMPoutOPinMin_

Detailed Description

Definition at line 7 of file IMASelector.h.


Constructor & Destructor Documentation

IMASelector::IMASelector ( double  ESCOPinMin,
double  ESeedOPoutMin,
double  PinMPoutOPinMin,
double  ESCOPinMax,
double  ESeedOPoutMax,
double  PinMPoutOPinMax,
double  EMPoutMin,
double  EMPoutMax 
) [inline]

Definition at line 8 of file IMASelector.h.

                                                   : 
    ESCOPinMin_ (ESCOPinMin),
    ESeedOPoutMin_ (ESeedOPoutMin),
    PinMPoutOPinMin_ (PinMPoutOPinMin),
    ESCOPinMax_ (ESCOPinMax),
    ESeedOPoutMax_ (ESeedOPoutMax),
    PinMPoutOPinMax_ (PinMPoutOPinMax),
    EMPoutMin_ (EMPoutMin),
    EMPoutMax_ (EMPoutMax) {}

Member Function Documentation

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

Definition at line 21 of file IMASelector.h.

References EMPoutMax_, EMPoutMin_, ESCOPinMax_, ESCOPinMin_, ESeedOPoutMax_, ESeedOPoutMin_, PinMPoutOPinMax_, and PinMPoutOPinMin_.

                                       { 
    double pin = t.trackMomentumAtVtx ().R () ;
    double poMpiOpi = (pin - t.trackMomentumOut ().R ()) / pin ;
    double ESC = t.energy () ;     
    double pOut = t.trackMomentumOut().R();
    double EseedOPout = t.eSeedClusterOverPout () ;
    double EoPin = t.eSuperClusterOverP () ;
    double EoPout = (ESC)/pOut;
    return (poMpiOpi > PinMPoutOPinMin_ && poMpiOpi < PinMPoutOPinMax_ &&
            EseedOPout > ESeedOPoutMin_ && EseedOPout < ESeedOPoutMax_ &&
            EoPin > ESCOPinMin_ && EoPin < ESCOPinMax_ &&
            EoPout > EMPoutMin_ && EoPout < EMPoutMax_) ;
  }

Member Data Documentation

double IMASelector::EMPoutMax_ [private]

Definition at line 37 of file IMASelector.h.

Referenced by operator()().

double IMASelector::EMPoutMin_ [private]

Definition at line 37 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESCOPinMax_ [private]

Definition at line 36 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESCOPinMin_ [private]

Definition at line 35 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESeedOPoutMax_ [private]

Definition at line 36 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESeedOPoutMin_ [private]

Definition at line 35 of file IMASelector.h.

Referenced by operator()().

Definition at line 36 of file IMASelector.h.

Referenced by operator()().

Definition at line 35 of file IMASelector.h.

Referenced by operator()().