#include <MCMatchAlg.h>
Public Member Functions | |
MCMatchAlg () | |
Default constructor. More... | |
virtual | ~MCMatchAlg () |
Default destructor. More... | |
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. More... | |
bool | BuildMap (detinfo::DetectorClocksData const &clockData, const std::vector< 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. More... | |
const std::vector< int > & | BestClusters (const size_t mcshower_index) const |
double | ClusterCorrectness (const size_t cluster_index, const size_t mcshower_index) const |
std::pair< size_t, double > | ShowerCorrectness (const std::vector< unsigned int > cluster_indices) const |
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. More... | |
std::pair< double, double > | BestClusterEP (const size_t mcshower_index, const size_t plane_id) const |
const MCBTAlg & | BTAlg () const |
BTAlgo getter. More... | |
Protected Member Functions | |
bool | BuildMap (detinfo::DetectorClocksData const &clockData, const std::vector< std::vector< art::Ptr< recob::Hit >>> &cluster_v) |
Protected Attributes | |
MCBTAlg | fBTAlgo |
MCBTAlg instance. More... | |
std::vector< size_t > | _view_to_plane |
std::vector< std::vector< double > > | _summed_mcq |
std::vector< std::vector< double > > | _cluster_mcq_v |
std::vector< unsigned char > | _cluster_plane_id |
std::vector< std::vector< int > > | _bmatch_id |
User defined class MCMatchAlg ... these comments are used to generate doxygen documentation!
Definition at line 36 of file MCMatchAlg.h.
btutil::MCMatchAlg::MCMatchAlg | ( | ) |
|
inlinevirtual |
std::pair< double, double > btutil::MCMatchAlg::BestClusterEP | ( | const size_t | mcshower_index, |
const size_t | plane_id | ||
) | const |
For a specified MC object, compute the best-matched cluster's efficiency and purity from the specified plane ID. Internally this function calls BestClusters() to find the best cluster on each plane, then calls ClusterEP() to retrieve the efficiency and purity.
Definition at line 234 of file MCMatchAlg.cxx.
const std::vector< int > & btutil::MCMatchAlg::BestClusters | ( | const size_t | mcshower_index | ) | const |
For a specified MC object (via index in MCShower/MCTrack), returns best-matched clusters represented by an index number of clusters. The return vector length is same as
Definition at line 222 of file MCMatchAlg.cxx.
|
inline |
bool btutil::MCMatchAlg::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.
Definition at line 19 of file MCMatchAlg.cxx.
bool btutil::MCMatchAlg::BuildMap | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< 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.
Definition at line 30 of file MCMatchAlg.cxx.
|
protected |
Definition at line 42 of file MCMatchAlg.cxx.
double btutil::MCMatchAlg::ClusterCorrectness | ( | const size_t | cluster_index, |
const size_t | mcshower_index | ||
) | const |
For a specified cluster, compute the correctness for the specified MC object
Definition at line 126 of file MCMatchAlg.cxx.
std::pair< double, double > btutil::MCMatchAlg::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.
Definition at line 191 of file MCMatchAlg.cxx.
std::pair< size_t, double > btutil::MCMatchAlg::ShowerCorrectness | ( | const std::vector< unsigned int > | cluster_indices | ) | const |
Similar to ClusterCorrectness() function except this one computes the correctness for multiple clusters. It is meant to compute the correctness for a cluster combination that is matched across plane to represent one 3D reco object. The return is a pair of best-matched MC object and correctness.
Definition at line 150 of file MCMatchAlg.cxx.
|
protected |
Definition at line 111 of file MCMatchAlg.h.
|
protected |
Definition at line 108 of file MCMatchAlg.h.
|
protected |
Definition at line 110 of file MCMatchAlg.h.
|
protected |
Definition at line 107 of file MCMatchAlg.h.
|
protected |
Definition at line 105 of file MCMatchAlg.h.
|
protected |
MCBTAlg instance.
Definition at line 103 of file MCMatchAlg.h.