17 #include "Utilities/AssociationUtil.h" 39 this->produces< art::Assns<rb::Vertex, rb::Cluster> >();
55 std::unique_ptr< art::Assns<rb::Vertex, rb::Cluster> >
57 std::vector<art::Ptr<rb::Cluster>> slicevec;
64 for(
unsigned int i = 0;
i < slice->size(); ++
i) {
66 slicevec.push_back(sptr);
74 evt.
put(std::move(vtx_to_slice));
static bool CreateAssn(art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
Create a 1 to 1 association between a new product and one already in the event.
WCVertex(fhicl::ParameterSet const &pset)
std::string fSliceLabel
Where to get slices?
void produce(art::Event &evt)
DEFINE_ART_MODULE(TestTMapFile)
std::string fVertexLabel
Vertex to grab.
ProductID put(std::unique_ptr< PROD > &&product)
Encapsulate the geometry of one entire detector (near, far, ndos)
Collect Geo headers and supply basic geometry functions.
Vertex location in position and time.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Encapsulate the geometry of one entire detector (near, far, ndos)