|
bool | filter (art::Event &evt) override |
|
cluster::SmallClusterFilter::SmallClusterFilter |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
Definition at line 51 of file SmallClusterFilter_module.cc.
56 ,
fNPlanes{art::ServiceHandle<geo::Geometry const>()->Nplanes()}
59 throw art::Exception{art::errors::Configuration}
61 <<
") and the number of planes (" <<
fNPlanes <<
")\n";
std::vector< std::size_t > fMaxHitsByPlane
maximum hits on each plane
std::string fHitFinderModuleLabel
label of module making hits
std::size_t size(FixedBins< T, C > const &) noexcept
std::size_t fMaxTotalHits
maximum number of hits allowed
std::size_t fNPlanes
number of planes
bool cluster::SmallClusterFilter::filter |
( |
art::Event & |
evt | ) |
|
|
overrideprivate |
Definition at line 66 of file SmallClusterFilter_module.cc.
70 mf::LogVerbatim(
"SmallClusterFilter")
71 <<
" ++++ Hitsreceived received " <<
size(hits) <<
" +++++ ";
74 mf::LogWarning(
"SmallClusterFilter") <<
" no hits received! exiting ";
79 mf::LogWarning(
"SmallClusterFinder") <<
"Not an empty event, exiting.";
83 bool collFound =
false;
85 std::map<unsigned int, std::size_t> hitsPerPlane;
87 for (
auto const&
hit : hits) {
90 if (
hit.Integral() > 500)
continue;
92 ++hitsPerPlane[
hit.WireID().Plane];
98 for (
unsigned int i = 0; i <
fNPlanes; i++) {
std::vector< std::size_t > fMaxHitsByPlane
maximum hits on each plane
std::string fHitFinderModuleLabel
label of module making hits
std::size_t size(FixedBins< T, C > const &) noexcept
std::size_t fMaxTotalHits
maximum number of hits allowed
std::size_t fNPlanes
number of planes
bool empty(FixedBins< T, C > const &) noexcept
Signal from collection planes.
std::string cluster::SmallClusterFilter::fHitFinderModuleLabel |
|
private |
std::vector<std::size_t> cluster::SmallClusterFilter::fMaxHitsByPlane |
|
private |
std::size_t cluster::SmallClusterFilter::fMaxTotalHits |
|
private |
std::size_t cluster::SmallClusterFilter::fNPlanes |
|
private |
The documentation for this class was generated from the following file: