LArSoft  v09_90_00
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 25 of file HitsICARUS_tool.cc.

Constructor & Destructor Documentation

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

Constructor.

Parameters
pset

Definition at line 53 of file HitsICARUS_tool.cc.

References configure().

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

Destructor.

Definition at line 60 of file HitsICARUS_tool.cc.

60 {}

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 64 of file HitsICARUS_tool.cc.

Referenced by HitsICARUS().

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

References DEFINE_ART_CLASS_TOOL.

76  {
77  for (auto& hit : inputHits) {
78  if (hit->Integral() < 0 || isnan(hit->Integral()) || isinf(hit->Integral())) {
79  mf::LogWarning("Hits_ICARUS") << "WARNING: bad recob::Hit::Integral() = " << hit->Integral()
80  << ". Skipping." << std::endl;
81  continue;
82  }
83 
84  if (hit->WireID().Plane == 0)
85  firstIndHits.push_back(hit);
86  else if (hit->WireID().Plane == 1)
87  secondIndHits.push_back(hit);
88  else
89  collectionHits.push_back(hit);
90  } // end for hit
91 
92  mf::LogDebug("Hits_ICARUS") << ">>>>> Reading hits done" << std::endl;
93 
94  return false;
95  }
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: