Public Types | Public Member Functions | Private Attributes | Friends | List of all members
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 &)
 
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 35 of file Cluster3D.h.

Member Enumeration Documentation

Enumerator
SHAREDINPAIR 
SHAREDINTRIPLET 
USEDINPAIR 
USEDINTRIPLET 
SHAREDINCLUSTER 
USEDINCLUSTER 
USED 

Definition at line 53 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::ClusterHit2D::ClusterHit2D ( )

Definition at line 16 of file Cluster3D.cxx.

16  : m_statusBits(0),
17  m_docaToAxis(9999.),
18  m_arcLenToPoca(0.),
19  m_xPosition(0.),
20  m_timeTicks(0.),
22  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:49
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
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:48
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 geo::WireID wireID,
const recob::Hit recobHit 
)

Definition at line 24 of file Cluster3D.cxx.

30  :
31  m_statusBits(statusBits),
32  m_docaToAxis(doca),
33  m_arcLenToPoca(poca),
34  m_xPosition(xPosition),
35  m_timeTicks(timeTicks),
36  m_wireID(wireID),
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:49
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.
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:48
float m_xPosition
The x coordinate for this hit.
Definition: Cluster3D.h:46
reco::ClusterHit2D::ClusterHit2D ( const ClusterHit2D toCopy)

Definition at line 39 of file Cluster3D.cxx.

40 {
41  m_statusBits = toCopy.m_statusBits;
42  m_docaToAxis = toCopy.m_docaToAxis;
43  m_arcLenToPoca = toCopy.m_arcLenToPoca;
44  m_xPosition = toCopy.m_xPosition;
45  m_timeTicks = toCopy.m_timeTicks;
46  m_wireID = toCopy.m_wireID;
47  m_hit = toCopy.m_hit;
48 }
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:49
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
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:48
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 81 of file Cluster3D.h.

81 {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 74 of file Cluster3D.h.

74 {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 73 of file Cluster3D.h.

73 {return m_docaToAxis;}
float m_docaToAxis
DOCA of hit at POCA to associated cluster axis.
Definition: Cluster3D.h:44
const recob::Hit* reco::ClusterHit2D::getHit ( ) const
inline

Definition at line 78 of file Cluster3D.h.

78 {return m_hit;}
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:49
unsigned reco::ClusterHit2D::getStatusBits ( ) const
inline

Definition at line 72 of file Cluster3D.h.

72 {return m_statusBits;}
unsigned m_statusBits
Volatile status information of this 3D hit.
Definition: Cluster3D.h:43
float reco::ClusterHit2D::getTimeTicks ( ) const
inline

Definition at line 76 of file Cluster3D.h.

76 {return m_timeTicks;}
float m_timeTicks
The time (in ticks) for this hit.
Definition: Cluster3D.h:47
float reco::ClusterHit2D::getXPosition ( ) const
inline

Definition at line 75 of file Cluster3D.h.

75 {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 83 of file Cluster3D.h.

83 {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 82 of file Cluster3D.h.

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

Definition at line 85 of file Cluster3D.h.

85 {m_hit = hit;}
const recob::Hit * m_hit
Hit we are augmenting.
Definition: Cluster3D.h:49
void reco::ClusterHit2D::setStatusBit ( 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:43
const geo::WireID& reco::ClusterHit2D::WireID ( ) const
inline

Definition at line 77 of file Cluster3D.h.

77 {return m_wireID;}
geo::WireID m_wireID
Keep track this particular hit&#39;s wireID.
Definition: Cluster3D.h:48

Friends And Related Function Documentation

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

Definition at line 57 of file Cluster3D.cxx.

58 {
59  return a.getHit() < b.getHit();
60 }
const double a
static bool * b
Definition: config.cpp:1043
std::ostream& operator<< ( std::ostream &  o,
const ClusterHit2D c 
)
friend

Definition at line 50 of file Cluster3D.cxx.

51 {
52  o << c.getHit();
53 
54  return o;
55 }

Member Data Documentation

float reco::ClusterHit2D::m_arcLenToPoca
mutableprivate

arc length to POCA along cluster axis

Definition at line 45 of file Cluster3D.h.

float reco::ClusterHit2D::m_docaToAxis
mutableprivate

DOCA of hit at POCA to associated cluster axis.

Definition at line 44 of file Cluster3D.h.

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

Hit we are augmenting.

Definition at line 49 of file Cluster3D.h.

unsigned reco::ClusterHit2D::m_statusBits
mutableprivate

Volatile status information of this 3D hit.

Definition at line 43 of file Cluster3D.h.

float reco::ClusterHit2D::m_timeTicks
private

The time (in ticks) for this hit.

Definition at line 47 of file Cluster3D.h.

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

Keep track this particular hit's wireID.

Definition at line 48 of file Cluster3D.h.

float reco::ClusterHit2D::m_xPosition
private

The x coordinate for this hit.

Definition at line 46 of file Cluster3D.h.


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