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)
PlaneGeo const & Plane(unsigned int const p, unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified wire.
ProductID getProductID(std::string const &instance_name="") const
The data type to uniquely identify a Plane.
CryostatID_t Cryostat
Index of cryostat.
Weight_t RMS() const
Returns the root mean square.
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.
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
Detector simulation of raw signals on wires.
void GetHitListAndEndPoints(unsigned int plane, art::PtrVector< recob::Hit > &ptrhitlist, util::PxLine &startendpoints)
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.