14 #ifndef RECOTOOL_MCMATCHALG_H
15 #define RECOTOOL_MCMATCHALG_H
17 #include "canvas/Persistency/Common/Ptr.h"
23 class DetectorClocksData;
47 const std::vector<unsigned int>& g4_trackid_v,
48 const std::vector<sim::SimChannel>& simch_v,
53 const std::vector<std::vector<unsigned int>>& g4_trackid_v,
54 const std::vector<sim::SimChannel>& simch_v,
62 const std::vector<int>&
BestClusters(
const size_t mcshower_index)
const;
68 double ClusterCorrectness(
const size_t cluster_index,
const size_t mcshower_index)
const;
77 const std::vector<unsigned int> cluster_indices)
const;
80 std::pair<double, double>
ClusterEP(
const size_t cluster_index,
81 const size_t mcshower_index)
const;
88 std::pair<double, double>
BestClusterEP(
const size_t mcshower_index,
89 const size_t plane_id)
const;
virtual ~MCMatchAlg()
Default destructor.
std::pair< double, double > BestClusterEP(const size_t mcshower_index, const size_t plane_id) const
Declaration of signal hit object.
Class def header for a class MCBTAlg.
const MCBTAlg & BTAlg() const
BTAlgo getter.
bool BuildMap(detinfo::DetectorClocksData const &clockData, const std::vector< unsigned int > &g4_trackid_v, const std::vector< sim::SimChannel > &simch_v, const std::vector< std::vector< art::Ptr< recob::Hit >>> &cluster_v)
Constructs needed information for Reco=>MC matching.
std::vector< std::vector< double > > _summed_mcq
std::vector< unsigned char > _cluster_plane_id
std::vector< std::vector< double > > _cluster_mcq_v
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
double ClusterCorrectness(const size_t cluster_index, const size_t mcshower_index) const
MCBTAlg fBTAlgo
MCBTAlg instance.
std::pair< double, double > ClusterEP(const size_t cluster_index, const size_t mcshower_index) const
For a specified cluster, compute cluster efficiency and purity in terms of specified MC object...
const std::vector< int > & BestClusters(const size_t mcshower_index) const
std::vector< size_t > _view_to_plane
Contains all timing reference information for the detector.
MCMatchAlg()
Default constructor.
object containing MC truth information necessary for making RawDigits and doing back tracking ...
std::pair< size_t, double > ShowerCorrectness(const std::vector< unsigned int > cluster_indices) const
std::vector< std::vector< int > > _bmatch_id