LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 recob::Hit &recobHit)
 
unsigned getStatusBits () const
 
float getDocaToAxis () const
 
float getArcLenToPoca () const
 
float getXPosition () const
 
float getTimeTicks () 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
 

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...
 
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 35 of file Cluster3D.h.

Member Enumeration Documentation

Enumerator
SHAREDINPAIR 
SHAREDINTRIPLET 
USEDINPAIR 
USEDINTRIPLET 
SHAREDINCLUSTER 
USEDINCLUSTER 
USED 

Definition at line 52 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::ClusterHit2D::ClusterHit2D ( )

Definition at line 19 of file Cluster3D.cxx.

19  : m_statusBits(0),
20  m_docaToAxis(9999.),
21  m_arcLenToPoca(0.),
22  m_xPosition(0.),
23  m_timeTicks(0.),
24  m_hit(nullptr) {}
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:43
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:44
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:48
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:45
float m_timeTicks
The time (in ticks) for this hit.
Definition: Cluster3D.h:47
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:46
reco::ClusterHit2D::ClusterHit2D ( unsigned  statusBits,
float  doca,
float  poca,
float  xPosition,
float  timeTicks,
const recob::Hit recobHit 
)

Definition at line 26 of file Cluster3D.cxx.

31  :
32  m_statusBits(statusBits),
33  m_docaToAxis(doca),
34  m_arcLenToPoca(poca),
35  m_xPosition(xPosition),
36  m_timeTicks(timeTicks),
37  m_hit(&hit) {}
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:43
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:44
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:48
float m_arcLenToPoca
arc length to POCA along cluster axis
Definition: Cluster3D.h:45
float m_timeTicks
The time (in ticks) for this hit.
Definition: Cluster3D.h:47
Detector simulation of raw signals on wires.
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:46

Member Function Documentation

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

Definition at line 76 of file Cluster3D.h.

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

Definition at line 70 of file Cluster3D.h.

References m_arcLenToPoca.

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

Definition at line 69 of file Cluster3D.h.

References m_docaToAxis.

69 {return m_docaToAxis;}
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:44
unsigned reco::ClusterHit2D::getStatusBits ( ) const
inline
float reco::ClusterHit2D::getTimeTicks ( ) const
inline
float reco::ClusterHit2D::getXPosition ( ) const
inline

Definition at line 71 of file Cluster3D.h.

References m_xPosition.

Referenced by lar_cluster3d::StandardHit3DBuilder::makeHitPair(), and lar_cluster3d::StandardHit3DBuilder::makeHitTriplet().

71 {return m_xPosition;}
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:46
void reco::ClusterHit2D::setArcLenToPoca ( float  poca) const
inline

Definition at line 78 of file Cluster3D.h.

References operator<, and operator<<.

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

Definition at line 77 of file Cluster3D.h.

77 {m_docaToAxis = doca;}
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:44
void reco::ClusterHit2D::setStatusBit ( unsigned  bits) const
inline

Friends And Related Function Documentation

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

Definition at line 47 of file Cluster3D.cxx.

Referenced by reco::Cluster3D::clearStatusBits(), setArcLenToPoca(), and reco::PrincipalComponents::setAveHitDoca().

48 {
49  return a.getHit() < b.getHit();
50 }
std::ostream& operator<< ( std::ostream &  o,
const ClusterHit2D c 
)
friend

Definition at line 40 of file Cluster3D.cxx.

Referenced by reco::Cluster3D::clearStatusBits(), reco::ClusterHit3D::operator==(), setArcLenToPoca(), and reco::PrincipalComponents::setAveHitDoca().

41 {
42  o << c.getHit();
43 
44  return o;
45 }

Member Data Documentation

float reco::ClusterHit2D::m_arcLenToPoca
mutableprivate

arc length to POCA along cluster axis

Definition at line 45 of file Cluster3D.h.

Referenced by getArcLenToPoca().

float reco::ClusterHit2D::m_docaToAxis
mutableprivate

DOCA of hit at POCA to associated cluster axis.

Definition at line 44 of file Cluster3D.h.

Referenced by getDocaToAxis(), reco::ClusterHit3D::getDocaToAxis(), and reco::ClusterHit3D::setDocaToAxis().

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

Hit we are augmenting.

Definition at line 48 of file Cluster3D.h.

Referenced by getHit().

unsigned reco::ClusterHit2D::m_statusBits
mutableprivate
float reco::ClusterHit2D::m_timeTicks
private

The time (in ticks) for this hit.

Definition at line 47 of file Cluster3D.h.

Referenced by getTimeTicks().

float reco::ClusterHit2D::m_xPosition
private

The x coordinate for this hit.

Definition at line 46 of file Cluster3D.h.

Referenced by getXPosition().


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