void ClusteringValidation::ClusterCounter::AddHitPreClustering |
( |
TrackID |
id | ) |
|
void ClusteringValidation::ClusterCounter::AddNoiseHitPostClustering |
( |
ClusterID |
id | ) |
|
void ClusteringValidation::ClusterCounter::AddSignalHitPostClustering |
( |
ClusterID |
id | ) |
|
void ClusteringValidation::ClusterCounter::AssociateClusterAndTrack |
( |
ClusterID |
clusID, |
|
|
TrackID |
trackID |
|
) |
| |
double ClusteringValidation::ClusterCounter::GetCleanliness |
( |
ClusterID |
id | ) |
|
double ClusteringValidation::ClusterCounter::GetCompleteness |
( |
ClusterID |
id | ) |
|
Definition at line 118 of file ClusteringValidation_module.cc.
std::map< TrackID, int > numHitsPreClustering
std::map< ClusterID, int > numSignalHitsPostClustering
std::map< ClusterID, TrackID > clusterToTrackID
double ClusteringValidation::ClusterCounter::GetEfficiency |
( |
TrackID |
id | ) |
|
ClusterIDs ClusteringValidation::ClusterCounter::GetListOfClusterIDs |
( |
| ) |
|
Definition at line 152 of file ClusteringValidation_module.cc.
158 v.push_back(i->first);
std::vector< ClusterID > ClusterIDs
std::map< ClusterID, TrackID > clusterToTrackID
TrackIDs ClusteringValidation::ClusterCounter::GetListOfTrackIDs |
( |
| ) |
|
Definition at line 162 of file ClusteringValidation_module.cc.
168 v.push_back(i->first);
std::vector< TrackID > TrackIDs
std::map< TrackID, ClusterIDs > trackToClusterIDs
int ClusteringValidation::ClusterCounter::GetNumberHitsFromTrack |
( |
TrackID |
id | ) |
|
int ClusteringValidation::ClusterCounter::GetNumberHitsInCluster |
( |
ClusterID |
id | ) |
|
Definition at line 139 of file ClusteringValidation_module.cc.
std::map< ClusterID, int > numNoiseHitsPostClustering
std::map< ClusterID, int > numSignalHitsPostClustering
int ClusteringValidation::ClusterCounter::GetNumberHitsInPlane |
( |
| ) |
|
std::vector< std::pair< TrackID, ClusterIDs > > ClusteringValidation::ClusterCounter::GetPhotons |
( |
| ) |
|
Definition at line 172 of file ClusteringValidation_module.cc.
References track.
174 std::vector<std::pair<TrackID, ClusterIDs>> photonVector;
178 photonVector.push_back(std::pair<TrackID, ClusterIDs>(
bool IsNoise(ClusterID id)
const simb::MCParticle * TrackIdToParticle_P(int id) const
std::map< TrackID, ClusterIDs > trackToClusterIDs
TrackIDs GetListOfTrackIDs()
art::ServiceHandle< cheat::ParticleInventoryService > pi_serv
bool ClusteringValidation::ClusterCounter::IsNoise |
( |
ClusterID |
id | ) |
|
bool ClusteringValidation::ClusterCounter::IsNoise |
( |
TrackID |
id | ) |
|
bool ClusteringValidation::ClusterCounter::PassesCut |
( |
| ) |
|
Definition at line 198 of file ClusteringValidation_module.cc.
References util::size().
202 for (
unsigned int photon = 0; photon <
GetPhotons().size(); ++photon)
205 goodPhotons.push_back(
GetPhotons().at(photon).first);
207 (
GetPhotons().size() == 1 && goodPhotons.size() > 1))
208 std::cout <<
"More than 2 with >50%?!" << std::endl;
209 bool pass = ((
GetPhotons().size() == 2 && goodPhotons.size() == 2) ||
210 (
GetPhotons().size() == 1 && goodPhotons.size() == 1));
double GetCompleteness(ClusterID id)
std::vector< TrackID > TrackIDs
Cluster finding and building.
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
std::vector< std::pair< TrackID, ClusterIDs > > GetPhotons()
second_as<> second
Type of time stored in seconds, in double precision.
std::map<ClusterID, TrackID> ClusteringValidation::ClusterCounter::clusterToTrackID |
|
private |
std::map<TrackID, int> ClusteringValidation::ClusterCounter::numHitsPreClustering |
|
private |
std::map<ClusterID, int> ClusteringValidation::ClusterCounter::numNoiseHitsPostClustering |
|
private |
std::map<ClusterID, int> ClusteringValidation::ClusterCounter::numSignalHitsPostClustering |
|
private |
std::map<TrackID, std::map<std::string, double> > ClusteringValidation::ClusterCounter::particleProperties |
|
private |
std::map<TrackID, ClusterIDs> ClusteringValidation::ClusterCounter::trackToClusterIDs |
|
private |
The documentation for this class was generated from the following file: