Sequence of contiguous hits and dead cells all on the same plane. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-02-25/DiscreteTracker/Chunk.h"
Public Member Functions | |
Chunk () | |
Chunk (int plane, int cellInLo, int cellInHi, int cellOutLo, int cellOutHi, bool up, art::PtrVector< rb::CellHit > hits) | |
int | Plane () const |
int | EntryHitCell () const |
int | ExitHitCell () const |
int | EntryExtremeCell () const |
int | ExitExtremeCell () const |
int | TopHitCell () const |
int | BottomHitCell () const |
int | TopExtremeCell () const |
int | BottomExtremeCell () const |
bool | Up () const |
void | SetUp (bool up) |
bool | Matches (const Chunk &ch) const |
bool | HasHits () const |
bool | AllDead () const |
art::PtrVector< rb::CellHit > | AllHits () const |
art::PtrVector< rb::CellHit > | HitsOnLine (double grad, double icept) const |
std::pair< Segment, Segment > | GetSegs () const |
bool | IsWorthShowering () const |
bool | IsShowerChunk () const |
void | SetShowerChunk () |
bool | operator< (const Chunk &rhs) const |
Protected Member Functions | |
void | CellPoints (const geo::PlaneGeo *plane, int cell, double &v0, double &v1, double &v2, double &v3, double &z0, double &z1) const |
void | CellMeasurements (geo::View_t view, const geo::CellGeo *cell, double &v0, double &dv, double &z0, double &dz) const |
Protected Attributes | |
int | fPlane |
int | fEntryCellLo |
int | fEntryCellHi |
int | fExitCellLo |
int | fExitCellHi |
bool | fUp |
bool | fShowerChunk |
"Shower chunk" can enter and exit anywhere More... | |
bool | fSegsDirty |
std::pair< Segment, Segment > | fSegs |
art::PtrVector< rb::CellHit > | fHits |
Sequence of contiguous hits and dead cells all on the same plane.
|
inline |
dt::Chunk::Chunk | ( | int | plane, |
int | cellInLo, | ||
int | cellInHi, | ||
int | cellOutLo, | ||
int | cellOutHi, | ||
bool | up, | ||
art::PtrVector< rb::CellHit > | hits | ||
) |
Definition at line 21 of file Chunk.cxx.
References ana::assert().
|
inline |
|
inline |
Definition at line 37 of file Chunk.h.
References fHits, GetSegs(), stan::math::grad(), HitsOnLine(), and IsWorthShowering().
Referenced by dt::DiscreteTracker::BestSeed().
|
inline |
Definition at line 31 of file Chunk.h.
References fEntryCellLo, fExitCellLo, fUp, Matches(), SetUp(), and Up().
Referenced by GetSegs(), and Matches().
|
inline |
Definition at line 29 of file Chunk.h.
References fEntryCellHi, fExitCellHi, and fUp.
Referenced by GetSegs(), Matches(), and dt::Chain::ToTrack().
|
protected |
v0 | cell centre |
v1 | cell half-width |
Definition at line 245 of file Chunk.cxx.
References geo::CellGeo::GetCenter(), geo::CellGeo::HalfD(), geo::CellGeo::HalfW(), and POTSpillRate::view.
Referenced by CellPoints(), and operator<().
|
protected |
v0 | lowest point not in a neighbouring cell |
v1 | lowest point in this cell |
v2 | highest point in this cell |
v3 | highest point not in a neighbouring cell |
Definition at line 203 of file Chunk.cxx.
References geo::PlaneGeo::Cell(), CellMeasurements(), dz, POTSpillRate::view, and geo::PlaneGeo::View().
Referenced by GetSegs(), and operator<().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 102 of file Chunk.cxx.
References BottomExtremeCell(), BottomHitCell(), CellPoints(), art::PtrVector< T >::empty(), fEntryCellHi, fEntryCellLo, fExitCellHi, fExitCellLo, fHits, fPlane, fSegs, fSegsDirty, fShowerChunk, fUp, geom(), geo::GeometryBase::Plane(), NDAPDHVSetting::plane, TopExtremeCell(), and TopHitCell().
Referenced by AllHits(), dt::DiscreteTracker::BestSeed(), dt::Cand::MaybeFlip(), and dt::DiscreteTracker::PossibleNextSegs().
|
inline |
Definition at line 35 of file Chunk.h.
References art::PtrVector< T >::empty(), and fHits.
Referenced by dt::Cand::AddChunk().
art::PtrVector< rb::CellHit > dt::Chunk::HitsOnLine | ( | double | grad, |
double | icept | ||
) | const |
Definition at line 67 of file Chunk.cxx.
References rb::CellHit::Cell(), geo::PlaneGeo::Cell(), dz, fHits, fPlane, geom(), geo::CellGeo::GetCenter(), geo::CellGeo::HalfD(), geo::CellGeo::HalfW(), getGoodRuns4SAM::n, geo::GeometryBase::Plane(), art::PtrVector< T >::push_back(), runNovaSAM::ret, art::PtrVector< T >::size(), std::swap(), and rb::CellHit::View().
Referenced by AllHits().
|
inline |
Definition at line 43 of file Chunk.h.
References fShowerChunk.
Referenced by dt::DiscreteTracker::TryExtendCand().
bool dt::Chunk::IsWorthShowering | ( | ) | const |
Definition at line 194 of file Chunk.cxx.
References fEntryCellHi, fEntryCellLo, fExitCellHi, and fExitCellLo.
Referenced by AllHits(), dt::DiscreteTracker::PossibleNextSegs(), and dt::DiscreteTracker::TryExtendCand().
bool dt::Chunk::Matches | ( | const Chunk & | ch | ) | const |
Definition at line 35 of file Chunk.cxx.
References BottomExtremeCell(), BottomHitCell(), fPlane, TopExtremeCell(), and TopHitCell().
Referenced by BottomExtremeCell().
|
inline |
Definition at line 46 of file Chunk.h.
References getBrightness::cell, CellMeasurements(), CellPoints(), dz, fPlane, and POTSpillRate::view.
|
inline |
Definition at line 23 of file Chunk.h.
References fPlane.
Referenced by dt::Cand::AllHits(), dt::Cand::EstimateStraightLine(), dt::Chain::FirstPlane(), dt::Chain::LastPlane(), dt::Cand::operator<(), and dt::Chain::ToTrack().
|
inline |
Definition at line 44 of file Chunk.h.
References fSegsDirty, and fShowerChunk.
Referenced by dt::DiscreteTracker::PossibleNextSegs().
void dt::Chunk::SetUp | ( | bool | up | ) |
Definition at line 55 of file Chunk.cxx.
References fEntryCellHi, fEntryCellLo, fExitCellHi, fExitCellLo, fSegsDirty, fUp, and std::swap().
Referenced by BottomExtremeCell(), dt::Cand::MaybeFlip(), and dt::DiscreteTracker::PossibleNextSegs().
|
inline |
Definition at line 30 of file Chunk.h.
References fEntryCellHi, fExitCellHi, and fUp.
Referenced by GetSegs(), and Matches().
|
inline |
Definition at line 28 of file Chunk.h.
References fEntryCellLo, fExitCellLo, and fUp.
Referenced by GetSegs(), Matches(), and dt::Chain::ToTrack().
bool dt::Chunk::Up | ( | ) | const |
Definition at line 49 of file Chunk.cxx.
References fUp.
Referenced by dt::Cand::AddChunk(), dt::DiscreteTracker::BestSeed(), BottomExtremeCell(), and dt::DiscreteTracker::PossibleNextSegs().
|
protected |
Definition at line 61 of file Chunk.h.
Referenced by BottomHitCell(), EntryExtremeCell(), EntryHitCell(), GetSegs(), IsWorthShowering(), SetUp(), and TopExtremeCell().
|
protected |
Definition at line 61 of file Chunk.h.
Referenced by BottomExtremeCell(), EntryExtremeCell(), EntryHitCell(), GetSegs(), IsWorthShowering(), SetUp(), and TopHitCell().
|
protected |
Definition at line 61 of file Chunk.h.
Referenced by BottomHitCell(), ExitExtremeCell(), ExitHitCell(), GetSegs(), IsWorthShowering(), SetUp(), and TopExtremeCell().
|
protected |
Definition at line 61 of file Chunk.h.
Referenced by BottomExtremeCell(), ExitExtremeCell(), ExitHitCell(), GetSegs(), IsWorthShowering(), SetUp(), and TopHitCell().
|
protected |
|
protected |
Definition at line 60 of file Chunk.h.
Referenced by GetSegs(), HitsOnLine(), Matches(), operator<(), and Plane().
|
mutableprotected |
Definition at line 65 of file Chunk.h.
Referenced by GetSegs(), SetShowerChunk(), and SetUp().
|
protected |
"Shower chunk" can enter and exit anywhere
Definition at line 63 of file Chunk.h.
Referenced by GetSegs(), IsShowerChunk(), and SetShowerChunk().
|
protected |
Definition at line 62 of file Chunk.h.
Referenced by BottomExtremeCell(), BottomHitCell(), EntryExtremeCell(), EntryHitCell(), ExitExtremeCell(), ExitHitCell(), GetSegs(), SetUp(), TopExtremeCell(), TopHitCell(), and Up().