83 std::vector<std::vector<float>> netInputs;
87 return std::vector<std::vector<float>>();
96 return std::vector<std::vector<float>>();
99 std::vector<float> dedxVector = thisCalo->
dEdx();
102 float dedxSigma = 0.;
105 std::vector<float> dedxTrunc;
107 unsigned int avStart = dedxVector.size() - 1 - pointsForAverage;
108 unsigned int avEnd = dedxVector.size() - 1 - (2*pointsForAverage);
109 for(
unsigned int e = avStart;
e > avEnd; --
e) dedxTrunc.push_back(dedxVector.at(
e));
117 std::vector<float> finalInputDedx;
118 finalInputDedx.insert(finalInputDedx.begin(),dedxVector.end() -
fDedxLength,dedxVector.end());
120 std::vector<float> finalInputVariables;
122 float nTrack, nShower, nGrand;
124 finalInputVariables.push_back(nTrack);
125 finalInputVariables.push_back(nShower);
126 finalInputVariables.push_back(nGrand);
128 finalInputVariables.push_back(dedxMean);
129 finalInputVariables.push_back(dedxSigma);
131 float deflectionMean, deflectionSigma;
133 finalInputVariables.push_back(deflectionMean);
134 finalInputVariables.push_back(deflectionSigma);
136 netInputs.push_back(finalInputDedx);
137 netInputs.push_back(finalInputVariables);
static art::Ptr< recob::Track > GetTrack(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel, const std::string &trackLabel)
Get the track associated to this particle. Should only be called if IsTrack method succeeds...
void NormaliseInputs(std::vector< std::vector< float >> &netInputs) const
void SmoothDedxVector(std::vector< float > &dedx) const
void GetDeflectionMeanAndSigma(const art::Ptr< recob::Track > track, float &mean, float &sigma) const
void GetDedxMeanAndSigma(const std::vector< float > &dedx, float &mean, float &sigma) const
const std::vector< float > & dEdx() const
unsigned int fMinTrackPoints
std::string fParticleLabel
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.
static bool IsTrack(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel, const std::string &trackLabel)
Check if this particle has an associated track.
std::string fCalorimetryLabel
void GetChildParticles(const art::Ptr< recob::PFParticle > part, const art::Event &evt, float &nTrack, float &nShower, float &nGrand) const
void PadDedxVector(std::vector< float > &dedx, const float mean, const float sigma) const