LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "SmallClusterFinderAlg.h"
Public Member Functions | |
SmallClusterFinderAlg (fhicl::ParameterSet const &pset) | |
void | SelectLocalHitlist (util::GeometryUtilities const &gser, std::vector< art::Ptr< recob::Hit >> hitlist, std::vector< art::Ptr< recob::Hit >> &hitlistlocal, double wire_start, double time_start, double radlimit) const |
void | SelectLocalHitlist (util::GeometryUtilities const &gser, 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 > &) const |
int | GetPlaneAndTPC (art::Ptr< recob::Hit > a, unsigned int &plane, unsigned int &cryostat, unsigned int &time, unsigned int &wire) const |
std::vector< art::Ptr< recob::Hit > > | CreateHighHitlist (util::GeometryUtilities const &gser, std::vector< art::Ptr< recob::Hit >> const &hitlist, std::vector< art::Ptr< recob::Hit >> &hitlistleftover) const |
void | FindSmallClusters (util::GeometryUtilities const &gser, detinfo::DetectorClocksData const &dataClocks, detinfo::DetectorPropertiesData const &detProp, 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 const > | geom |
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 60 of file SmallClusterFinderAlg.h.
|
explicit |
Definition at line 56 of file SmallClusterFinderAlg.cxx.
References ClearandResizeVectors(), fNHitsInClust, fNPlanes, fRadiusSizePar, geom, fhicl::ParameterSet::get(), geo::GeometryCore::Nplanes(), and verbose.
|
private |
Definition at line 199 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 | ( | util::GeometryUtilities const & | gser, |
std::vector< art::Ptr< recob::Hit >> const & | hitlist, | ||
std::vector< art::Ptr< recob::Hit >> & | hitlistleftover | ||
) | const |
Definition at line 280 of file SmallClusterFinderAlg.cxx.
References fNHitsInClust, fRadiusSizePar, GetPlaneAndTPC(), recob::Hit::PeakTime(), SelectLocalHitlist(), and verbose.
Referenced by FindSmallClusters().
void cluster::SmallClusterFinderAlg::FindSmallClusters | ( | util::GeometryUtilities const & | gser, |
detinfo::DetectorClocksData const & | dataClocks, | ||
detinfo::DetectorPropertiesData const & | detProp, | ||
std::vector< art::Ptr< recob::Hit >> | allHits | ||
) |
These lines determine the conversion factors to take wires and times to CMs
Definition at line 67 of file SmallClusterFinderAlg.cxx.
References ClearandResizeVectors(), CreateHighHitlist(), detinfo::DetectorPropertiesData::DriftVelocity(), detinfo::DetectorPropertiesData::Efield(), fDriftVelocity, fNPlanes, fRadiusSizePar, fTimeTick, fTimetoCm, fWirePitch, fWireTimetoCmCm, fWiretoCm, geom, GetPlaneAndTPC(), hitlistbyplane, hitlistleftover, hitlistrefined, recob::Hit::PeakTime(), detinfo::sampling_rate(), SelectLocalHitlist(), util::size(), smallClustList, detinfo::DetectorPropertiesData::Temperature(), lar::dump::vector(), verbose, w, and geo::GeometryCore::WirePitch().
Referenced by cluster::SmallClusterFinder::produce().
std::vector< art::Ptr< recob::Hit > > cluster::SmallClusterFinderAlg::GetLeftoversByPlane | ( | unsigned int | iPlane | ) |
Definition at line 353 of file SmallClusterFinderAlg.cxx.
References fNPlanes, and hitlistleftover.
Referenced by cluster::SmallClusterFinder::produce().
int cluster::SmallClusterFinderAlg::GetPlaneAndTPC | ( | art::Ptr< recob::Hit > | a, |
unsigned int & | plane, | ||
unsigned int & | cryostat, | ||
unsigned int & | time, | ||
unsigned int & | wire | ||
) | const |
Definition at line 329 of file SmallClusterFinderAlg.cxx.
References geo::GeometryCore::ChannelToWire(), geom, and w.
Referenced by CreateHighHitlist(), FindSmallClusters(), and SelectLocalHitlist().
std::vector< std::vector< art::Ptr< recob::Hit > > > cluster::SmallClusterFinderAlg::GetSmallClustersByPlane | ( | unsigned int | iPlane | ) |
Definition at line 347 of file SmallClusterFinderAlg.cxx.
References fNPlanes, and smallClustList.
Referenced by cluster::SmallClusterFinder::produce().
void cluster::SmallClusterFinderAlg::SelectLocalHitlist | ( | util::GeometryUtilities const & | gser, |
std::vector< art::Ptr< recob::Hit >> | hitlist, | ||
std::vector< art::Ptr< recob::Hit >> & | hitlistlocal, | ||
double | wire_start, | ||
double | time_start, | ||
double | radlimit | ||
) | const |
Definition at line 217 of file SmallClusterFinderAlg.cxx.
References util::GeometryUtilities::Get2DDistance(), GetPlaneAndTPC(), recob::Hit::PeakTime(), and lar::dump::vector().
Referenced by CreateHighHitlist(), and FindSmallClusters().
void cluster::SmallClusterFinderAlg::SelectLocalHitlist | ( | util::GeometryUtilities const & | gser, |
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 | ||
) | const |
Definition at line 245 of file SmallClusterFinderAlg.cxx.
References util::GeometryUtilities::Get2DDistance(), GetPlaneAndTPC(), recob::Hit::PeakTime(), and lar::dump::vector().
void cluster::SmallClusterFinderAlg::sortLeftoverHits | ( | ) |
|
private |
Definition at line 120 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 144 of file SmallClusterFinderAlg.h.
Referenced by CreateHighHitlist(), and SmallClusterFinderAlg().
|
private |
Definition at line 123 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), FindSmallClusters(), GetLeftoversByPlane(), GetSmallClustersByPlane(), and SmallClusterFinderAlg().
|
private |
Definition at line 124 of file SmallClusterFinderAlg.h.
|
private |
Definition at line 122 of file SmallClusterFinderAlg.h.
|
private |
Definition at line 142 of file SmallClusterFinderAlg.h.
Referenced by CreateHighHitlist(), FindSmallClusters(), and SmallClusterFinderAlg().
|
private |
Definition at line 119 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 118 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 121 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 118 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 118 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters().
|
private |
Definition at line 127 of file SmallClusterFinderAlg.h.
Referenced by FindSmallClusters(), GetPlaneAndTPC(), and SmallClusterFinderAlg().
|
private |
Definition at line 136 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), and FindSmallClusters().
|
private |
Definition at line 138 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), FindSmallClusters(), and GetLeftoversByPlane().
|
private |
Definition at line 135 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), and FindSmallClusters().
|
private |
Definition at line 131 of file SmallClusterFinderAlg.h.
Referenced by ClearandResizeVectors(), FindSmallClusters(), and GetSmallClustersByPlane().
|
private |
Definition at line 141 of file SmallClusterFinderAlg.h.
Referenced by CreateHighHitlist(), FindSmallClusters(), and SmallClusterFinderAlg().