12 namespace art {
class Event; }
13 #include "canvas/Persistency/Common/Assns.h"
14 #include "canvas/Persistency/Common/Ptr.h"
15 namespace fhicl {
class ParameterSet; }
22 class DetectorClocksData;
23 class DetectorPropertiesData;
31 #include "Math/Vector3Dfwd.h"
32 #include "TLorentzVector.h"
34 #include "TMVA/Reader.h"
45 std::map<double, const art::Ptr<recob::Hit>>
hitMap;
59 ROOT::Math::XYZVector x0(p[0], p[2], p[4]);
60 ROOT::Math::XYZVector u(p[1], p[3], p[5]);
66 int npoints =
fGraph->GetN();
68 for (
int i = 0; i < npoints; ++i) {
69 ROOT::Math::XYZVector xp(x[i], y[i], z[i]);
70 sum += ((xp - x0).Cross(u)).Mag2();
76 MVAAlg(fhicl::ParameterSet
const& pset);
83 std::vector<anab::MVAPIDResult>& result,
84 art::Assns<recob::Track, anab::MVAPIDResult, void>& trackAssns,
85 art::Assns<recob::Shower, anab::MVAPIDResult, void>& showerAssns);
101 std::vector<double>& eVals,
102 std::vector<double>& eVecs);
105 double& coreHaloRatio,
106 double& concentration,
107 double& conicalness);
111 const SortedObj&
track,
117 const SortedObj&
track,
126 int LinFit(
const art::Ptr<recob::Track>
track, TVector3& trackPoint, TVector3& trackDir);
129 TVector3& showerPoint,
130 TVector3& showerDir);
150 std::vector<art::Ptr<recob::Hit>>
fHits;
152 std::map<art::Ptr<recob::Track>, std::vector<art::Ptr<recob::Hit>>>
fTracksToHits;
154 std::map<art::Ptr<recob::Shower>, std::vector<art::Ptr<recob::Hit>>>
fShowersToHits;
155 std::map<art::Ptr<recob::Shower>, std::vector<art::Ptr<recob::SpacePoint>>>
175 #endif // ifndef MVAAlg_H
std::vector< art::Ptr< recob::Shower > > fShowers
process_name opflash particleana ie ie ie z
anab::MVAPIDResult fResHolder
double CalcSegmentdEdxDistAtEnd(const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const mvapid::MVAAlg::SortedObj &track, double distAtEnd)
const calo::CalorimetryAlg fCaloAlg
int LinFit(const art::Ptr< recob::Track > track, TVector3 &trackPoint, TVector3 &trackDir)
void RunPCA(std::vector< art::Ptr< recob::Hit >> &hits, std::vector< double > &eVals, std::vector< double > &eVecs)
SumDistance2(TGraph2D *g)
double operator()(const double *p)
process_name opflash particleana ie x
std::map< art::Ptr< recob::Hit >, art::Ptr< recob::SpacePoint > > fHitsToSpacePoints
std::vector< std::string > fMVAMethods
int IsInActiveVol(const TVector3 &pos)
std::map< art::Ptr< recob::Track >, std::vector< art::Ptr< recob::Hit > > > fTracksToHits
process_name use argoneut_mc_hitfinder track
std::string fSpacePointLabel
void PrepareEvent(const art::Event &event, const detinfo::DetectorClocksData &clockData)
MVAAlg(fhicl::ParameterSet const &pset)
void RunPID(art::Event &evt, std::vector< anab::MVAPIDResult > &result, art::Assns< recob::Track, anab::MVAPIDResult, void > &trackAssns, art::Assns< recob::Shower, anab::MVAPIDResult, void > &showerAssns)
std::vector< art::Ptr< recob::Hit > > fHits
int LinFitShower(const art::Ptr< recob::Shower > shower, TVector3 &showerPoint, TVector3 &showerDir)
void SortShower(art::Ptr< recob::Shower > shower, int &isStoppingReco, mvapid::MVAAlg::SortedObj &sortedShower)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
process_name opflash particleana ie ie y
std::map< double, const art::Ptr< recob::Hit > > hitMap
std::map< int, double > fNormToWiresY
std::vector< art::Ptr< recob::SpacePoint > > fSpacePoints
auto end(FixedBins< T, C > const &) noexcept
TLorentzVector fVertex4Vect
std::map< art::Ptr< recob::Shower >, std::vector< art::Ptr< recob::Hit > > > fShowersToHits
std::string fTrackingLabel
double CalcSegmentdEdxFrac(const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const SortedObj &track, double start, double end)
Contains all timing reference information for the detector.
std::map< art::Ptr< recob::Track >, std::vector< art::Ptr< recob::SpacePoint > > > fTracksToSpacePoints
void _Var_Shape(const SortedObj &track, double &coreHaloRatio, double &concentration, double &conicalness)
std::vector< art::Ptr< recob::Track > > fTracks
std::map< art::Ptr< recob::Shower >, std::vector< art::Ptr< recob::SpacePoint > > > fShowersToSpacePoints
std::map< art::Ptr< recob::SpacePoint >, art::Ptr< recob::Hit > > fSpacePointsToHits
void FitAndSortTrack(art::Ptr< recob::Track > track, int &isStoppingReco, SortedObj &sortedObj)
std::map< int, double > fNormToWiresZ
double CalcSegmentdEdxDist(const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const SortedObj &track, double start, double end)
std::vector< std::string > fWeightFiles