PandaRoot
PndRichTSPDHit Class Reference

#include <PndRichTSPDHit.h>

Inheritance diagram for PndRichTSPDHit:

Public Member Functions

 PndRichTSPDHit ()
 
 PndRichTSPDHit (Int_t detID, Int_t sensorId, TVector3 pos, TVector3 dpos, Double_t time, Double_t timeThreshold)
 
virtual ~PndRichTSPDHit ()
 
virtual void Print (const Option_t *opt="") const
 
virtual Double_t GetTime ()
 
virtual Double_t GetTimeThreshold ()
 
Int_t GetSensorId () const
 
std::vector< Int_t > GetIndices () const
 
void AddIndex (int index)
 
void AddIndex (std::vector< Int_t > index)
 
virtual bool equal (FairTimeStamp *data)
 
virtual bool operator< (const PndRichTSPDHit &hit) const
 
virtual bool operator> (const PndRichTSPDHit &hit) const
 
virtual bool operator== (const PndRichTSPDHit &hit) const
 

Protected Attributes

std::vector< Int_t > fIndex
 
Int_t fDetID
 
Int_t fSensorId
 
TVector3 fPos
 
TVector3 fdPos
 
Double_t fTime
 
Double_t fTimeThreshold
 

Friends

std::ostream & operator<< (std::ostream &out, PndRichTSPDHit &hit)
 

Detailed Description

Definition at line 25 of file PndRichTSPDHit.h.

Constructor & Destructor Documentation

◆ PndRichTSPDHit() [1/2]

PndRichTSPDHit::PndRichTSPDHit ( )

Default constructor

◆ PndRichTSPDHit() [2/2]

PndRichTSPDHit::PndRichTSPDHit ( Int_t  detID,
Int_t  sensorId,
TVector3  pos,
TVector3  dpos,
Double_t  time,
Double_t  timeThreshold 
)

◆ ~PndRichTSPDHit()

virtual PndRichTSPDHit::~PndRichTSPDHit ( )
virtual

Destructor

Member Function Documentation

◆ AddIndex() [1/2]

void PndRichTSPDHit::AddIndex ( int  index)
inline

Definition at line 62 of file PndRichTSPDHit.h.

References fIndex.

63  {
64  fIndex.push_back(index);
65  AddLink(FairLink("PndRichPDHit", index));
66  }
std::vector< Int_t > fIndex

◆ AddIndex() [2/2]

void PndRichTSPDHit::AddIndex ( std::vector< Int_t >  index)
inline

Definition at line 68 of file PndRichTSPDHit.h.

References fIndex.

69  {
70  fIndex = index;
71  AddLinks(FairMultiLinkedData("PndRichPDHit", index));
72  }
std::vector< Int_t > fIndex

◆ equal()

virtual bool PndRichTSPDHit::equal ( FairTimeStamp *  data)
inlinevirtual

Definition at line 74 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

75  {
76  PndRichTSPDHit *hit = dynamic_cast<PndRichTSPDHit *>(data);
77  if (hit != nullptr) {
78  if (fSensorId == hit->GetSensorId())
79  return true;
80  }
81  return false;
82  }
Int_t GetSensorId() const

◆ GetIndices()

std::vector<Int_t> PndRichTSPDHit::GetIndices ( ) const
inline

Definition at line 60 of file PndRichTSPDHit.h.

References fIndex.

60 { return fIndex; }
std::vector< Int_t > fIndex

◆ GetSensorId()

Int_t PndRichTSPDHit::GetSensorId ( ) const
inline

Definition at line 59 of file PndRichTSPDHit.h.

References fSensorId.

Referenced by equal(), operator<(), operator==(), and operator>().

59 { return fSensorId; }

◆ GetTime()

virtual Double_t PndRichTSPDHit::GetTime ( )
inlinevirtual

Modifiers Accessors

Definition at line 55 of file PndRichTSPDHit.h.

References fTime.

55 { return fTime; }

◆ GetTimeThreshold()

virtual Double_t PndRichTSPDHit::GetTimeThreshold ( )
inlinevirtual

Definition at line 56 of file PndRichTSPDHit.h.

References fTimeThreshold.

56 { return fTimeThreshold; }
Double_t fTimeThreshold

◆ operator<()

virtual bool PndRichTSPDHit::operator< ( const PndRichTSPDHit hit) const
inlinevirtual

Definition at line 84 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

85  {
86  if (fSensorId < hit.GetSensorId())
87  return true;
88  return false;
89  }
Int_t GetSensorId() const

◆ operator==()

virtual bool PndRichTSPDHit::operator== ( const PndRichTSPDHit hit) const
inlinevirtual

Definition at line 96 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

97  {
98  if (fSensorId == hit.GetSensorId())
99  return true;
100  return false;
101  }
Int_t GetSensorId() const

◆ operator>()

virtual bool PndRichTSPDHit::operator> ( const PndRichTSPDHit hit) const
inlinevirtual

Definition at line 90 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

91  {
92  if (fSensorId > hit.GetSensorId())
93  return true;
94  return false;
95  }
Int_t GetSensorId() const

◆ Print()

virtual void PndRichTSPDHit::Print ( const Option_t *  opt = "") const
virtual

Output to screen

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndRichTSPDHit hit 
)
friend

Definition at line 28 of file PndRichTSPDHit.h.

29  {
30  out << "PndRichTSPDHi in: " << hit.GetSensorId() << ", from Point(s) ";
31  std::vector<Int_t> indices = hit.GetIndices();
32  for (unsigned int i = 0; i < indices.size(); i++) {
33  out << indices[i] << " ";
34  }
35  out << std::endl;
36 
37  return out;
38  }
Int_t GetSensorId() const
unsigned int i
Definition: P4_F32vec4.h:33
std::vector< Int_t > GetIndices() const

Member Data Documentation

◆ fDetID

Int_t PndRichTSPDHit::fDetID
protected

Definition at line 105 of file PndRichTSPDHit.h.

◆ fdPos

TVector3 PndRichTSPDHit::fdPos
protected

Definition at line 108 of file PndRichTSPDHit.h.

◆ fIndex

std::vector<Int_t> PndRichTSPDHit::fIndex
protected

Definition at line 104 of file PndRichTSPDHit.h.

Referenced by AddIndex(), and GetIndices().

◆ fPos

TVector3 PndRichTSPDHit::fPos
protected

Definition at line 107 of file PndRichTSPDHit.h.

◆ fSensorId

Int_t PndRichTSPDHit::fSensorId
protected

Definition at line 106 of file PndRichTSPDHit.h.

Referenced by equal(), GetSensorId(), operator<(), operator==(), and operator>().

◆ fTime

Double_t PndRichTSPDHit::fTime
protected

Definition at line 109 of file PndRichTSPDHit.h.

Referenced by GetTime().

◆ fTimeThreshold

Double_t PndRichTSPDHit::fTimeThreshold
protected

Definition at line 109 of file PndRichTSPDHit.h.

Referenced by GetTimeThreshold().


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