LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
reco3d::HitsICARUS Class Referenceabstract
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
 
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...
 
virtual void configure (const fhicl::ParameterSet &)=0
 Interface for configuring the particular algorithm tool. More...
 

Detailed Description

Definition at line 26 of file HitsICARUS_tool.cc.

Constructor & Destructor Documentation

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

Constructor.

Parameters
pset

Definition at line 54 of file HitsICARUS_tool.cc.

References configure().

55  {
56  this->configure(pset);
57  }
void configure(fhicl::ParameterSet const &pset) override
reco3d::HitsICARUS::~HitsICARUS ( )

Destructor.

Definition at line 61 of file HitsICARUS_tool.cc.

61 {}

Member Function Documentation

virtual void reco3d::IHitReader::configure ( const fhicl::ParameterSet )
pure virtualinherited

Interface for configuring the particular algorithm tool.

Parameters
ParameterSetThe input set of parameters for configuration
void reco3d::HitsICARUS::configure ( fhicl::ParameterSet const &  pset)
override

Definition at line 65 of file HitsICARUS_tool.cc.

Referenced by HitsICARUS().

66  {
67  // m_enableMonitoring = pset.get<bool> ("EnableMonitoring", true );
68 
69  return;
70  }
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 72 of file HitsICARUS_tool.cc.

References DEFINE_ART_CLASS_TOOL.

77  {
78  for (auto& hit : inputHits) {
79  if (hit->Integral() < 0 || std::isnan(hit->Integral()) || std::isinf(hit->Integral())) {
80  mf::LogWarning("Hits_ICARUS") << "WARNING: bad recob::Hit::Integral() = " << hit->Integral()
81  << ". Skipping." << std::endl;
82  continue;
83  }
84 
85  if (hit->WireID().Plane == 0)
86  firstIndHits.push_back(hit);
87  else if (hit->WireID().Plane == 1)
88  secondIndHits.push_back(hit);
89  else
90  collectionHits.push_back(hit);
91  } // end for hit
92 
93  mf::LogDebug("Hits_ICARUS") << ">>>>> Reading hits done" << std::endl;
94 
95  return false;
96  }
Detector simulation of raw signals on wires.
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning

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