All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | List of all members
sbnd::FiducialVolumeCosmicIdAlg Class Reference

#include <FiducialVolumeCosmicIdAlg.h>

Classes

struct  Config
 
struct  Fiducial
 

Public Member Functions

 FiducialVolumeCosmicIdAlg (const Config &config)
 
 FiducialVolumeCosmicIdAlg (const fhicl::ParameterSet &pset)
 
 ~FiducialVolumeCosmicIdAlg ()
 
void reconfigure (const Config &config)
 
bool InFiducial (geo::Point_t point)
 
bool FiducialVolumeCosmicId (recob::Track track)
 

Private Attributes

double fMinX
 
double fMinY
 
double fMinZ
 
double fMaxX
 
double fMaxY
 
double fMaxZ
 
TPCGeoAlg fTpcGeo
 

Detailed Description

Definition at line 28 of file sbndcode/sbndcode/CosmicId/Algs/FiducialVolumeCosmicIdAlg.h.

Constructor & Destructor Documentation

sbnd::FiducialVolumeCosmicIdAlg::FiducialVolumeCosmicIdAlg ( const Config config)

Definition at line 5 of file sbndcode/sbndcode/CosmicId/Algs/FiducialVolumeCosmicIdAlg.cc.

5  {
6 
7  this->reconfigure(config);
8 
9 }
sbnd::FiducialVolumeCosmicIdAlg::FiducialVolumeCosmicIdAlg ( const fhicl::ParameterSet &  pset)
inline

Definition at line 56 of file sbndcode/sbndcode/CosmicId/Algs/FiducialVolumeCosmicIdAlg.h.

56  :
57  FiducialVolumeCosmicIdAlg(fhicl::Table<Config>(pset, {})()) {}
sbnd::FiducialVolumeCosmicIdAlg::~FiducialVolumeCosmicIdAlg ( )

Definition at line 17 of file sbndcode/sbndcode/CosmicId/Algs/FiducialVolumeCosmicIdAlg.cc.

17  {
18 
19 }

Member Function Documentation

bool sbnd::FiducialVolumeCosmicIdAlg::FiducialVolumeCosmicId ( recob::Track  track)

Definition at line 42 of file sbndcode/sbndcode/CosmicId/Algs/FiducialVolumeCosmicIdAlg.cc.

42  {
43 
44  bool startInFiducial = InFiducial(track.Vertex());
45 
46  bool endInFiducial = InFiducial(track.End());
47 
48  if(!startInFiducial && !endInFiducial) return true;
49 
50  return false;
51 
52 }
Point_t const & Vertex() const
Point_t const & End() const
bool sbnd::FiducialVolumeCosmicIdAlg::InFiducial ( geo::Point_t  point)
void sbnd::FiducialVolumeCosmicIdAlg::reconfigure ( const Config config)

Member Data Documentation

double sbnd::FiducialVolumeCosmicIdAlg::fMaxX
private
double sbnd::FiducialVolumeCosmicIdAlg::fMaxY
private
double sbnd::FiducialVolumeCosmicIdAlg::fMaxZ
private
double sbnd::FiducialVolumeCosmicIdAlg::fMinX
private
double sbnd::FiducialVolumeCosmicIdAlg::fMinY
private
double sbnd::FiducialVolumeCosmicIdAlg::fMinZ
private
TPCGeoAlg sbnd::FiducialVolumeCosmicIdAlg::fTpcGeo
private

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