#include <ProtoDUNETrackUtils.h>
Public Member Functions | |
ProtoDUNETrackUtils () | |
~ProtoDUNETrackUtils () | |
std::vector< anab::CosmicTag > | GetRecoTrackCosmicTag (const recob::Track &track, art::Event const &evt, std::string trackModule) const |
Get the cosmic tag(s) from a given reco track. More... | |
std::vector< anab::T0 > | GetRecoTrackT0 (const recob::Track &track, art::Event const &evt, std::string trackModule) const |
Get the T0(s) from a given reco track. More... | |
std::vector< anab::Calorimetry > | GetRecoTrackCalorimetry (const recob::Track &track, art::Event const &evt, const std::string trackModule, const std::string caloModule) const |
Get the Calorimetry(s) from a given reco track. More... | |
std::vector< float > | CalibrateCalorimetry (const recob::Track &track, art::Event const &evt, const std::string trackModule, const std::string caloModule, const fhicl::ParameterSet &ps) |
Calibrate a Calorimetry object for a given plane from a given track. More... | |
float | calc_dEdX (double, double, double, double, double, double) |
const std::vector< const recob::Hit * > | GetRecoTrackHits (const recob::Track &track, art::Event const &evt, const std::string trackModule) const |
Get the hits from a given reco track. More... | |
const std::vector< const recob::Hit * > | GetRecoTrackHitsFromPlane (const recob::Track &track, art::Event const &evt, const std::string trackModule, unsigned int planeID) const |
Get the hits from a given reco track from a specific plane. More... | |
unsigned int | GetNumberRecoTrackHits (const recob::Track &track, art::Event const &evt, const std::string trackModule) const |
Get the number of hits from a given reco track. More... | |
std::vector< anab::ParticleID > | GetRecoTrackPID (const recob::Track &track, art::Event const &evt, const std::string trackModule, const std::string pidModule) const |
Get the PID from a given track. More... | |
BrokenTrack | IsBrokenTrack (const recob::Track &track, art::Event const &evt, const std::string trackModule, const std::string caloModule, const fhicl::ParameterSet &BrokenTrackPars, const fhicl::ParameterSet &CalorimetryPars) |
Try to determine if it's a broken track. More... | |
std::pair< double, int > | Chi2PIDFromTrack_MC (const recob::Track &track, art::Event const &evt, const std::string trackModule, const std::string caloModule, TProfile *profile) |
Until we have fully calibrated calorimetry, use this PID algo. More... | |
std::pair< double, int > | Chi2PID (const std::vector< double > &track_dedx, const std::vector< double > &range, TProfile *profile) |
std::map< size_t, const recob::Hit * > | GetRecoHitsFromTrajPoints (const recob::Track &track, art::Event const &evt, std::string trackModule) |
bool | IsBeamlike (const recob::Track &track, art::Event const &evt, const fhicl::ParameterSet &BeamPars, bool flip=false) |
std::pair< double, int > | GetVertexMichelScore (const recob::Track &track, const art::Event &evt, const std::string trackModule, const std::string hitModule, double min_length=5., double min_x=-200., double max_x=0., double min_y=200., double max_y=500., double min_z=25., bool check_wire=true, double check_x=0, double check_y=0., double check_z=0.) |
std::pair< double, double > | GetVertexMichelScore_weight_by_charge (const recob::Track &track, const art::Event &evt, const std::string trackModule, const std::string hitModule, double min_length=5., double min_x=-200., double max_x=0., double min_y=200., double max_y=500., double min_z=25., bool check_wire=true, double check_x=0, double check_y=0., double check_z=0.) |
std::pair< double, int > | GetVertexMichelScoreAlt (const recob::Track &track, const art::Event &evt, const std::string trackModule, const std::string hitModule, double min_length=5., double min_x=-200., double max_x=0., double min_y=200., double max_y=500., double min_z=25., bool check_wire=true, double check_x=0, double check_y=0., double check_z=0.) |
Definition at line 36 of file ProtoDUNETrackUtils.h.
protoana::ProtoDUNETrackUtils::ProtoDUNETrackUtils | ( | ) |
Definition at line 18 of file ProtoDUNETrackUtils.cxx.
protoana::ProtoDUNETrackUtils::~ProtoDUNETrackUtils | ( | ) |
Definition at line 22 of file ProtoDUNETrackUtils.cxx.
float protoana::ProtoDUNETrackUtils::calc_dEdX | ( | double | dqdx, |
double | betap, | ||
double | Rho, | ||
double | Efield, | ||
double | Wion, | ||
double | alpha | ||
) |
Definition at line 210 of file ProtoDUNETrackUtils.cxx.
std::vector< float > protoana::ProtoDUNETrackUtils::CalibrateCalorimetry | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule, | ||
const std::string | caloModule, | ||
const fhicl::ParameterSet & | ps | ||
) |
Calibrate a Calorimetry object for a given plane from a given track.
Definition at line 135 of file ProtoDUNETrackUtils.cxx.
std::pair< double, int > protoana::ProtoDUNETrackUtils::Chi2PID | ( | const std::vector< double > & | track_dedx, |
const std::vector< double > & | range, | ||
TProfile * | profile | ||
) |
Definition at line 422 of file ProtoDUNETrackUtils.cxx.
std::pair< double, int > protoana::ProtoDUNETrackUtils::Chi2PIDFromTrack_MC | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule, | ||
const std::string | caloModule, | ||
TProfile * | profile | ||
) |
Until we have fully calibrated calorimetry, use this PID algo.
Definition at line 408 of file ProtoDUNETrackUtils.cxx.
unsigned int protoana::ProtoDUNETrackUtils::GetNumberRecoTrackHits | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule | ||
) | const |
Get the number of hits from a given reco track.
Definition at line 216 of file ProtoDUNETrackUtils.cxx.
std::map< size_t, const recob::Hit * > protoana::ProtoDUNETrackUtils::GetRecoHitsFromTrajPoints | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
std::string | trackModule | ||
) |
Definition at line 471 of file ProtoDUNETrackUtils.cxx.
std::vector< anab::Calorimetry > protoana::ProtoDUNETrackUtils::GetRecoTrackCalorimetry | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule, | ||
const std::string | caloModule | ||
) | const |
Get the Calorimetry(s) from a given reco track.
Definition at line 72 of file ProtoDUNETrackUtils.cxx.
std::vector< anab::CosmicTag > protoana::ProtoDUNETrackUtils::GetRecoTrackCosmicTag | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
std::string | trackModule | ||
) | const |
Get the cosmic tag(s) from a given reco track.
Definition at line 26 of file ProtoDUNETrackUtils.cxx.
const std::vector< const recob::Hit * > protoana::ProtoDUNETrackUtils::GetRecoTrackHits | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule | ||
) | const |
const std::vector< const recob::Hit * > protoana::ProtoDUNETrackUtils::GetRecoTrackHitsFromPlane | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule, | ||
unsigned int | planeID | ||
) | const |
Get the hits from a given reco track from a specific plane.
Definition at line 111 of file ProtoDUNETrackUtils.cxx.
std::vector< anab::ParticleID > protoana::ProtoDUNETrackUtils::GetRecoTrackPID | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule, | ||
const std::string | pidModule | ||
) | const |
Get the PID from a given track.
Definition at line 223 of file ProtoDUNETrackUtils.cxx.
std::vector< anab::T0 > protoana::ProtoDUNETrackUtils::GetRecoTrackT0 | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
std::string | trackModule | ||
) | const |
std::pair< double, int > protoana::ProtoDUNETrackUtils::GetVertexMichelScore | ( | const recob::Track & | track, |
const art::Event & | evt, | ||
const std::string | trackModule, | ||
const std::string | hitModule, | ||
double | min_length = 5. , |
||
double | min_x = -200. , |
||
double | max_x = 0. , |
||
double | min_y = 200. , |
||
double | max_y = 500. , |
||
double | min_z = 25. , |
||
bool | check_wire = true , |
||
double | check_x = 0 , |
||
double | check_y = 0. , |
||
double | check_z = 0. |
||
) |
Definition at line 651 of file ProtoDUNETrackUtils.cxx.
std::pair< double, double > protoana::ProtoDUNETrackUtils::GetVertexMichelScore_weight_by_charge | ( | const recob::Track & | track, |
const art::Event & | evt, | ||
const std::string | trackModule, | ||
const std::string | hitModule, | ||
double | min_length = 5. , |
||
double | min_x = -200. , |
||
double | max_x = 0. , |
||
double | min_y = 200. , |
||
double | max_y = 500. , |
||
double | min_z = 25. , |
||
bool | check_wire = true , |
||
double | check_x = 0 , |
||
double | check_y = 0. , |
||
double | check_z = 0. |
||
) |
Definition at line 776 of file ProtoDUNETrackUtils.cxx.
std::pair< double, int > protoana::ProtoDUNETrackUtils::GetVertexMichelScoreAlt | ( | const recob::Track & | track, |
const art::Event & | evt, | ||
const std::string | trackModule, | ||
const std::string | hitModule, | ||
double | min_length = 5. , |
||
double | min_x = -200. , |
||
double | max_x = 0. , |
||
double | min_y = 200. , |
||
double | max_y = 500. , |
||
double | min_z = 25. , |
||
bool | check_wire = true , |
||
double | check_x = 0 , |
||
double | check_y = 0. , |
||
double | check_z = 0. |
||
) |
Definition at line 902 of file ProtoDUNETrackUtils.cxx.
bool protoana::ProtoDUNETrackUtils::IsBeamlike | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const fhicl::ParameterSet & | BeamPars, | ||
bool | flip = false |
||
) |
Definition at line 536 of file ProtoDUNETrackUtils.cxx.
protoana::BrokenTrack protoana::ProtoDUNETrackUtils::IsBrokenTrack | ( | const recob::Track & | track, |
art::Event const & | evt, | ||
const std::string | trackModule, | ||
const std::string | caloModule, | ||
const fhicl::ParameterSet & | BrokenTrackPars, | ||
const fhicl::ParameterSet & | CalorimetryPars | ||
) |
Try to determine if it's a broken track.
Definition at line 244 of file ProtoDUNETrackUtils.cxx.