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 13 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 50 of file PndRichTSPDHit.h.

References fIndex.

51  {
52  fIndex.push_back(index);
53  AddLink(FairLink("PndRichPDHit", index));
54  }
std::vector< Int_t > fIndex

◆ AddIndex() [2/2]

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

Definition at line 56 of file PndRichTSPDHit.h.

References fIndex.

57  {
58  fIndex = index;
59  AddLinks(FairMultiLinkedData("PndRichPDHit", index));
60  }
std::vector< Int_t > fIndex

◆ equal()

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

Definition at line 62 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

63  {
64  PndRichTSPDHit *hit = dynamic_cast<PndRichTSPDHit *>(data);
65  if (hit != nullptr) {
66  if (fSensorId == hit->GetSensorId())
67  return true;
68  }
69  return false;
70  }
Int_t GetSensorId() const

◆ GetIndices()

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

Definition at line 48 of file PndRichTSPDHit.h.

References fIndex.

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

◆ GetSensorId()

Int_t PndRichTSPDHit::GetSensorId ( ) const
inline

Definition at line 47 of file PndRichTSPDHit.h.

References fSensorId.

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

47 { return fSensorId; }

◆ GetTime()

virtual Double_t PndRichTSPDHit::GetTime ( )
inlinevirtual

Modifiers Accessors

Definition at line 43 of file PndRichTSPDHit.h.

References fTime.

43 { return fTime; }

◆ GetTimeThreshold()

virtual Double_t PndRichTSPDHit::GetTimeThreshold ( )
inlinevirtual

Definition at line 44 of file PndRichTSPDHit.h.

References fTimeThreshold.

44 { return fTimeThreshold; }
Double_t fTimeThreshold

◆ operator<()

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

Definition at line 72 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

73  {
74  if (fSensorId < hit.GetSensorId())
75  return true;
76  return false;
77  }
Int_t GetSensorId() const

◆ 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 78 of file PndRichTSPDHit.h.

References fSensorId, and GetSensorId().

79  {
80  if (fSensorId > hit.GetSensorId())
81  return true;
82  return false;
83  }
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 16 of file PndRichTSPDHit.h.

17  {
18  out << "PndRichTSPDHi in: " << hit.GetSensorId() << ", from Point(s) ";
19  std::vector<Int_t> indices = hit.GetIndices();
20  for (unsigned int i = 0; i < indices.size(); i++) {
21  out << indices[i] << " ";
22  }
23  out << std::endl;
24 
25  return out;
26  }
Int_t GetSensorId() const
unsigned int i
Definition: P4_F32vec4.h:21
std::vector< Int_t > GetIndices() const

Member Data Documentation

◆ fDetID

Int_t PndRichTSPDHit::fDetID
protected

Definition at line 93 of file PndRichTSPDHit.h.

◆ fdPos

TVector3 PndRichTSPDHit::fdPos
protected

Definition at line 96 of file PndRichTSPDHit.h.

◆ fIndex

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

Definition at line 92 of file PndRichTSPDHit.h.

Referenced by AddIndex(), and GetIndices().

◆ fPos

TVector3 PndRichTSPDHit::fPos
protected

Definition at line 95 of file PndRichTSPDHit.h.

◆ fSensorId

Int_t PndRichTSPDHit::fSensorId
protected

Definition at line 94 of file PndRichTSPDHit.h.

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

◆ fTime

Double_t PndRichTSPDHit::fTime
protected

Definition at line 97 of file PndRichTSPDHit.h.

Referenced by GetTime().

◆ fTimeThreshold

Double_t PndRichTSPDHit::fTimeThreshold
protected

Definition at line 97 of file PndRichTSPDHit.h.

Referenced by GetTimeThreshold().


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