test
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 8 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 9 of file IMASelector.h.

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

Member Function Documentation

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

Definition at line 22 of file IMASelector.h.

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

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

Member Data Documentation

double IMASelector::EMPoutMax_
private

Definition at line 38 of file IMASelector.h.

Referenced by operator()().

double IMASelector::EMPoutMin_
private

Definition at line 38 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESCOPinMax_
private

Definition at line 37 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESCOPinMin_
private

Definition at line 36 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESeedOPoutMax_
private

Definition at line 37 of file IMASelector.h.

Referenced by operator()().

double IMASelector::ESeedOPoutMin_
private

Definition at line 36 of file IMASelector.h.

Referenced by operator()().

double IMASelector::PinMPoutOPinMax_
private

Definition at line 37 of file IMASelector.h.

Referenced by operator()().

double IMASelector::PinMPoutOPinMin_
private

Definition at line 36 of file IMASelector.h.

Referenced by operator()().