18 #include "canvas/Persistency/Common/FindManyP.h" 28 class FindManySpeedTestAnalyzer;
63 std::cout <<
"Hit collection size: " << hH->size() <<
".\n";
65 std::cout <<
"Track collection size: " << hT->size() <<
".\n";
67 std::cout <<
"Assns size = " << hA->
size() <<
".\n";
75 assert(tPtrs.size() == hT->size());
80 art::FindManyP<Hit> fmp(tPtrs, e, producerLabel_);
82 std::cout <<
"FindManyP size = " << fmp.size() <<
".\n";
83 std::cout <<
"FindManyP construction time (CPU, real): (" << timer.cpuTime()
84 <<
", " << timer.realTime() <<
") s.\n";
86 for (
size_t i = 0, e = fmp.size();
i !=
e; ++
i) {
87 std::cout <<
"Track # " <<
i <<
" has " << fmp.at(
i).size()
88 <<
" associated hits.\n";
std::string const producerLabel_
EDAnalyzer(fhicl::ParameterSet const &pset)
void fill(PtrVector< T > &pv) const
#define DEFINE_ART_MODULE(klass)
FindManySpeedTestAnalyzer & operator=(FindManySpeedTestAnalyzer const &)=delete
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
FindManySpeedTestAnalyzer(fhicl::ParameterSet const &p)
std::size_t getView(std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, std::vector< ELEMENT const * > &result) const
auto const & get(AssnsNode< L, R, D > const &r)
void analyze(art::Event const &e) override