All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
reco3d::HitsStandard Class Reference
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
 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 HitsStandard_tool.cc.

Constructor & Destructor Documentation

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

Constructor.

Parameters
pset

Definition at line 55 of file HitsStandard_tool.cc.

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

Destructor.

Definition at line 62 of file HitsStandard_tool.cc.

63 {
64 }

Member Function Documentation

void reco3d::HitsStandard::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 68 of file HitsStandard_tool.cc.

69 {
70 // m_enableMonitoring = pset.get<bool> ("EnableMonitoring", true );
71 
72  return;
73 }
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 75 of file HitsStandard_tool.cc.

79 {
80 
81  bool is2view = false;
82 
83  for(auto& hit: inputHits)
84  {
85  if(hit->Integral() < 0 || isnan(hit->Integral()) || isinf(hit->Integral()))
86  {
87  mf::LogWarning("HitsStandard") << "WARNING: bad recob::Hit::Integral() = "
88  << hit->Integral()
89  << ". Skipping." << std::endl;
90  continue;
91  }
92 
93  if(hit->SignalType() == geo::kCollection){
94  // For DualPhase, both view are collection. Arbitrarily map V to the main
95  // "X" view. For Argoneut and Lariat, collection=V is also the right
96  // convention.
97  if(hit->View() == geo::kZ){
98  xhits.push_back(hit);
99  }
100  if(hit->View() == geo::kV){
101  xhits.push_back(hit);
102  is2view = true;
103  }
104  if(hit->View() == geo::kU || hit->View() == geo::kY){
105  uhits.push_back(hit);
106  is2view = true;
107  }
108  }
109  else{
110  if(hit->View() == geo::kU) uhits.push_back(hit);
111  if(hit->View() == geo::kV) vhits.push_back(hit);
112  }
113  } // end for hit
114 
115  mf::LogDebug("HitsStandard") << ">>>>> Reading hits done" << std::endl;
116 
117  return is2view;
118 }
Planes which measure V.
Definition: geo_types.h:130
Planes which measure Z direction.
Definition: geo_types.h:132
process_name hit
Definition: cheaterreco.fcl:51
Planes which measure Y direction.
Definition: geo_types.h:133
Planes which measure U.
Definition: geo_types.h:129
Signal from collection planes.
Definition: geo_types.h:146

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