LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "SmallClusterFinderAlg.h"
Public Member Functions | |
SmallClusterFinderAlg () | |
SmallClusterFinderAlg (fhicl::ParameterSet const &pset) | |
void | reconfigure (fhicl::ParameterSet const &pset) |
void | SelectLocalHitlist (std::vector< art::Ptr< recob::Hit > > hitlist, std::vector< art::Ptr< recob::Hit > > &hitlistlocal, double wire_start, double time_start, double radlimit) |
void | SelectLocalHitlist (std::vector< art::Ptr< recob::Hit > > hitlist, std::vector< art::Ptr< recob::Hit > > &hitlistlocal, double wire_start, double time_start, double radlimit, std::vector< int > &) |
int | GetPlaneAndTPC (art::Ptr< recob::Hit > a, unsigned int &p, unsigned int &cs, unsigned int &t, unsigned int &w) |
std::vector< art::Ptr< recob::Hit > > | CreateHighHitlist (std::vector< art::Ptr< recob::Hit > > hitlist, std::vector< art::Ptr< recob::Hit > > &hitlistleftover) |
void | FindSmallClusters (std::vector< art::Ptr< recob::Hit > > allHits) |
void | sortLeftoverHits () |
std::vector< std::vector< art::Ptr< recob::Hit > > > | GetSmallClustersByPlane (unsigned int iPlane) |
std::vector< art::Ptr< recob::Hit > > | GetLeftoversByPlane (unsigned int iPlane) |
Private Member Functions | |
void | ClearandResizeVectors () |
Private Attributes | |
double | fWiretoCm |
double | fTimetoCm |
double | fWireTimetoCmCm |
float | fTimeTick |
float | fDriftVelocity |
double | fWirePitch |
std::vector< unsigned int > | fNWires |
unsigned int | fNPlanes |
double | fNTimes |
art::ServiceHandle< geo::Geometry > | geom |
util::GeometryUtilities | gser |
std::vector< std::vector< std::vector< art::Ptr< recob::Hit > > > > | smallClustList |
std::vector< std::vector< art::Ptr< recob::Hit > > > | hitlistrefined |
std::vector< std::vector< art::Ptr< recob::Hit > > > | hitlistbyplane |
std::vector< std::vector< art::Ptr< recob::Hit > > > | hitlistleftover |
bool | verbose |
double | fRadiusSizePar |
double | fNHitsInClust |
Definition at line 46 of file SmallClusterFinderAlg.h.
cluster::SmallClusterFinderAlg::SmallClusterFinderAlg | ( | ) |
METHODS global
These lines determine the conversion factors to take wires and times to CMs
Definition at line 64 of file SmallClusterFinderAlg.cxx.
References ClearandResizeVectors(), fNPlanes, and geom.
cluster::SmallClusterFinderAlg::SmallClusterFinderAlg | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 75 of file SmallClusterFinderAlg.cxx.
References ClearandResizeVectors(), fNPlanes, geom, and reconfigure().
|
private |
Definition at line 255 of file SmallClusterFinderAlg.cxx.
References fNPlanes, hitlistbyplane, hitlistleftover, hitlistrefined, and smallClustList.
Referenced by FindSmallClusters(), and SmallClusterFinderAlg().
std::vector< art::Ptr< recob::Hit > > cluster::SmallClusterFinderAlg::CreateHighHitlist | ( | std::vector< art::Ptr< recob::Hit > > | hitlist, |
std::vector< art::Ptr< recob::Hit > > & | hitlistleftover | ||
) |
Definition at line 339 of file SmallClusterFinderAlg.cxx.
References fNHitsInClust, fRadiusSizePar, GetPlaneAndTPC(), recob::Hit::PeakTime(), SelectLocalHitlist(), and verbose.
Referenced by FindSmallClusters().
void cluster::SmallClusterFinderAlg::FindSmallClusters | ( | std::vector< art::Ptr< recob::Hit > > | allHits | ) |
These lines determine the conversion factors to take wires and times to CMs
Definition at line 98 of file SmallClusterFinderAlg.cxx.
References ClearandResizeVectors(), CreateHighHitlist(), detinfo::DetectorProperties::DriftVelocity(), detinfo::DetectorProperties::Efield(), fDriftVelocity, fNPlanes, fRadiusSizePar, fTimeTick, fTimetoCm, fWirePitch, fWireTimetoCmCm, fWiretoCm, geom, GetPlaneAndTPC(), hitlistbyplane, hitlistleftover, hitlistrefined, recob::Hit::PeakTime(), detinfo::DetectorProperties::SamplingRate(), SelectLocalHitlist(), smallClustList, detinfo::DetectorProperties::Temperature(), lar::dump::vector(), verbose, and w.
Referenced by cluster::SmallClusterFinder::produce().
std::vector< art::Ptr< recob::Hit > > cluster::SmallClusterFinderAlg::GetLeftoversByPlane | ( | unsigned int | iPlane | ) |
Definition at line 416 of file SmallClusterFinderAlg.cxx.
References fNPlanes, and hitlistleftover.
Referenced by cluster::SmallClusterFinder::produce().
int cluster::SmallClusterFinderAlg::GetPlaneAndTPC | ( | art::Ptr< recob::Hit > | a, |
unsigned int & | p, | ||
unsigned int & | cs, | ||
unsigned int & | t, | ||
unsigned int & | w | ||
) |
Definition at line 388 of file SmallClusterFinderAlg.cxx.
References recob::Hit::Channel(), geo::GeometryCore::ChannelToWire(), and geom.
Referenced by CreateHighHitlist(), FindSmallClusters(), and SelectLocalHitlist().
std::vector< std::vector< art::Ptr< recob::Hit > > > cluster::SmallClusterFinderAlg::GetSmallClustersByPlane | ( | unsigned int | iPlane | ) |
Definition at line 406 of file SmallClusterFinderAlg.cxx.
References fNPlanes, and smallClustList.
Referenced by cluster::SmallClusterFinder::produce().
void cluster::SmallClusterFinderAlg::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Constructor
Definition at line 85 of file SmallClusterFinderAlg.cxx.
References fNHitsInClust, fRadiusSizePar, fhicl::ParameterSet::get(), and verbose.
Referenced by cluster::SmallClusterFinder::reconfigure(), and SmallClusterFinderAlg().
void cluster::SmallClusterFinderAlg::SelectLocalHitlist | ( | std::vector< art::Ptr< recob::Hit > > | hitlist, |
std::vector< art::Ptr< recob::Hit > > & | hitlistlocal, | ||
double | wire_start, | ||
double | time_start, | ||
double | radlimit | ||
) |
Definition at line 274 of file SmallClusterFinderAlg.cxx.
References util::GeometryUtilities::Get2DDistance(), GetPlaneAndTPC(), gser, recob::Hit::PeakTime(), and lar::dump::vector().
Referenced by CreateHighHitlist(), and FindSmallClusters().
void cluster::SmallClusterFinderAlg::SelectLocalHitlist | ( | std::vector< art::Ptr< recob::Hit > > | hitlist, |
std::vector< art::Ptr< recob::Hit > > & | hitlistlocal, | ||
double | wire_start, | ||
double | time_start, | ||
double | radlimit, | ||
std::vector< int > & | index | ||
) |
Definition at line 300 of file SmallClusterFinderAlg.cxx.
References util::GeometryUtilities::Get2DDistance(), GetPlaneAndTPC(), gser, recob::Hit::PeakTime(), and lar::dump::vector().
void cluster::SmallClusterFinderAlg::sortLeftoverHits | ( | ) |
|
private |
Definition at line 99 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 121 of file SmallClusterFinderAlg.h.
Referenced by CreateHighHitlist(), and reconfigure().
|
private |
Definition at line 102 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), FindSmallClusters(), GetLeftoversByPlane(), GetSmallClustersByPlane(), and SmallClusterFinderAlg().
|
private |
Definition at line 103 of file SmallClusterFinderAlg.h.
|
private |
Definition at line 101 of file SmallClusterFinderAlg.h.
|
private |
Definition at line 120 of file SmallClusterFinderAlg.h.
Referenced by CreateHighHitlist(), FindSmallClusters(), and reconfigure().
|
private |
Definition at line 98 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 97 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 100 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 97 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 97 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 106 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters(), GetPlaneAndTPC(), and SmallClusterFinderAlg().
|
private |
Definition at line 107 of file SmallClusterFinderAlg.h.
Referenced by SelectLocalHitlist().
|
private |
Definition at line 115 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), and FindSmallClusters().
|
private |
Definition at line 116 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), FindSmallClusters(), and GetLeftoversByPlane().
|
private |
Definition at line 114 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), and FindSmallClusters().
|
private |
Definition at line 111 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), FindSmallClusters(), and GetSmallClustersByPlane().
|
private |
Definition at line 119 of file SmallClusterFinderAlg.h.
Referenced by CreateHighHitlist(), FindSmallClusters(), and reconfigure().