25 class PrintCalorimetry;
66 std::vector< art::FindManyP<anab::Calorimetry> > caloAssnVector;
71 for(
size_t i_trk=0; i_trk<trackHandle->size(); i_trk++){
72 std::cout <<
"(Run,Event,Track) = (" << e.
run() <<
"," << e.
event() <<
"," << i_trk <<
")" << std::endl;
73 std::cout <<
"-------------------" << std::endl;
75 for(
size_t i_cm=0; i_cm<caloAssnVector.size(); i_cm++){
76 std::cout <<
"Calorimetry module " << i_cm << std::endl;
77 for(
auto const& caloptr : caloAssnVector[i_cm].at(i_trk))
78 std::cout << *caloptr << std::endl;
std::string fTrackModuleLabel
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
#define DEFINE_ART_MODULE(klass)
Provides recob::Track data product.
T get(std::string const &key) const
EventNumber_t event() const
EDAnalyzer(Table< Config > const &config)
void analyze(art::Event const &e) override
void reconfigure(fhicl::ParameterSet const &p)
PrintCalorimetry(fhicl::ParameterSet const &p)
std::vector< std::string > fCaloModuleLabels
PrintCalorimetry & operator=(PrintCalorimetry const &)=delete
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const