21 class PrintCalorimetry;
55 std::vector<art::FindManyP<anab::Calorimetry>> caloAssnVector;
60 for (
size_t i_trk = 0; i_trk < trackHandle->size(); i_trk++) {
61 std::cout <<
"(Run,Event,Track) = (" << e.
run() <<
"," << e.
event() <<
"," << i_trk <<
")" 63 std::cout <<
"-------------------" << std::endl;
65 for (
size_t i_cm = 0; i_cm < caloAssnVector.size(); i_cm++) {
66 std::cout <<
"Calorimetry module " << i_cm << std::endl;
67 for (
auto const& caloptr : caloAssnVector[i_cm].at(i_trk))
68 std::cout << *caloptr << std::endl;
EDAnalyzer(fhicl::ParameterSet const &pset)
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.
EventNumber_t event() const
void analyze(art::Event const &e) override
PrintCalorimetry(fhicl::ParameterSet const &p)
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::vector< std::string > fCaloModuleLabels
PrintCalorimetry & operator=(PrintCalorimetry const &)=delete