#include <Track3DKalmanHitAlg.h>
Public Member Functions | |
Track3DKalmanHitAlg (const fhicl::ParameterSet &pset) | |
Constructor. More... | |
std::vector< trkf::KalmanOutput > | makeTracks (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, KalmanInputs &kalman_inputs) |
void | fetchPFParticleSeeds (const art::PtrVector< recob::Seed > &pfseeds, const std::vector< Hits > &pfseedhits, std::vector< recob::Seed > &seeds, std::vector< Hits > &hitsperseed) const |
Fetch Seeds method. More... | |
recob::Seed | makeSeed (detinfo::DetectorPropertiesData const &detProp, const Hits &hits) const |
Make seed method. More... | |
void | growSeedsIntoTracks (detinfo::DetectorPropertiesData const &detProp, const bool pfseed, const std::vector< recob::Seed > &seeds, const std::vector< Hits > &hitsperseed, Hits &unusedhits, Hits &hits, std::deque< KGTrack > &kalman_tracks) |
Grow Seeds method. More... | |
void | growSeedIntoTracks (detinfo::DetectorPropertiesData const &detProp, const bool pfseed, const recob::Seed &seed, const Hits &hpsit, Hits &unusedhits, Hits &hits, std::deque< KGTrack > &kgtracks) |
void | chopHitsOffSeeds (Hits const &hpsit, bool pfseed, Hits &seedhits) const |
Chop hits off of the end of seeds. More... | |
bool | testSeedSlope (const double *dir) const |
std::shared_ptr< Surface > | makeSurface (const recob::Seed &seed, double *dir) const |
method to return a seed to surface. More... | |
bool | makeKalmanTracks (detinfo::DetectorPropertiesData const &detProp, const std::shared_ptr< trkf::Surface > psurf, const Surface::TrackDirection trkdir, Hits &seedhits, Hits &hits, std::deque< KGTrack > &kalman_tracks) |
bool | smoothandextendTrack (detinfo::DetectorPropertiesData const &detProp, Propagator const &propagator, KGTrack &trg0, const Hits hits, unsigned int prefplane, std::deque< KGTrack > &kalman_tracks) |
SMooth and extend track. More... | |
bool | extendandsmoothLoop (detinfo::DetectorPropertiesData const &detProp, Propagator const &propagator, KGTrack &trg1, unsigned int prefplane, Hits &trackhits) const |
SMooth and extend a track in a loop. More... | |
void | filterHitsOnKalmanTrack (const KGTrack &trg, Hits &hits, Hits &seederhits) const |
Filter hits that are on kalman tracks. More... | |
std::unique_ptr< KHitContainer > | fillHitContainer (detinfo::DetectorPropertiesData const &detProp, const Hits &hits) const |
Fill hit container with either seedhits or filtered hits i.e. recob::Hit. More... | |
bool | qualityCutsOnSeedTrack (const KGTrack &trg0) const |
Quality cuts on seed track. More... | |
void | fitnupdateMomentum (Propagator const &propagator, KGTrack &trg1, KGTrack &trg2) const |
fit and update method, used twice. More... | |
Private Attributes | |
bool | fDoDedx |
Global dE/dx enable flag. More... | |
bool | fSelfSeed |
Self seed flag. More... | |
double | fMaxTcut |
Maximum delta ray energy in MeV for restricted dE/dx. More... | |
bool | fLineSurface |
Line surface flag. More... | |
size_t | fMinSeedHits |
Minimum number of hits per track seed. More... | |
int | fMinSeedChopHits |
Potentially chop seeds that exceed this length. More... | |
int | fMaxChopHits |
Maximum number of hits to chop from each end of seed. More... | |
double | fMaxSeedChiDF |
Maximum seed track chisquare/dof. More... | |
double | fMinSeedSlope |
Minimum seed slope (dx/dz). More... | |
double | fInitialMomentum |
Initial (or constant) momentum. More... | |
KalmanFilterAlg | fKFAlg |
Kalman filter algorithm. More... | |
SeedFinderAlgorithm | fSeedFinderAlg |
Seed finder. More... | |
int | fNumTrack |
Number of tracks produced. More... | |
Definition at line 60 of file Track3DKalmanHitAlg.h.
|
explicit |
Constructor.
Definition at line 84 of file Track3DKalmanHitAlg.cxx.
void trkf::Track3DKalmanHitAlg::chopHitsOffSeeds | ( | Hits const & | hpsit, |
bool | pfseed, | ||
Hits & | seedhits | ||
) | const |
Chop hits off of the end of seeds.
Definition at line 389 of file Track3DKalmanHitAlg.cxx.
bool trkf::Track3DKalmanHitAlg::extendandsmoothLoop | ( | detinfo::DetectorPropertiesData const & | detProp, |
Propagator const & | propagator, | ||
KGTrack & | trg1, | ||
unsigned int | prefplane, | ||
Hits & | trackhits | ||
) | const |
SMooth and extend a track in a loop.
Definition at line 459 of file Track3DKalmanHitAlg.cxx.
void trkf::Track3DKalmanHitAlg::fetchPFParticleSeeds | ( | const art::PtrVector< recob::Seed > & | pfseeds, |
const std::vector< Hits > & | pfseedhits, | ||
std::vector< recob::Seed > & | seeds, | ||
std::vector< Hits > & | hitsperseed | ||
) | const |
Fetch Seeds method.
Definition at line 168 of file Track3DKalmanHitAlg.cxx.
std::unique_ptr< trkf::KHitContainer > trkf::Track3DKalmanHitAlg::fillHitContainer | ( | detinfo::DetectorPropertiesData const & | detProp, |
const Hits & | hits | ||
) | const |
Fill hit container with either seedhits or filtered hits i.e. recob::Hit.
Definition at line 353 of file Track3DKalmanHitAlg.cxx.
void trkf::Track3DKalmanHitAlg::filterHitsOnKalmanTrack | ( | const KGTrack & | trg, |
Hits & | hits, | ||
Hits & | seederhits | ||
) | const |
void trkf::Track3DKalmanHitAlg::fitnupdateMomentum | ( | Propagator const & | propagator, |
KGTrack & | trg1, | ||
KGTrack & | trg2 | ||
) | const |
fit and update method, used twice.
Definition at line 508 of file Track3DKalmanHitAlg.cxx.
void trkf::Track3DKalmanHitAlg::growSeedIntoTracks | ( | detinfo::DetectorPropertiesData const & | detProp, |
const bool | pfseed, | ||
const recob::Seed & | seed, | ||
const Hits & | hpsit, | ||
Hits & | unusedhits, | ||
Hits & | hits, | ||
std::deque< KGTrack > & | kgtracks | ||
) |
Definition at line 203 of file Track3DKalmanHitAlg.cxx.
void trkf::Track3DKalmanHitAlg::growSeedsIntoTracks | ( | detinfo::DetectorPropertiesData const & | detProp, |
const bool | pfseed, | ||
const std::vector< recob::Seed > & | seeds, | ||
const std::vector< Hits > & | hitsperseed, | ||
Hits & | unusedhits, | ||
Hits & | hits, | ||
std::deque< KGTrack > & | kalman_tracks | ||
) |
Grow Seeds method.
Definition at line 183 of file Track3DKalmanHitAlg.cxx.
bool trkf::Track3DKalmanHitAlg::makeKalmanTracks | ( | detinfo::DetectorPropertiesData const & | detProp, |
const std::shared_ptr< trkf::Surface > | psurf, | ||
const Surface::TrackDirection | trkdir, | ||
Hits & | seedhits, | ||
Hits & | hits, | ||
std::deque< KGTrack > & | kalman_tracks | ||
) |
Definition at line 282 of file Track3DKalmanHitAlg.cxx.
recob::Seed trkf::Track3DKalmanHitAlg::makeSeed | ( | detinfo::DetectorPropertiesData const & | detProp, |
const Hits & | hits | ||
) | const |
Make seed method.
Definition at line 521 of file Track3DKalmanHitAlg.cxx.
std::shared_ptr< trkf::Surface > trkf::Track3DKalmanHitAlg::makeSurface | ( | const recob::Seed & | seed, |
double * | dir | ||
) | const |
std::vector< trkf::KalmanOutput > trkf::Track3DKalmanHitAlg::makeTracks | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
KalmanInputs & | kalman_inputs | ||
) |
Definition at line 105 of file Track3DKalmanHitAlg.cxx.
bool trkf::Track3DKalmanHitAlg::qualityCutsOnSeedTrack | ( | const KGTrack & | trg0 | ) | const |
Quality cuts on seed track.
Definition at line 368 of file Track3DKalmanHitAlg.cxx.
bool trkf::Track3DKalmanHitAlg::smoothandextendTrack | ( | detinfo::DetectorPropertiesData const & | detProp, |
Propagator const & | propagator, | ||
KGTrack & | trg0, | ||
const Hits | hits, | ||
unsigned int | prefplane, | ||
std::deque< KGTrack > & | kalman_tracks | ||
) |
SMooth and extend track.
Definition at line 408 of file Track3DKalmanHitAlg.cxx.
bool trkf::Track3DKalmanHitAlg::testSeedSlope | ( | const double * | dir | ) | const |
Definition at line 331 of file Track3DKalmanHitAlg.cxx.
|
private |
Global dE/dx enable flag.
Definition at line 116 of file Track3DKalmanHitAlg.h.
|
private |
Initial (or constant) momentum.
Definition at line 125 of file Track3DKalmanHitAlg.h.
|
private |
Kalman filter algorithm.
Definition at line 129 of file Track3DKalmanHitAlg.h.
|
private |
Line surface flag.
Definition at line 119 of file Track3DKalmanHitAlg.h.
|
private |
Maximum number of hits to chop from each end of seed.
Definition at line 122 of file Track3DKalmanHitAlg.h.
|
private |
Maximum seed track chisquare/dof.
Definition at line 123 of file Track3DKalmanHitAlg.h.
|
private |
Maximum delta ray energy in MeV for restricted dE/dx.
Definition at line 118 of file Track3DKalmanHitAlg.h.
|
private |
Potentially chop seeds that exceed this length.
Definition at line 121 of file Track3DKalmanHitAlg.h.
|
private |
Minimum number of hits per track seed.
Definition at line 120 of file Track3DKalmanHitAlg.h.
|
private |
Minimum seed slope (dx/dz).
Definition at line 124 of file Track3DKalmanHitAlg.h.
|
private |
Number of tracks produced.
Definition at line 133 of file Track3DKalmanHitAlg.h.
|
private |
Seed finder.
Definition at line 130 of file Track3DKalmanHitAlg.h.
|
private |
Self seed flag.
Definition at line 117 of file Track3DKalmanHitAlg.h.