LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
tss::Hit2D Class Reference

#include "TssHit2D.h"

Public Member Functions

 Hit2D (detinfo::DetectorPropertiesData const &detProp, const art::Ptr< recob::Hit > &src)
 
art::Ptr< recob::HitHit2DPtr () const
 
TVector2 const & Point2D () const
 
unsigned int Cryo () const
 
unsigned int TPC () const
 
unsigned int View () const
 
unsigned int Wire () const
 
float PeakTime () const
 
int StartTick () const
 
int EndTick () const
 
float SummedADC () const
 
float GetAmplitude () const
 

Private Attributes

art::Ptr< recob::HitfHit
 
unsigned int fPlane
 
unsigned int fWire
 
TVector2 fPoint2D
 

Detailed Description

Definition at line 25 of file TssHit2D.h.

Constructor & Destructor Documentation

tss::Hit2D::Hit2D ( detinfo::DetectorPropertiesData const &  detProp,
const art::Ptr< recob::Hit > &  src 
)

Definition at line 12 of file TssHit2D.cxx.

References geo::CryostatID::Cryostat, fPlane, fPoint2D, fWire, recob::Hit::PeakTime(), geo::PlaneID::Plane, geo::TPCID::TPC, geo::WireID::Wire, pma::WireDriftToCm(), and recob::Hit::WireID().

13  : fHit(src)
14 {
15  fPlane = src->WireID().Plane;
16  fWire = src->WireID().Wire;
17 
19  detProp, fWire, src->PeakTime(), fPlane, src->WireID().TPC, src->WireID().Cryostat);
20 }
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:211
TVector2 WireDriftToCm(detinfo::DetectorPropertiesData const &detProp, unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:286
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:563
geo::WireID const & WireID() const
Initial tdc tick for hit.
Definition: Hit.h:280
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:481
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:220
TVector2 fPoint2D
Definition: TssHit2D.h:49
unsigned int fPlane
Definition: TssHit2D.h:47
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:399
unsigned int fWire
Definition: TssHit2D.h:47

Member Function Documentation

unsigned int tss::Hit2D::Cryo ( ) const
inline

Definition at line 33 of file TssHit2D.h.

33 { return fHit->WireID().Cryostat; }
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:211
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
geo::WireID const & WireID() const
Initial tdc tick for hit.
Definition: Hit.h:280
int tss::Hit2D::EndTick ( ) const
inline

Definition at line 39 of file TssHit2D.h.

Referenced by tss::SimpleClustering::hitsTouching().

39 { return fHit->EndTick(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
raw::TDCtick_t EndTick() const
Final tdc tick for hit.
Definition: Hit.h:216
float tss::Hit2D::GetAmplitude ( ) const
inline

Definition at line 42 of file TssHit2D.h.

42 { return fHit->PeakAmplitude(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:232
art::Ptr<recob::Hit> tss::Hit2D::Hit2DPtr ( ) const
inline

Definition at line 29 of file TssHit2D.h.

29 { return fHit; }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
float tss::Hit2D::PeakTime ( ) const
inline

Definition at line 37 of file TssHit2D.h.

Referenced by tss::SimpleClustering::hitsTouching().

37 { return fHit->PeakTime(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:220
TVector2 const& tss::Hit2D::Point2D ( ) const
inline
int tss::Hit2D::StartTick ( ) const
inline

Definition at line 38 of file TssHit2D.h.

Referenced by tss::SimpleClustering::hitsTouching().

38 { return fHit->StartTick(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
raw::TDCtick_t StartTick() const
Initial tdc tick for hit.
Definition: Hit.h:212
float tss::Hit2D::SummedADC ( ) const
inline

Definition at line 41 of file TssHit2D.h.

41 { return fHit->SummedADC(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:240
unsigned int tss::Hit2D::TPC ( ) const
inline

Definition at line 34 of file TssHit2D.h.

34 { return fHit->WireID().TPC; }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
geo::WireID const & WireID() const
Initial tdc tick for hit.
Definition: Hit.h:280
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:399
unsigned int tss::Hit2D::View ( ) const
inline

Definition at line 35 of file TssHit2D.h.

35 { return fPlane; }
unsigned int fPlane
Definition: TssHit2D.h:47
unsigned int tss::Hit2D::Wire ( ) const
inline

Definition at line 36 of file TssHit2D.h.

Referenced by tss::SimpleClustering::hitsTouching().

36 { return fWire; }
unsigned int fWire
Definition: TssHit2D.h:47

Member Data Documentation

art::Ptr<recob::Hit> tss::Hit2D::fHit
private

Definition at line 45 of file TssHit2D.h.

unsigned int tss::Hit2D::fPlane
private

Definition at line 47 of file TssHit2D.h.

Referenced by Hit2D().

TVector2 tss::Hit2D::fPoint2D
private

Definition at line 49 of file TssHit2D.h.

Referenced by Hit2D().

unsigned int tss::Hit2D::fWire
private

Definition at line 47 of file TssHit2D.h.

Referenced by Hit2D().


The documentation for this class was generated from the following files: