Public Member Functions | Protected Attributes | List of all members
ana::ContainFxn Class Reference

functions for sliding containment, useful for modeling smaller detector for early reach More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/CAFAna/Cuts/Cuts.h"

Public Member Functions

 ContainFxn (double zmax)
 
bool operator() (const caf::SRProxy *sr) const
 

Protected Attributes

double zmax
 

Detailed Description

functions for sliding containment, useful for modeling smaller detector for early reach

Definition at line 57 of file Cuts.h.

Constructor & Destructor Documentation

ana::ContainFxn::ContainFxn ( double  zmax)
inline

Definition at line 60 of file Cuts.h.

References operator()(), and sr.

60  : zmax(zmax)
61  {
62  }
double zmax
Definition: Cuts.h:67

Member Function Documentation

bool ana::ContainFxn::operator() ( const caf::SRProxy sr) const

Definition at line 163 of file Cuts.cxx.

References caf::Proxy< caf::SRSlice >::boxmax, caf::Proxy< caf::SRSlice >::boxmin, caf::Proxy< caf::SRIDBranch >::contain, caf::Proxy< caf::SRContain >::cosbakcell, caf::Proxy< caf::SRContain >::cosfwdcell, caf::Proxy< caf::SRContain >::kalbakcell, caf::Proxy< caf::SRContain >::kalfwdcell, caf::Proxy< caf::StandardRecord >::sel, caf::Proxy< caf::StandardRecord >::slc, caf::Proxy< caf::SRVector3D >::X(), caf::Proxy< caf::SRVector3D >::Y(), caf::Proxy< caf::SRVector3D >::Z(), and zmax.

Referenced by ContainFxn(), and ana::NotContainFxn::NotContainFxn().

164  {
165  return (sr->slc.boxmin.X() > -745 &&
166  sr->slc.boxmin.Y() > -745 &&
167  sr->slc.boxmax.X() < 745 &&
168  sr->slc.boxmax.Y() < 720 &&
169  sr->slc.boxmin.Z() > zmax+12 &&
170  sr->slc.boxmax.Z() < 5950 &&
171  sr->sel.contain.kalfwdcell > 10 &&
172  sr->sel.contain.kalbakcell > 10 &&
173  sr->sel.contain.cosfwdcell > 10 &&
174  sr->sel.contain.cosbakcell > 10);
175  }
caf::Proxy< caf::SRContain > contain
Definition: SRProxy.h:1251
caf::Proxy< int > cosfwdcell
Definition: SRProxy.h:810
caf::Proxy< int > cosbakcell
Definition: SRProxy.h:805
caf::Proxy< caf::SRVector3D > boxmin
Definition: SRProxy.h:1291
caf::Proxy< int > kalbakcell
Definition: SRProxy.h:817
caf::Proxy< int > kalfwdcell
Definition: SRProxy.h:822
caf::Proxy< caf::SRSlice > slc
Definition: SRProxy.h:2142
caf::Proxy< caf::SRIDBranch > sel
Definition: SRProxy.h:2141
double zmax
Definition: Cuts.h:67
caf::Proxy< caf::SRVector3D > boxmax
Definition: SRProxy.h:1290

Member Data Documentation

double ana::ContainFxn::zmax
protected

Definition at line 67 of file Cuts.h.

Referenced by operator()(), and ana::NotContainFxn::operator()().


The documentation for this class was generated from the following files: