DUNEAnaTrackUtils class.
More...
#include <DUNEAnaTrackUtils.h>
|
static std::vector< art::Ptr< recob::Hit > > | GetHits (const art::Ptr< recob::Track > &pTrack, const art::Event &evt, const std::string &label) |
| Get the hits associated with the track. More...
|
|
static std::vector< art::Ptr< recob::SpacePoint > > | GetSpacePoints (const art::Ptr< recob::Track > &pTrack, const art::Event &evt, const std::string &label) |
| Get the spacepoints associated with the track. More...
|
|
static art::Ptr< recob::PFParticle > | GetPFParticle (const art::Ptr< recob::Track > &pTrack, const art::Event &evt, const std::string &label) |
| Get the particle associated with the track. More...
|
|
static art::Ptr< anab::Calorimetry > | GetCalorimetry (const art::Ptr< recob::Track > &pTrack, const art::Event &evt, const std::string &trackLabel, const std::string &caloLabel) |
| Get the particle associated with the track. More...
|
|
static art::Ptr< ctp::CTPResult > | GetSquIDResult (const art::Ptr< recob::Track > &pTrack, const art::Event &evt, const std::string &trackLabel, const std::string &squidLabel) |
| Get the SquID track PID associated with the track. More...
|
|
Get the particle associated with the track.
- Parameters
-
track | is the track for which we want the particle |
evt | is the underlying art event |
trackLabel | is the label for the track producer |
caloLabel | is the label for the calorimetry producer |
- Returns
- art::Ptr to the calorimetry object
Definition at line 45 of file DUNEAnaTrackUtils.cxx.
47 std::vector<art::Ptr<anab::Calorimetry>> calos = DUNEAnaTrackUtils::GetAssocProductVector<anab::Calorimetry>(pTrack,
evt,trackLabel,caloLabel);
51 if (caloObject->PlaneID().Plane ==
geo::kW)
return caloObject;
55 mf::LogError(
"DUNEAna") <<
"DUNEAnaTrackUtils::GetCalorimetry - no collection view calorimetry found. Returning first alternate view." <<
std::endl;
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
Planes which measure W (third view for Bo, MicroBooNE, etc).
QTextStream & endl(QTextStream &s)
Get the hits associated with the track.
- Parameters
-
track | is the track for which we want the hits |
evt | is the underlying art event |
label | is the label for the track producer |
- Returns
- vector of art::Ptrs to the hits
Definition at line 24 of file DUNEAnaTrackUtils.cxx.
26 return DUNEAnaTrackUtils::GetAssocProductVector<recob::Hit>(pTrack,
evt,
label,
label);
Get the particle associated with the track.
- Parameters
-
track | is the track for which we want the particle |
evt | is the underlying art event |
label | is the label for the track producer |
- Returns
- art::Ptr to the particle
Definition at line 38 of file DUNEAnaTrackUtils.cxx.
40 return DUNEAnaTrackUtils::GetAssocProduct<recob::PFParticle>(pTrack,
evt,
label,
label);
Get the spacepoints associated with the track.
- Parameters
-
track | is the track for which we want the spacepoints |
evt | is the underlying art event |
label | is the label for the track producer |
- Returns
- vector of art::Ptrs to the spacepoints
Definition at line 31 of file DUNEAnaTrackUtils.cxx.
33 return DUNEAnaTrackUtils::GetAssocProductVector<recob::SpacePoint>(pTrack,
evt,
label,
label);
Get the SquID track PID associated with the track.
- Parameters
-
track | is the track for which we want the particle |
evt | is the underlying art event |
trackLabel | is the label for the track producer |
caloLabel | is the label for the SquiID track PID producer |
- Returns
- art::Ptr to the SquID PID result
Definition at line 62 of file DUNEAnaTrackUtils.cxx.
64 return DUNEAnaTrackUtils::GetAssocProduct<ctp::CTPResult>(pTrack,
evt,trackLabel,squidLabel);
The documentation for this class was generated from the following files: