13 #include "cetlib_except/exception.h" 52 double highestPID = -2.0;
59 for(
size_t c = 0;
c < sliceTracks.size(); ++
c){
66 if(tracksToBPFPId.isValid()){
67 std::vector<art::Ptr<bpfit::BPFPId > > trackBPFPId = tracksToBPFPId.at(
c);
69 if(trackBPFPId.size() == 0)
continue;
70 if(trackBPFPId.at(0)->Pdg() !=
pdg)
continue;
71 if(trackBPFPId.at(0)->Value() > highestPID){
73 highestPID = trackBPFPId.at(0)->Value();
90 return (
unsigned int)bestTrack;
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
void SetdEdXLL(double dEdXLL)
void SetHitRatio(double hitRatio)
void SetLength(double length)
void SetChi2T(double chi2T)
unsigned int HighestPIDTrack(const std::vector< art::Ptr< rb::Track > > &sliceTracks, const std::string &bpfpidModuleLabel, const int &pdg, const art::Event &e)
Perform a "2 point" Hough transform on a collection of hits.
void SetDefaults()
Set fLength, fChi2T, fdEdXLL and fHitRatio to default values.