All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
reco3d::HitsICARUS Class Reference
Inheritance diagram for reco3d::HitsICARUS:
reco3d::IHitReader

Public Member Functions

 HitsICARUS (const fhicl::ParameterSet &)
 Constructor. More...
 
 ~HitsICARUS ()
 Destructor. More...
 
void configure (fhicl::ParameterSet const &pset) override
 Interface for configuring the particular algorithm tool. More...
 
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 algorithm. More...
 
- Public Member Functions inherited from reco3d::IHitReader
virtual ~IHitReader () noexcept=default
 Virtual Destructor. More...
 

Detailed Description

Definition at line 25 of file HitsICARUS_tool.cc.

Constructor & Destructor Documentation

reco3d::HitsICARUS::HitsICARUS ( const fhicl::ParameterSet &  pset)
explicit

Constructor.

Parameters
pset

Definition at line 54 of file HitsICARUS_tool.cc.

55 {
56  this->configure(pset);
57 }
void configure(fhicl::ParameterSet const &pset) override
Interface for configuring the particular algorithm tool.
reco3d::HitsICARUS::~HitsICARUS ( )

Destructor.

Definition at line 61 of file HitsICARUS_tool.cc.

62 {
63 }

Member Function Documentation

void reco3d::HitsICARUS::configure ( fhicl::ParameterSet const &  )
overridevirtual

Interface for configuring the particular algorithm tool.

Parameters
ParameterSetThe input set of parameters for configuration

Implements reco3d::IHitReader.

Definition at line 67 of file HitsICARUS_tool.cc.

68 {
69  // m_enableMonitoring = pset.get<bool> ("EnableMonitoring", true );
70 
71  return;
72 }
bool reco3d::HitsICARUS::readHits ( const std::vector< art::Ptr< recob::Hit >> &  inputHits,
std::vector< art::Ptr< recob::Hit >> &  collectionHits,
std::vector< art::Ptr< recob::Hit >> &  firstIndHits,
std::vector< art::Ptr< recob::Hit >> &  secondIndHits 
) const
overridevirtual

Scan an input collection of clusters and modify those according to the specific implementing algorithm.

Parameters
clusterParametersListA list of cluster objects (parameters from associated hits)

Implements reco3d::IHitReader.

Definition at line 74 of file HitsICARUS_tool.cc.

78 {
79  for(auto& hit: inputHits)
80  {
81  if(hit->Integral() < 0 || isnan(hit->Integral()) || isinf(hit->Integral()))
82  {
83  mf::LogWarning("Hits_ICARUS") << "WARNING: bad recob::Hit::Integral() = "
84  << hit->Integral()
85  << ". Skipping." << std::endl;
86  continue;
87  }
88 
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);
92  } // end for hit
93 
94  mf::LogDebug("Hits_ICARUS") << ">>>>> Reading hits done" << std::endl;
95 
96  return false;
97 }
process_name hit
Definition: cheaterreco.fcl:51

The documentation for this class was generated from the following file: