LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "HitSelector.h"
Public Member Functions | |
HitSelector () | |
~HitSelector () | |
void | SaveHits (const art::Event &evt, evdb::View2D *view, unsigned int plane, double x, double y, double x1, double y1, double distance, bool good_plane=true) |
double | SaveSeedLines (const art::Event &evt, evdb::View2D *view, std::vector< util::PxLine > seedline, double distance) |
void | ChangeHit (const art::Event &evt, evdb::View2D *view, unsigned int plane, double x, double y) |
std::vector< const recob::Hit * > | GetSelectedHits (unsigned int plane) |
trkf::HitPtrVec | GetSelectedHitPtrs (unsigned int plane) |
void | ClearHitList (unsigned int plane) |
std::vector< recob::Seed > & | SeedVector () |
Private Attributes | |
std::vector< recob::Seed > | fSeedVector |
std::vector< std::vector< double > > | starthitout |
std::vector< std::vector< double > > | endhitout |
Definition at line 47 of file HitSelector.h.
evd::HitSelector::HitSelector | ( | ) |
Definition at line 34 of file HitSelector.cxx.
References endhitout, and starthitout.
evd::HitSelector::~HitSelector | ( | ) |
Definition at line 41 of file HitSelector.cxx.
void evd::HitSelector::ChangeHit | ( | const art::Event & | evt, |
evdb::View2D * | view, | ||
unsigned int | plane, | ||
double | xin, | ||
double | yin | ||
) |
Save HitList to infoTransfer service
evt | : Event handle to get data objects from |
view | : Pointer to view to draw on |
plane | : plane number of view |
Definition at line 303 of file HitSelector.cxx.
References art::EventID::event(), evd::RecoDrawingOptions::fHitLabels, util::GeometryUtilities::FindClosestHitIndex(), util::PxHitConverter::GeneratePxHit(), art::DataViewImpl::getByLabel(), evd::InfoTransfer::GetSelectedHitList(), art::Event::id(), geo::PlaneID::Plane, evd::InfoTransfer::SetEvtNumber(), evd::InfoTransfer::SetHitList(), evd::InfoTransfer::SetTestFlag(), util::GeometryUtilities::TimeToCm(), recob::Hit::WireID(), util::GeometryUtilities::WireToCm(), x, and y.
Referenced by evd::TWireProjPad::SelectOneHit().
void evd::HitSelector::ClearHitList | ( | unsigned int | plane | ) |
Definition at line 432 of file HitSelector.cxx.
References evd::InfoTransfer::ClearSelectedHitList().
Referenced by evd::TWireProjPad::ClearHitList().
trkf::HitPtrVec evd::HitSelector::GetSelectedHitPtrs | ( | unsigned int | plane | ) |
Save HitList to infoTransfer service
evt | : Event handle to get data objects from |
view | : Pointer to view to draw on |
plane | : plane number of view |
Definition at line 402 of file HitSelector.cxx.
References evd::InfoTransfer::GetSelectedHitList(), and trkf::HitPtrVec::Hits.
Referenced by evd::CalorPad::Draw().
std::vector< const recob::Hit * > evd::HitSelector::GetSelectedHits | ( | unsigned int | plane | ) |
Definition at line 410 of file HitSelector.cxx.
References evd::InfoTransfer::GetSelectedHitList().
void evd::HitSelector::SaveHits | ( | const art::Event & | evt, |
evdb::View2D * | view, | ||
unsigned int | plane, | ||
double | xin, | ||
double | yin, | ||
double | x1in, | ||
double | y1in, | ||
double | distance, | ||
bool | good_plane = true |
||
) |
Save HitList to infoTransfer service
evt | : Event handle to get data objects from |
view | : Pointer to view to draw on |
plane | : plane number of view |
Definition at line 170 of file HitSelector.cxx.
References endhitout, art::EventID::event(), evd::RecoDrawingOptions::fHitLabels, util::GeometryUtilities::FindClosestHitIndex(), util::PxHitConverter::GeneratePxHit(), art::DataViewImpl::getByLabel(), art::Event::id(), recob::Hit::PeakTime(), util::PxPoint::plane, geo::PlaneID::Plane, util::GeometryUtilities::SelectLocalHitlistIndex(), evd::InfoTransfer::SetEndHitCoords(), evd::InfoTransfer::SetEvtNumber(), evd::InfoTransfer::SetHitList(), evd::InfoTransfer::SetStartHitCoords(), evd::InfoTransfer::SetTestFlag(), starthitout, util::PxPoint::t, util::GeometryUtilities::TimeToCm(), util::PxPoint::w, geo::WireID::Wire, recob::Hit::WireID(), util::GeometryUtilities::WireToCm(), x, x1, y, and y1.
Referenced by evd::TWireProjPad::SaveHitList().
double evd::HitSelector::SaveSeedLines | ( | const art::Event & | evt, |
evdb::View2D * | view, | ||
std::vector< util::PxLine > | seedlines, | ||
double | distance | ||
) |
Save SeedLineList to infoTransfer service
evt | : Event handle to get data objects from |
view | : Pointer to view to draw on |
Return value is the kinetic enegry of the track
Definition at line 56 of file HitSelector.cxx.
References art::PtrVector< T >::at(), d, art::EventID::event(), evd::RecoDrawingOptions::fCaloPSet, evd::RecoDrawingOptions::fHitLabels, evd::EvdLayoutOptions::fMakeSeeds, art::DataViewImpl::getByLabel(), trkf::BezierTrack::GetCalorimetryObject(), trkf::BezierTrack::GetClosestApproaches(), art::Event::id(), geo::kCollection, anab::Calorimetry::KineticEnergy(), art::PtrVector< T >::push_back(), s, SeedVector(), evd::InfoTransfer::SetEvtNumber(), evd::InfoTransfer::SetHitList(), evd::InfoTransfer::SetSeedList(), evd::InfoTransfer::SetTestFlag(), art::PtrVector< T >::size(), and lar::dump::vector().
Referenced by evd::TWireProjPad::SaveSeedList().
std::vector< recob::Seed > & evd::HitSelector::SeedVector | ( | ) |
Definition at line 439 of file HitSelector.cxx.
References fSeedVector.
Referenced by SaveSeedLines(), and evd::Display3DPad::UpdateSeedCurve().
|
private |
Definition at line 86 of file HitSelector.h.
Referenced by HitSelector(), and SaveHits().
|
private |
Definition at line 83 of file HitSelector.h.
Referenced by SeedVector().
|
private |
Definition at line 85 of file HitSelector.h.
Referenced by HitSelector(), and SaveHits().