83 void GetStartEndHits(
unsigned int plane);
87 std::vector<util::PxLine> GetSeedLines();
108 produces<std::vector<recob::Cluster>>();
109 produces<art::Assns<recob::Cluster, recob::Hit>>();
110 produces<std::vector<art::PtrVector<recob::Cluster>>>();
126 std::unique_ptr<std::vector<recob::Cluster>> Graphcol(
new std::vector<recob::Cluster>);
127 std::unique_ptr<art::Assns<recob::Cluster, recob::Hit>> hassn(
129 std::unique_ptr<std::vector<art::PtrVector<recob::Cluster>>> classn(
137 for (
unsigned int ip = 0; ip <
fNPlanes; ip++) {
141 std::vector<art::PtrVector<recob::Hit>> hitlist;
142 hitlist.resize(fNPlanes);
144 for (
unsigned int ip = 0; ip <
fNPlanes; ip++) {
148 if (hitlist[ip].
size() == 0)
continue;
152 double swterror = 0., ewterror = 0.;
158 std::cout <<
" clustering @ " <<
startendpoints[ip].w0 <<
" +/- " << swterror <<
" " 160 <<
" +/- " << ewterror <<
" " <<
startendpoints[ip].t1 <<
" +/- " << ewterror
167 integral.
add(
hit->Integral());
168 summedADC.
add(
hit->SummedADC());
172 geo::PlaneID planeID = hitlist[ip].front()->WireID().planeID();
208 for (
unsigned int ip = 0; ip <
fNPlanes; ip++) {
214 classn->push_back(cvec);
216 evt.
put(std::move(Graphcol));
217 evt.
put(std::move(hassn));
218 evt.
put(std::move(classn));
code to link reconstructed objects back to the MC truth information
void reserve(size_type n)
Namespace for general, non-LArSoft-specific utilities.
Reconstruction base classes.
ProductID getProductID(std::string const &instance_name="") const
Declaration of signal hit object.
std::vector< recob::Hit * > starthit
The data type to uniquely identify a Plane.
Classes gathering simple statistics.
Weight_t RMS() const
Returns the root mean square.
static const SentryArgument_t Sentry
An instance of the sentry object.
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
PlaneGeo const & Plane(PlaneID const &planeid) const
Returns the specified wire.
Ptr(H, T) -> Ptr< detail::not_map_vector_t< typename H::element_type >>
EDProductGetter const * productGetter(ProductID const pid) const
std::vector< recob::Hit * > endhit
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
Weight_t Sum() const
Returns the weighted sum of the values.
int CheckValidity(art::Event &evt)
std::vector< util::PxLine > startendpoints
Declaration of cluster object.
Definition of data types for geometry description.
Detector simulation of raw signals on wires.
constexpr TPCID const & asTPCID() const
Conversion to TPCID (for convenience of notation).
void GetHitListAndEndPoints(unsigned int plane, art::PtrVector< recob::Hit > &ptrhitlist, util::PxLine &startendpoints)
bool CreateAssn(art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t index=UINT_MAX)
Creates a single one-to-one association.
void produce(art::Event &evt)
Utility object to perform functions of association.
Encapsulate the construction of a single detector plane.
unsigned int Nplanes(TPCID const &tpcid=tpc_zero) const
Returns the total number of planes in the specified TPC.
2D representation of charge deposited in the TDC/wire plane
Namespace collecting geometry-related classes utilities.
Collects statistics on a single quantity (weighted)
art framework interface to geometry description
void add(Data_t value, Weight_t weight=Weight_t(1.0))
Adds one entry with specified value and weight.