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
IMASelector Struct Reference

#include <IMASelector.h>

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.

10  :
11  ESCOPinMin_ (ESCOPinMin),
12  ESeedOPoutMin_ (ESeedOPoutMin),
13  PinMPoutOPinMin_ (PinMPoutOPinMin),
14  ESCOPinMax_ (ESCOPinMax),
15  ESeedOPoutMax_ (ESeedOPoutMax),
16  PinMPoutOPinMax_ (PinMPoutOPinMax),
17  EMPoutMin_ (EMPoutMin),
18  EMPoutMax_ (EMPoutMax) {}
double ESCOPinMax_
Definition: IMASelector.h:36
double EMPoutMax_
Definition: IMASelector.h:37
double ESeedOPoutMax_
Definition: IMASelector.h:36
double PinMPoutOPinMax_
Definition: IMASelector.h:36
double ESCOPinMin_
Definition: IMASelector.h:35
double ESeedOPoutMin_
Definition: IMASelector.h:35
double EMPoutMin_
Definition: IMASelector.h:37
double PinMPoutOPinMin_
Definition: IMASelector.h:35

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_.

21  {
22  double pin = t.trackMomentumAtVtx ().R () ;
23  double poMpiOpi = (pin - t.trackMomentumOut ().R ()) / pin ;
24  double ESC = t.energy () ;
25  double pOut = t.trackMomentumOut().R();
26  double EseedOPout = t.eSeedClusterOverPout () ;
27  double EoPin = t.eSuperClusterOverP () ;
28  double EoPout = (ESC)/pOut;
29  return (poMpiOpi > PinMPoutOPinMin_ && poMpiOpi < PinMPoutOPinMax_ &&
30  EseedOPout > ESeedOPoutMin_ && EseedOPout < ESeedOPoutMax_ &&
31  EoPin > ESCOPinMin_ && EoPin < ESCOPinMax_ &&
32  EoPout > EMPoutMin_ && EoPout < EMPoutMax_) ;
33  }
double ESCOPinMax_
Definition: IMASelector.h:36
double EMPoutMax_
Definition: IMASelector.h:37
double ESeedOPoutMax_
Definition: IMASelector.h:36
double PinMPoutOPinMax_
Definition: IMASelector.h:36
double ESCOPinMin_
Definition: IMASelector.h:35
double ESeedOPoutMin_
Definition: IMASelector.h:35
double EMPoutMin_
Definition: IMASelector.h:37
double PinMPoutOPinMin_
Definition: IMASelector.h:35

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()().

double IMASelector::PinMPoutOPinMax_
private

Definition at line 36 of file IMASelector.h.

Referenced by operator()().

double IMASelector::PinMPoutOPinMin_
private

Definition at line 35 of file IMASelector.h.

Referenced by operator()().