StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SpinCuts.cxx
1 #include "SpinCuts.h"
2 
3 ClassImp(SpinCuts);
4 
5 SpinCuts::SpinCuts()
6 {
7  z_vertex_min = -150.0;
8  z_vertex_max = +150.0;
9  zgg_min = 0.0;
10  zgg_max = 1.0;
11  adc_cut = 0;
12  tower_et_cut = 3.00;
13  eta_min = 1.10;
14  eta_max = 1.95;
15  tower_deta = 1.0;
16  tower_dphi = 1.0;
17 }
18 
19 Bool_t SpinCuts::operator()( StEEmcPair &pair )
20 {
21  if ( pair.vertex().Z() < z_vertex_min ) return false;
22  if ( pair.vertex().Z() > z_vertex_max ) return false;
23 
24  if ( pair.zgg() < zgg_min ) return false;
25  if ( pair.zgg() > zgg_max ) return false;
26 
27  return true;
28 }
const TVector3 & vertex() const
Returns vertex of pair.
Definition: StEEmcPair.h:79
Float_t zgg() const
Returns energy-sharing of pair.
Definition: StEEmcPair.h:75
A class to represent pairs of points.
Definition: StEEmcPair.h:9