LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
reco3d::HitsStandard Class Referenceabstract
Inheritance diagram for reco3d::HitsStandard:
reco3d::IHitReader

Public Member Functions

 HitsStandard (const fhicl::ParameterSet &)
 Constructor. More...
 
 ~HitsStandard ()
 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 HitsStandard_tool.cc.

Constructor & Destructor Documentation

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

Constructor.

Parameters
pset

Definition at line 54 of file HitsStandard_tool.cc.

References configure().

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

Destructor.

Definition at line 61 of file HitsStandard_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::HitsStandard::configure ( fhicl::ParameterSet const &  pset)
override

Definition at line 65 of file HitsStandard_tool.cc.

Referenced by HitsStandard().

66  {
67  // m_enableMonitoring = pset.get<bool> ("EnableMonitoring", true );
68 
69  return;
70  }
bool reco3d::HitsStandard::readHits ( const std::vector< art::Ptr< recob::Hit >> &  inputHits,
std::vector< art::Ptr< recob::Hit >> &  xhits,
std::vector< art::Ptr< recob::Hit >> &  uhits,
std::vector< art::Ptr< recob::Hit >> &  vhits 
) 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 HitsStandard_tool.cc.

References DEFINE_ART_CLASS_TOOL, geo::kCollection, geo::kU, geo::kV, geo::kY, and geo::kZ.

76  {
77 
78  bool is2view = false;
79 
80  for (auto& hit : inputHits) {
81  if (hit->Integral() < 0 || std::isnan(hit->Integral()) || std::isinf(hit->Integral())) {
82  mf::LogWarning("HitsStandard")
83  << "WARNING: bad recob::Hit::Integral() = " << hit->Integral() << ". Skipping."
84  << std::endl;
85  continue;
86  }
87 
88  if (hit->SignalType() == geo::kCollection) {
89  // For DualPhase, both view are collection. Arbitrarily map V to the main
90  // "X" view. For Argoneut and Lariat, collection=V is also the right
91  // convention.
92  if (hit->View() == geo::kZ) { xhits.push_back(hit); }
93  if (hit->View() == geo::kV) {
94  xhits.push_back(hit);
95  is2view = true;
96  }
97  if (hit->View() == geo::kU || hit->View() == geo::kY) {
98  uhits.push_back(hit);
99  is2view = true;
100  }
101  }
102  else {
103  if (hit->View() == geo::kU) uhits.push_back(hit);
104  if (hit->View() == geo::kV) vhits.push_back(hit);
105  }
106  } // end for hit
107 
108  mf::LogDebug("HitsStandard") << ">>>>> Reading hits done" << std::endl;
109 
110  return is2view;
111  }
Planes which measure V.
Definition: geo_types.h:132
Planes which measure Z direction.
Definition: geo_types.h:134
Planes which measure Y direction.
Definition: geo_types.h:135
Planes which measure U.
Definition: geo_types.h:131
Detector simulation of raw signals on wires.
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
Signal from collection planes.
Definition: geo_types.h:148

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