9 #include "art/Utilities/ToolMacros.h"
10 #include "messagefacility/MessageLogger/MessageLogger.h"
33 explicit HitsICARUS(
const fhicl::ParameterSet&);
40 void configure(fhicl::ParameterSet
const &pset)
override;
79 for(
auto&
hit: inputHits)
81 if(
hit->Integral() < 0 || isnan(
hit->Integral()) || isinf(
hit->Integral()))
83 mf::LogWarning(
"Hits_ICARUS") <<
"WARNING: bad recob::Hit::Integral() = "
85 <<
". Skipping." << std::endl;
89 if (
hit->WireID().Plane == 0) firstIndHits.push_back(
hit);
90 else if (
hit->WireID().Plane == 1) secondIndHits.push_back(
hit);
91 else collectionHits.push_back(
hit);
94 mf::LogDebug(
"Hits_ICARUS") <<
">>>>> Reading hits done" << std::endl;
Declaration of signal hit object.
This provides an art tool interface definition for reading hits into the SpacePointSolver universe...
HitsICARUS(const fhicl::ParameterSet &)
Constructor.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
void configure(fhicl::ParameterSet const &pset) override
Interface for configuring the particular algorithm tool.
IHitReader interface class definiton.
bool readHits(const std::vector< art::Ptr< recob::Hit >> &, std::vector< art::Ptr< recob::Hit >> &, std::vector< art::Ptr< recob::Hit >> &, std::vector< art::Ptr< recob::Hit >> &) const override
Scan an input collection of clusters and modify those according to the specific implementing algorith...