69 :
fSptalg(pset.get<
fhicl::ParameterSet>(
"SpacePointAlg"))
74 produces<std::vector<recob::SpacePoint> >();
75 produces<art::Assns<recob::SpacePoint, recob::Hit> >();
98 std::unique_ptr<std::vector<recob::SpacePoint> > spts(
new std::vector<recob::SpacePoint>);
101 for(
unsigned short ipfp = 0; ipfp < pfpHandle->size(); ++ipfp) {
103 std::vector<art::Ptr<recob::Cluster> > clsList;
104 pfp_cls.get(ipfp, clsList);
106 std::cout<<
"PFP "<<ipfp<<
"\n";
107 for(
unsigned short icl = 0; icl < clsList.size(); ++icl) {
108 std::vector<art::Ptr<recob::Hit> > hitList;
109 unsigned int clsIndex = clsList[icl]->ID() - 1;
110 cls_hit.
get(clsIndex, hitList);
111 std::cout<<
" cls index "<<clsIndex<<
" hits size "<<hitList.size()<<
" "<<(int)clsList[icl]->StartWire()<<
":"<<(int)clsList[icl]->StartTick()<<
" EndWire "<<(int)clsList[icl]->EndWire()<<
":"<<(int)clsList[icl]->EndTick()<<
"\n";
116 std::vector<recob::SpacePoint> new_spts;
118 if(new_spts.empty())
continue;
128 int nspt = spts->size();
129 spts->insert(spts->end(), new_spts.begin(), new_spts.end());
132 for(
unsigned int ispt = nspt; ispt < spts->size(); ++ispt) {
139 evt.
put(std::move(spts));
140 evt.
put(std::move(sphitassn));
void reserve(size_type n)
void produce(art::Event &evt) override
Declaration of signal hit object.
const art::PtrVector< recob::Hit > & getAssociatedHits(const recob::SpacePoint &spt) const
void reconfigure(fhicl::ParameterSet const &pset)
ProductID put(std::unique_ptr< PROD > &&product)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
T get(std::string const &key) const
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.
Declaration of cluster object.
Provides recob::Track data product.
void reconfigure(const fhicl::ParameterSet &pset)
void makeSpacePoints(const art::PtrVector< recob::Hit > &hits, std::vector< recob::SpacePoint > &spts) const
Utility object to perform functions of association.
size_type get(size_type i, reference item, data_reference data) const
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
std::string fPFPModuleLabel
Algorithm for generating space points from hits.
virtual ~TCTrack()=default
TCTrack(fhicl::ParameterSet const &pset)