158 std::cout <<
" *** PFParticleTrackAna::analyze(...) *** " << std::endl;
180 std::cout <<
" Run: " <<
m_run << std::endl;
181 std::cout <<
" Event: " <<
m_event << std::endl;
187 std::cout <<
" Tracks: " << trackVector.size() << std::endl;
190 auto const* theDetector = lar::providerFrom<detinfo::DetectorPropertiesService>();
195 const double adc2eU(5.1
e-3);
196 const double adc2eV(5.2
e-3);
197 const double adc2eW(5.4
e-3);
198 const double adc2eCheat(theDetector->ElectronsToADC());
200 const double tau(theDetector->ElectronLifetime());
226 TVector3 pos(0.0, 0.0, 0.0);
227 TVector3
dir(0.0, 0.0, 0.0);
251 m_dNdx = ((
m_dQdx / adc2e) * exp((
m_x / theDetector->GetXTicksCoefficient()) * theDetector->SamplingRate() * 1.e-3 / tau));
void TrajectoryAtPoint(unsigned int p, TVector3 &pos, TVector3 &dir) const
Covariance matrices are either set or not.
PFParticleTrackAna class.
virtual ~PFParticleTrackAna()
Destructor.
const double & DQdxAtPoint(unsigned int p, geo::View_t view=geo::kUnknown) const
Covariance matrices are either set or not.
size_t NumberTrajectoryPoints() const
Various functions related to the presence and the number of (valid) points.
std::map< art::Ptr< recob::Track >, HitVector > TracksToHits
std::string m_trackModuleLabel
std::vector< art::Ptr< recob::Track > > TrackVector
void reconfigure(fhicl::ParameterSet const &pset)
double Length(size_t p=0) const
Access to various track properties.
#define DEFINE_ART_MODULE(klass)
PFParticleTrackAna(fhicl::ParameterSet const &pset)
Constructor.
T get(std::string const &key) const
EDAnalyzer(Table< Config > const &config)
void analyze(const art::Event &evt)
Provides recob::Track data product.
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.
T * make(ARGS...args) const
EventNumber_t event() const
Planes which measure W (third view for Bo, MicroBooNE, etc).
helper function for LArPandoraInterface producer module
art framework interface to geometry description