PandaRoot
PndLmdHitPair Class Reference

#include <PndLmdHitPair.h>

Inheritance diagram for PndLmdHitPair:

Public Member Functions

 PndLmdHitPair ()
 
 PndLmdHitPair (Double_t col1, Double_t row1, Int_t id1, Double_t col2, Double_t row2, Int_t id2)
 
 PndLmdHitPair (const TVector3 &hit1, const TVector3 &hit2, Int_t id1, Int_t id2)
 
 ~PndLmdHitPair ()
 
bool operator== (const PndLmdHitPair &rhs)
 
void PrintPair () const
 
 ClassDef (PndLmdHitPair, 16)
 
Int_t getId1 () const
 
Int_t getId2 () const
 
void setId1 (Int_t ID1)
 
void setId2 (Int_t ID2)
 
bool isSane () const
 
const TVector3 & getHit1 () const
 
void setHit1 (const TVector3 &hit1)
 
const TVector3 & getHit2 () const
 
void setHit2 (const TVector3 &hit2)
 
void setPixelHits (double col1, double row1, double col2, double row2)
 
bool check ()
 
bool hitSensors (Int_t first, Int_t second)
 
Double_t getCol1 () const
 
void setCol1 (Double_t col1)
 
Double_t getCol2 () const
 
void setCol2 (Double_t col2)
 
Double_t getRow1 () const
 
void setRow1 (Double_t row1)
 
Double_t getRow2 () const
 
void setRow2 (Double_t row2)
 
Int_t getModuleId () const
 
void setModuleId (Int_t moduleId)
 
bool isHit1present () const
 
bool isHit2present () const
 
Double_t getDistance () const
 
void calculateDistance ()
 
void setDistance (Double_t distance)
 
Int_t getOverlapId () const
 
void setOverlapId (Int_t overlapId)
 
void swapHits ()
 

Detailed Description

Definition at line 32 of file PndLmdHitPair.h.

Constructor & Destructor Documentation

◆ PndLmdHitPair() [1/3]

PndLmdHitPair::PndLmdHitPair ( )

◆ PndLmdHitPair() [2/3]

PndLmdHitPair::PndLmdHitPair ( Double_t  col1,
Double_t  row1,
Int_t  id1,
Double_t  col2,
Double_t  row2,
Int_t  id2 
)

◆ PndLmdHitPair() [3/3]

PndLmdHitPair::PndLmdHitPair ( const TVector3 &  hit1,
const TVector3 &  hit2,
Int_t  id1,
Int_t  id2 
)

◆ ~PndLmdHitPair()

PndLmdHitPair::~PndLmdHitPair ( )

Member Function Documentation

◆ calculateDistance()

void PndLmdHitPair::calculateDistance ( )

Referenced by getDistance().

◆ check()

bool PndLmdHitPair::check ( )

Referenced by setPixelHits().

◆ ClassDef()

PndLmdHitPair::ClassDef ( PndLmdHitPair  ,
16   
)

◆ getCol1()

Double_t PndLmdHitPair::getCol1 ( ) const
inline

Definition at line 104 of file PndLmdHitPair.h.

104 { return _col1; }

◆ getCol2()

Double_t PndLmdHitPair::getCol2 ( ) const
inline

Definition at line 112 of file PndLmdHitPair.h.

112 { return _col2; }

◆ getDistance()

Double_t PndLmdHitPair::getDistance ( ) const
inline

Definition at line 148 of file PndLmdHitPair.h.

References calculateDistance().

148 { return _distance; }

◆ getHit1()

const TVector3& PndLmdHitPair::getHit1 ( ) const
inline

Definition at line 73 of file PndLmdHitPair.h.

73 { return _hit1; }

◆ getHit2()

const TVector3& PndLmdHitPair::getHit2 ( ) const
inline

Definition at line 82 of file PndLmdHitPair.h.

82 { return _hit2; }

◆ getId1()

Int_t PndLmdHitPair::getId1 ( ) const
inline

Definition at line 55 of file PndLmdHitPair.h.

55 { return _id1; }

◆ getId2()

Int_t PndLmdHitPair::getId2 ( ) const
inline

Definition at line 56 of file PndLmdHitPair.h.

56 { return _id2; }

◆ getModuleId()

Int_t PndLmdHitPair::getModuleId ( ) const
inline

Definition at line 136 of file PndLmdHitPair.h.

136 { return _moduleId; }

◆ getOverlapId()

Int_t PndLmdHitPair::getOverlapId ( ) const
inline

Definition at line 158 of file PndLmdHitPair.h.

158 { return _overlapID; }

◆ getRow1()

Double_t PndLmdHitPair::getRow1 ( ) const
inline

Definition at line 120 of file PndLmdHitPair.h.

120 { return _row1; }

◆ getRow2()

Double_t PndLmdHitPair::getRow2 ( ) const
inline

Definition at line 128 of file PndLmdHitPair.h.

128 { return _row2; }

◆ hitSensors()

bool PndLmdHitPair::hitSensors ( Int_t  first,
Int_t  second 
)

Referenced by setPixelHits().

◆ isHit1present()

bool PndLmdHitPair::isHit1present ( ) const
inline

Definition at line 144 of file PndLmdHitPair.h.

144 { return hit1present; }

◆ isHit2present()

bool PndLmdHitPair::isHit2present ( ) const
inline

Definition at line 146 of file PndLmdHitPair.h.

146 { return hit2present; }

◆ isSane()

bool PndLmdHitPair::isSane ( ) const
inline

Definition at line 71 of file PndLmdHitPair.h.

71 { return sane; }

◆ operator==()

bool PndLmdHitPair::operator== ( const PndLmdHitPair rhs)

◆ PrintPair()

void PndLmdHitPair::PrintPair ( ) const

◆ setCol1()

void PndLmdHitPair::setCol1 ( Double_t  col1)
inline

Definition at line 106 of file PndLmdHitPair.h.

107  {
108  _col1 = col1;
109  checked = false;
110  }

◆ setCol2()

void PndLmdHitPair::setCol2 ( Double_t  col2)
inline

Definition at line 114 of file PndLmdHitPair.h.

115  {
116  _col2 = col2;
117  checked = false;
118  }

◆ setDistance()

void PndLmdHitPair::setDistance ( Double_t  distance)
inline

Definition at line 152 of file PndLmdHitPair.h.

153  {
154  _distance = distance;
155  checked = false;
156  }

◆ setHit1()

void PndLmdHitPair::setHit1 ( const TVector3 &  hit1)
inline

Definition at line 75 of file PndLmdHitPair.h.

76  {
77  _hit1 = hit1;
78  checked = false;
79  hit1present = true;
80  }

◆ setHit2()

void PndLmdHitPair::setHit2 ( const TVector3 &  hit2)
inline

Definition at line 84 of file PndLmdHitPair.h.

85  {
86  _hit2 = hit2;
87  checked = false;
88  hit2present = true;
89  }

◆ setId1()

void PndLmdHitPair::setId1 ( Int_t  ID1)
inline

Definition at line 58 of file PndLmdHitPair.h.

59  {
60  _id1 = ID1;
61  checked = false;
62  }

◆ setId2()

void PndLmdHitPair::setId2 ( Int_t  ID2)
inline

Definition at line 64 of file PndLmdHitPair.h.

65  {
66  _id2 = ID2;
67  checked = false;
68  }

◆ setModuleId()

void PndLmdHitPair::setModuleId ( Int_t  moduleId)
inline

Definition at line 138 of file PndLmdHitPair.h.

139  {
140  _moduleId = moduleId;
141  checked = false;
142  }

◆ setOverlapId()

void PndLmdHitPair::setOverlapId ( Int_t  overlapId)
inline

Definition at line 160 of file PndLmdHitPair.h.

References swapHits().

161  {
162  _overlapID = overlapId;
163  checked = false;
164  }

◆ setPixelHits()

void PndLmdHitPair::setPixelHits ( double  col1,
double  row1,
double  col2,
double  row2 
)
inline

Definition at line 91 of file PndLmdHitPair.h.

References check(), and hitSensors().

92  {
93  _row1 = row1;
94  _col1 = col1;
95 
96  _row2 = row2;
97  _col2 = col2;
98  }

◆ setRow1()

void PndLmdHitPair::setRow1 ( Double_t  row1)
inline

Definition at line 122 of file PndLmdHitPair.h.

123  {
124  _row1 = row1;
125  checked = false;
126  }

◆ setRow2()

void PndLmdHitPair::setRow2 ( Double_t  row2)
inline

Definition at line 130 of file PndLmdHitPair.h.

131  {
132  _row2 = row2;
133  checked = false;
134  }

◆ swapHits()

void PndLmdHitPair::swapHits ( )

Referenced by setOverlapId().


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