99 void GetStartEndHits(
unsigned int plane);
105 std::vector < util::PxLine > GetSeedLines();
145 produces< std::vector<recob::Cluster> >();
146 produces< art::Assns<recob::Cluster, recob::Hit> >();
147 produces< std::vector < art::PtrVector <recob::Cluster> > >();
170 std::unique_ptr<std::vector<recob::Cluster> > Graphcol(
new std::vector<recob::Cluster>);
187 for(
unsigned int ip=0;ip<
fNPlanes;ip++) {
192 std::vector < art::PtrVector < recob::Hit > > hitlist;
193 hitlist.resize(fNPlanes);
195 for(
unsigned int ip=0;ip<
fNPlanes;ip++) {
201 if(hitlist[ip].
size()==0)
213 double swterror=0.,ewterror=0.;
221 std::cout <<
" clustering @ " <<
startendpoints[ip].w0 <<
" +/- "<< swterror
230 integral.
add(
hit->Integral());
231 summedADC.
add(
hit->SummedADC());
235 geo::PlaneID planeID = hitlist[ip].front()->WireID().planeID();
236 Graphcol->emplace_back(
273 for(
unsigned int ip=0;ip<
fNPlanes;ip++) {
279 classn->push_back(cvec);
code to link reconstructed objects back to the MC truth information
void reserve(size_type n)
Namespace for general, non-LArSoft-specific utilities.
PlaneGeo const & Plane(unsigned int const p, unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified wire.
Reconstruction base classes.
ProductID getProductID(std::string const &instance_name="") const
The data type to uniquely identify a Plane.
CryostatID_t Cryostat
Index of cryostat.
Classes gathering simple statistics.
Weight_t RMS() const
Returns the root mean square.
std::vector< recob::Hit * > starthit
art framework interface to geometry description
static const SentryArgument_t Sentry
An instance of the sentry object.
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
View_t View() const
Which coordinate does this plane measure.
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
#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)
EDProductGetter const * productGetter(ProductID const pid) const
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::vector< util::PxLine > startendpoints
Definition of data types for geometry description.
Detector simulation of raw signals on wires.
void GetHitListAndEndPoints(unsigned int plane, art::PtrVector< recob::Hit > &ptrhitlist, util::PxLine &startendpoints)
void produce(art::Event &evt)
Declaration of signal hit object.
Encapsulate the construction of a single detector plane.
std::vector< recob::Hit * > endhit
2D representation of charge deposited in the TDC/wire plane
TPCID_t TPC
Index of the TPC within its cryostat.
LArSoft geometry interface.
Collects statistics on a single quantity (weighted)
QTextStream & endl(QTextStream &s)
void add(Data_t value, Weight_t weight=Weight_t(1.0))
Adds one entry with specified value and weight.