Provides efficient lookup of CellHits by plane and cell number. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-03-08/RecoBase/HitMap.h"
Public Member Functions | |
HitMap () | |
HitMap (const art::PtrVector< rb::CellHit > &chits) | |
HitMap (const rb::Cluster *clust) | |
~HitMap () | |
void | Add (const art::Ptr< rb::CellHit > &chit) |
void | Add (const art::PtrVector< rb::CellHit > &chits) |
void | Add (const rb::Cluster *clust) |
Add all the hits in a cluster, or derived class. More... | |
void | Remove (unsigned int planeIdx, unsigned int cellIdx) |
void | Clear () |
bool | CellExists (unsigned int planeIdx, unsigned int cellIdx) const |
Does the map contain any cell at this position? More... | |
art::Ptr< rb::CellHit > | Cell (unsigned int planeIdx, unsigned int cellIdx) const |
Return the cell at this position. Empty pointer if no match. More... | |
art::Ptr< rb::CellHit > | operator() (unsigned int planeIdx, unsigned int cellIdx) const |
Syntactic sugar for Cell. More... | |
Protected Attributes | |
std::map< geo::OfflineChan, art::Ptr< rb::CellHit > > | fMap |
Provides efficient lookup of CellHits by plane and cell number.
rb::HitMap::HitMap | ( | ) |
Definition at line 15 of file HitMap.cxx.
rb::HitMap::HitMap | ( | const art::PtrVector< rb::CellHit > & | chits | ) |
rb::HitMap::HitMap | ( | const rb::Cluster * | clust | ) |
rb::HitMap::~HitMap | ( | ) |
Definition at line 32 of file HitMap.cxx.
void rb::HitMap::Add | ( | const art::Ptr< rb::CellHit > & | chit | ) |
Definition at line 37 of file HitMap.cxx.
References rb::CellHit::Cell(), febshutoff_auto::chan, fMap, it, make_pair(), rb::CellHit::PE(), and rb::CellHit::Plane().
Referenced by Add(), dt::Chain::AllHits(), align::Alignment::analyze(), HitMap(), and dt::ViewMerger::MaybeExtendToVertex().
void rb::HitMap::Add | ( | const art::PtrVector< rb::CellHit > & | chits | ) |
Definition at line 60 of file HitMap.cxx.
References Add(), getGoodRuns4SAM::n, and art::PtrVector< T >::size().
void rb::HitMap::Add | ( | const rb::Cluster * | clust | ) |
Add all the hits in a cluster, or derived class.
Definition at line 67 of file HitMap.cxx.
References Add(), rb::Cluster::Cell(), compare_h5_caf::idx, and rb::Cluster::NCell().
art::Ptr< rb::CellHit > rb::HitMap::Cell | ( | unsigned int | planeIdx, |
unsigned int | cellIdx | ||
) | const |
Return the cell at this position. Empty pointer if no match.
Definition at line 88 of file HitMap.cxx.
Referenced by Clear(), and operator()().
Does the map contain any cell at this position?
Definition at line 81 of file HitMap.cxx.
References fMap.
Referenced by dt::Chain::AllHits(), align::Alignment::analyze(), Clear(), dt::ViewMerger::CountUnexplainedOnLine(), chaninfo::FindSwappedChannels::fill_hist_and_tree(), and dt::DiscreteTracker::MergeParasiteTracks().
|
inline |
art::Ptr< rb::CellHit > rb::HitMap::operator() | ( | unsigned int | planeIdx, |
unsigned int | cellIdx | ||
) | const |
Syntactic sugar for Cell.
Definition at line 100 of file HitMap.cxx.
References Cell().
Referenced by Clear().
|
protected |