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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/NDAna/ncpi0_semi_inc_png_cvn/ncpi0Cuts.h"

Public Member Functions

 fIsFiducialVariable (int a)
 
bool operator() (const caf::SRProxy *sr) const
 

Protected Attributes

int fFid
 

Detailed Description

Definition at line 956 of file ncpi0Cuts.h.

Constructor & Destructor Documentation

ana::fIsFiducialVariable::fIsFiducialVariable ( int  a)
inline

Definition at line 959 of file ncpi0Cuts.h.

959  : fFid(a)
960  {
961  }
const double a

Member Function Documentation

bool ana::fIsFiducialVariable::operator() ( const caf::SRProxy sr) const
inline

Definition at line 962 of file ncpi0Cuts.h.

References caf::Proxy< caf::SRKalman >::idxremid, caf::Proxy< caf::SRTrackBranch >::kalman, caf::Proxy< caf::SRKalman >::ntracks, caf::Proxy< caf::SRTrack >::start, caf::Proxy< caf::SRKalman >::tracks, caf::Proxy< caf::StandardRecord >::trk, ana::vtxmax(), ana::vtxmin(), caf::Proxy< caf::SRVector3D >::X(), caf::Proxy< caf::SRVector3D >::Y(), and caf::Proxy< caf::SRVector3D >::Z().

963  {
964  unsigned int bestidx = sr->trk.kalman.idxremid;
965 
966  if(sr->trk.kalman.ntracks <= bestidx )
967  return false;
968 
969  const caf::SRTrackProxy& trk = sr->trk.kalman.tracks[0];
970  TVector3 vtxmax(fFid,fFid,1000);
971  TVector3 vtxmin(-fFid,-fFid,50);
972 
973  bool isFiducial = (trk.start.X() < vtxmax.X() &&
974  trk.start.X() > vtxmin.X() &&
975  trk.start.Y() > vtxmin.Y() &&
976  trk.start.Y() < vtxmax.Y() &&
977  trk.start.Z() > vtxmin.Z() &&
978  trk.start.Z() < vtxmax.Z());
979  return isFiducial;
980 
981  }
caf::Proxy< unsigned int > idxremid
Definition: SRProxy.h:1777
const TVector3 vtxmin(-130,-176, 225)
caf::Proxy< size_t > ntracks
Definition: SRProxy.h:1778
Track finder for cosmic rays.
Proxy for caf::SRTrack.
Definition: SRProxy.h:1658
caf::Proxy< caf::SRTrackBranch > trk
Definition: SRProxy.h:2145
caf::Proxy< caf::SRVector3D > start
Definition: SRProxy.h:1698
caf::Proxy< caf::SRKalman > kalman
Definition: SRProxy.h:1797
caf::Proxy< std::vector< caf::SRKalmanTrack > > tracks
Definition: SRProxy.h:1780
const TVector3 vtxmax(160, 160, 1000)

Member Data Documentation

int ana::fIsFiducialVariable::fFid
protected

Definition at line 983 of file ncpi0Cuts.h.


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