7 #include "art/Framework/Core/EDAnalyzer.h"
8 #include "art/Framework/Core/ModuleMacros.h"
16 namespace lar_pandora {
76 #include "art/Framework/Principal/Event.h"
77 #include "art/Framework/Principal/Handle.h"
78 #include "art/Framework/Services/Registry/ServiceHandle.h"
79 #include "art_root_io/TFileDirectory.h"
80 #include "art_root_io/TFileService.h"
81 #include "canvas/Persistency/Common/FindManyP.h"
82 #include "canvas/Persistency/Common/FindOneP.h"
83 #include "fhiclcpp/ParameterSet.h"
84 #include "messagefacility/MessageLogger/MessageLogger.h"
95 namespace lar_pandora {
122 art::ServiceHandle<art::TFileService const>
tfs;
124 m_pCaloTree = tfs->make<TTree>(
"calorimetry",
"LAr Track Calo Tree");
155 std::cout <<
" *** PFParticleTrackAna::analyze(...) *** " << std::endl;
184 std::cout <<
" Tracks: " << trackVector.size() << std::endl;
201 for (TrackVector::const_iterator iter = trackVector.begin(), iterEnd = trackVector.end();
204 const art::Ptr<recob::Track>
track = *iter;
222 for (
unsigned int p = 0;
p < track->NumberTrajectoryPoints(); ++
p) {
223 auto pos = track->LocationAtPoint(
p);
224 auto dir = track->DirectionAtPoint(
p);
PFParticleTrackAna class.
virtual ~PFParticleTrackAna()
Destructor.
process_name use argoneut_mc_hitfinder track
std::string m_trackModuleLabel
void reconfigure(fhicl::ParameterSet const &pset)
PFParticleTrackAna(fhicl::ParameterSet const &pset)
Constructor.
std::vector< art::Ptr< recob::Track > > TrackVector
std::map< art::Ptr< recob::Track >, HitVector > TracksToHits
void analyze(const art::Event &evt)
static void CollectTracks(const art::Event &evt, const std::string &label, TrackVector &trackVector, PFParticlesToTracks &particlesToTracks)
Collect the reconstructed PFParticles and associated Tracks from the ART event record.
Provides recob::Track data product.
art::ServiceHandle< art::TFileService > tfs
helper function for LArPandoraInterface producer module
art framework interface to geometry description
BEGIN_PROLOG could also be cout