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

#include <CrtHitCosmicIdAlg.h>

Classes

struct  BeamTime
 
struct  Config
 

Public Member Functions

 CrtHitCosmicIdAlg (const core::ProviderManager &manager, const Config &config)
 
 CrtHitCosmicIdAlg (const core::ProviderManager &manager, const fhicl::ParameterSet &pset)
 
 ~CrtHitCosmicIdAlg ()
 
void reconfigure (const core::ProviderManager &manager, const Config &config)
 
bool CrtHitCosmicId (recob::Track track, std::vector< art::Ptr< recob::Hit >> hits, std::vector< sbn::crt::CRTHit > crtHits)
 
sbnd::CRTT0MatchAlg T0Alg () const
 

Private Attributes

sbnd::CRTT0MatchAlg t0Alg
 
double fBeamTimeMin
 
double fBeamTimeMax
 

Detailed Description

Definition at line 32 of file sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/CrtHitCosmicIdAlg.h.

Constructor & Destructor Documentation

ana::CrtHitCosmicIdAlg::CrtHitCosmicIdAlg ( const core::ProviderManager manager,
const Config config 
)

Definition at line 5 of file sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/CrtHitCosmicIdAlg.cc.

5  {
6 
7  this->reconfigure(manager, config);
8 
9 } //CrtHitCosmicIdAlg()
void reconfigure(const core::ProviderManager &manager, const Config &config)
ana::CrtHitCosmicIdAlg::CrtHitCosmicIdAlg ( const core::ProviderManager manager,
const fhicl::ParameterSet &  pset 
)
inline

Definition at line 69 of file sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/CrtHitCosmicIdAlg.h.

69  :
70  CrtHitCosmicIdAlg(manager, fhicl::Table<Config>(pset, {})()) {}
CrtHitCosmicIdAlg(const core::ProviderManager &manager, const Config &config)
ana::CrtHitCosmicIdAlg::~CrtHitCosmicIdAlg ( )

Definition at line 17 of file sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/CrtHitCosmicIdAlg.cc.

17  {
18 
19 } //~CrtHitCosmicIdAlg()

Member Function Documentation

bool ana::CrtHitCosmicIdAlg::CrtHitCosmicId ( recob::Track  track,
std::vector< art::Ptr< recob::Hit >>  hits,
std::vector< sbn::crt::CRTHit crtHits 
)

Definition at line 33 of file sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/CrtHitCosmicIdAlg.cc.

33  {
34 
35  // Get the closest matched time from CRT hits
36  double crtHitTime = t0Alg.T0FromCRTHits(track, hits, crtHits);
37 
38  // If time is valid and outside the beam time then tag as a cosmic
39  if(crtHitTime != -99999 && (crtHitTime < fBeamTimeMin || crtHitTime > fBeamTimeMax)) return true;
40 
41  return false;
42 
43 } //CrtHitCosmicId()
double T0FromCRTHits(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTHit > crtHits, const art::Event &event)
void ana::CrtHitCosmicIdAlg::reconfigure ( const core::ProviderManager manager,
const Config config 
)

Definition at line 22 of file sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/CrtHitCosmicIdAlg.cc.

22  {
23 
25  fBeamTimeMin = config.BeamTimeLimits().BeamTimeMin();
26  fBeamTimeMax = config.BeamTimeLimits().BeamTimeMax();
27 
28  return;
29 } //reconfigure()
const detinfo::DetectorPropertiesStandard * GetDetectorPropertiesProvider() const
const geo::GeometryCore * GetGeometryProvider() const
sbnd::CRTT0MatchAlg ana::CrtHitCosmicIdAlg::T0Alg ( ) const
inline

Member Data Documentation

double ana::CrtHitCosmicIdAlg::fBeamTimeMax
private
double ana::CrtHitCosmicIdAlg::fBeamTimeMin
private
sbnd::CRTT0MatchAlg ana::CrtHitCosmicIdAlg::t0Alg
private

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