37 class TrackCalorimetry;
74 produces< std::vector<anab::Calorimetry> >();
75 produces< art::Assns<recob::Track, anab::Calorimetry> >();
91 std::vector<recob::Track>
const& trackVector(*trackHandle);
96 std::vector<recob::Hit>
const& hitVector(*hitHandle);
101 std::vector< std::vector<size_t> >
106 std::unique_ptr< std::vector<anab::Calorimetry> > caloPtr(
new std::vector<anab::Calorimetry>);
107 std::vector<anab::Calorimetry> & caloVector(*caloPtr);
111 std::vector<size_t> assnTrackCaloVector;
115 hitVector,hit_indices_per_track,
116 caloVector,assnTrackCaloVector,
122 for(
size_t calo_iter=0; calo_iter<assnTrackCaloVector.size(); calo_iter++){
125 util::CreateAssn(*
this, e, caloVector, trk_ptr, *assnTrackCaloPtr, calo_iter);
128 e.
put(std::move(caloPtr));
129 e.
put(std::move(assnTrackCaloPtr));
Utilities to manage ProviderPack objects with art.
ProviderPackFromServices< Services... > extractProviders()
Returns a provider pack with providers from specified services.
std::string fHitModuleLabel
void produce(art::Event &e) override
TrackCalorimetry(fhicl::ParameterSet const &p)
ProductID put(std::unique_ptr< PROD > &&product)
#define DEFINE_ART_MODULE(klass)
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.
The geometry of one entire detector, as served by art.
Utility object to perform functions of association.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
std::vector< std::vector< size_t > > GetAssociatedVectorManyI(art::Handle< art::Assns< T, U > > h, art::Handle< std::vector< T > > index_p)
void reconfigure(fhicl::ParameterSet const &p)
void reconfigure(fhicl::ParameterSet const &p)
TrackCalorimetryAlg fTrackCaloAlg
void ExtractCalorimetry(std::vector< recob::Track > const &, std::vector< recob::Hit > const &, std::vector< std::vector< size_t > > const &, std::vector< anab::Calorimetry > &, std::vector< size_t > &, Providers_t providers)
std::string fTrackModuleLabel
art framework interface to geometry description
TrackCalorimetry & operator=(TrackCalorimetry const &)=delete