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

Constructor & Destructor Documentation

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

Constructor.

Parameters
pset

Definition at line 53 of file HitsStandard_tool.cc.

References configure().

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

Destructor.

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

Definition at line 64 of file HitsStandard_tool.cc.

Referenced by HitsStandard().

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

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

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

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