CMS 3D CMS Logo

IMASelector Struct Reference

#include <Calibration/Tools/interface/IMASelector.h>

List of all members.

Public Member Functions

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

Private Attributes

double ESCOPinMax_
double ESCOPinMin_
double ESeedOPoutMax_
double ESeedOPoutMin_
double PinMPoutOPinMax_
double PinMPoutOPinMin_


Detailed Description

Definition at line 6 of file IMASelector.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file IMASelector.h.

00008                                                                                   : 
00009     ESCOPinMin_ (ESCOPinMin),
00010     ESeedOPoutMin_ (ESeedOPoutMin),
00011     PinMPoutOPinMin_ (PinMPoutOPinMin),
00012     ESCOPinMax_ (ESCOPinMax),
00013     ESeedOPoutMax_ (ESeedOPoutMax),
00014     PinMPoutOPinMax_ (PinMPoutOPinMax) {}


Member Function Documentation

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

Definition at line 16 of file IMASelector.h.

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

00016                                        { 
00017     double pin = t.trackMomentumAtVtx ().R () ;
00018     double poMpiOpi = (pin - t.trackMomentumOut ().R ()) / pin ;
00019 //    double ESC = t.energy () ;     
00020     double EseedOPout = t.eSeedClusterOverPout () ;
00021     double EoPin = t.eSuperClusterOverP () ;
00022     return (poMpiOpi > PinMPoutOPinMin_ && poMpiOpi < PinMPoutOPinMax_ &
00023             EseedOPout > ESeedOPoutMin_ && EseedOPout < ESeedOPoutMax_ &
00024             EoPin > ESCOPinMin_ && EoPin < ESCOPinMax_) ;
00025   }


Member Data Documentation

double IMASelector::ESCOPinMax_ [private]

Definition at line 28 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESCOPinMin_ [private]

Definition at line 27 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESeedOPoutMax_ [private]

Definition at line 28 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESeedOPoutMin_ [private]

Definition at line 27 of file IMASelector.h.

Referenced by operator()().

double IMASelector::PinMPoutOPinMax_ [private]

Definition at line 28 of file IMASelector.h.

Referenced by operator()().

double IMASelector::PinMPoutOPinMin_ [private]

Definition at line 27 of file IMASelector.h.

Referenced by operator()().


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