LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
reco::ClusterHit2D Class Reference

#include "Cluster3D.h"

Public Types

enum  StatusBits {
  SHAREDINPAIR = 0x00080000, SHAREDINTRIPLET = 0x00040000, USEDINPAIR = 0x00008000, USEDINTRIPLET = 0x00004000,
  SHAREDINCLUSTER = 0x00000200, USEDINCLUSTER = 0x00000100, USED = 0x00000001
}
 

Public Member Functions

 ClusterHit2D ()
 
 ClusterHit2D (unsigned statusBits, float doca, float poca, float xPosition, float timeTicks, const geo::WireID &wireID, const recob::Hit *recobHit)
 
 ClusterHit2D (const ClusterHit2D &)
 
ClusterHit2Doperator= (ClusterHit2D const &)
 
unsigned getStatusBits () const
 
float getDocaToAxis () const
 
float getArcLenToPoca () const
 
float getXPosition () const
 
float getTimeTicks () const
 
const geo::WireIDWireID () const
 
const recob::HitgetHit () const
 
void setStatusBit (unsigned bits) const
 
void clearStatusBits (unsigned bits) const
 
void setDocaToAxis (float doca) const
 
void setArcLenToPoca (float poca) const
 
void setHit (const recob::Hit *hit)
 

Private Attributes

unsigned m_statusBits
 Volatile status information of this 3D hit. More...
 
float m_docaToAxis
 DOCA of hit at POCA to associated cluster axis. More...
 
float m_arcLenToPoca
 arc length to POCA along cluster axis More...
 
float m_xPosition
 The x coordinate for this hit. More...
 
float m_timeTicks
 The time (in ticks) for this hit. More...
 
geo::WireID m_wireID
 Keep track this particular hit's wireID. More...
 
const recob::Hitm_hit
 Hit we are augmenting. More...
 

Friends

std::ostream & operator<< (std::ostream &o, const ClusterHit2D &c)
 
bool operator< (const ClusterHit2D &a, const ClusterHit2D &b)
 

Detailed Description

Definition at line 36 of file Cluster3D.h.

Member Enumeration Documentation

Enumerator
SHAREDINPAIR 
SHAREDINTRIPLET 
USEDINPAIR 
USEDINTRIPLET 
SHAREDINCLUSTER 
USEDINCLUSTER 
USED 

Definition at line 50 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::ClusterHit2D::ClusterHit2D ( )

Definition at line 17 of file Cluster3D.cxx.

18  : m_statusBits(0)
19  , m_docaToAxis(9999.)
20  , m_arcLenToPoca(0.)
21  , m_xPosition(0.)
22  , m_timeTicks(0.)
24  , m_hit(nullptr)
25  {}
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:41
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:42
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:47
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:43
float m_timeTicks
The time (in ticks) for this hit.
Definition: Cluster3D.h:45
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:46
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:44
reco::ClusterHit2D::ClusterHit2D ( unsigned  statusBits,
float  doca,
float  poca,
float  xPosition,
float  timeTicks,
const geo::WireID wireID,
const recob::Hit recobHit 
)

Definition at line 27 of file Cluster3D.cxx.

34  : m_statusBits(statusBits)
35  , m_docaToAxis(doca)
36  , m_arcLenToPoca(poca)
37  , m_xPosition(xPosition)
38  , m_timeTicks(timeTicks)
39  , m_wireID(wireID)
40  , m_hit(hit)
41  {}
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:41
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:42
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:47
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:43
float m_timeTicks
The time (in ticks) for this hit.
Definition: Cluster3D.h:45
Detector simulation of raw signals on wires.
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:46
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:44
reco::ClusterHit2D::ClusterHit2D ( const ClusterHit2D toCopy)

Definition at line 43 of file Cluster3D.cxx.

References m_arcLenToPoca, m_docaToAxis, m_hit, m_statusBits, m_timeTicks, m_wireID, and m_xPosition.

44  {
45  m_statusBits = toCopy.m_statusBits;
46  m_docaToAxis = toCopy.m_docaToAxis;
47  m_arcLenToPoca = toCopy.m_arcLenToPoca;
48  m_xPosition = toCopy.m_xPosition;
49  m_timeTicks = toCopy.m_timeTicks;
50  m_wireID = toCopy.m_wireID;
51  m_hit = toCopy.m_hit;
52  }
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:41
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:42
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:47
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:43
float m_timeTicks
The time (in ticks) for this hit.
Definition: Cluster3D.h:45
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:46
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:44

Member Function Documentation

void reco::ClusterHit2D::clearStatusBits ( unsigned  bits) const
inline

Definition at line 80 of file Cluster3D.h.

80 { m_statusBits &= ~bits; }
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:41
float reco::ClusterHit2D::getArcLenToPoca ( ) const
inline

Definition at line 73 of file Cluster3D.h.

73 { return m_arcLenToPoca; }
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:43
float reco::ClusterHit2D::getDocaToAxis ( ) const
inline

Definition at line 72 of file Cluster3D.h.

72 { return m_docaToAxis; }
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:42
float reco::ClusterHit2D::getXPosition ( ) const
inline
ClusterHit2D & reco::ClusterHit2D::operator= ( ClusterHit2D const &  toCopy)

Definition at line 54 of file Cluster3D.cxx.

References tmp.

55  {
56  using std::swap;
57  auto tmp = toCopy;
58  swap(tmp, *this);
59  return *this;
60  }
Float_t tmp
Definition: plot.C:35
void swap(lar::deep_const_fwd_iterator_nested< CITER, INNERCONTEXTRACT > &a, lar::deep_const_fwd_iterator_nested< CITER, INNERCONTEXTRACT > &b)
void reco::ClusterHit2D::setArcLenToPoca ( float  poca) const
inline

Definition at line 82 of file Cluster3D.h.

82 { m_arcLenToPoca = poca; }
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:43
void reco::ClusterHit2D::setDocaToAxis ( float  doca) const
inline

Definition at line 81 of file Cluster3D.h.

81 { m_docaToAxis = doca; }
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:42
void reco::ClusterHit2D::setHit ( const recob::Hit hit)
inline

Definition at line 84 of file Cluster3D.h.

References recob::operator<(), and recob::operator<<().

84 { m_hit = hit; }
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:47

Friends And Related Function Documentation

bool operator< ( const ClusterHit2D a,
const ClusterHit2D b 
)
friend

Definition at line 68 of file Cluster3D.cxx.

69  {
70  return a.getHit() < b.getHit();
71  }
std::ostream& operator<< ( std::ostream &  o,
const ClusterHit2D c 
)
friend

Definition at line 62 of file Cluster3D.cxx.

63  {
64  o << c.getHit();
65  return o;
66  }

Member Data Documentation

float reco::ClusterHit2D::m_arcLenToPoca
mutableprivate

arc length to POCA along cluster axis

Definition at line 43 of file Cluster3D.h.

Referenced by ClusterHit2D().

float reco::ClusterHit2D::m_docaToAxis
mutableprivate

DOCA of hit at POCA to associated cluster axis.

Definition at line 42 of file Cluster3D.h.

Referenced by ClusterHit2D().

const recob::Hit* reco::ClusterHit2D::m_hit
private

Hit we are augmenting.

Definition at line 47 of file Cluster3D.h.

Referenced by ClusterHit2D().

unsigned reco::ClusterHit2D::m_statusBits
mutableprivate

Volatile status information of this 3D hit.

Definition at line 41 of file Cluster3D.h.

Referenced by ClusterHit2D().

float reco::ClusterHit2D::m_timeTicks
private

The time (in ticks) for this hit.

Definition at line 45 of file Cluster3D.h.

Referenced by ClusterHit2D().

geo::WireID reco::ClusterHit2D::m_wireID
private

Keep track this particular hit's wireID.

Definition at line 46 of file Cluster3D.h.

Referenced by ClusterHit2D().

float reco::ClusterHit2D::m_xPosition
private

The x coordinate for this hit.

Definition at line 44 of file Cluster3D.h.

Referenced by ClusterHit2D().


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