PandaRoot
PndMdtDigi Class Reference

#include <PndMdtDigi.h>

Inheritance diagram for PndMdtDigi:

Public Member Functions

 PndMdtDigi ()
 
 PndMdtDigi (Int_t detID, TVector3 &pos, std::vector< Int_t > pointList)
 
 PndMdtDigi (Int_t detID, TVector3 &pos, Int_t evtNo)
 
virtual ~PndMdtDigi ()
 
virtual void Print (const Option_t *opt=nullptr) const
 
bool operator< (const PndMdtDigi &) const
 
void SetPosition (const TVector3 &pos)
 
Double_t X () const
 
Double_t Y () const
 
Double_t Z () const
 
Int_t GetEvtNumber () const
 
TVector3 GetLabPosition () const
 
Int_t GetDetectorID () const
 
Short_t GetModule () const
 
Short_t GetSector () const
 
Short_t GetLayer () const
 
Short_t GetLayerID () const
 
Short_t GetBox () const
 
Short_t GetWire () const
 
Short_t GetStrip () const
 
Bool_t isWire () const
 
Short_t GetNPoints () const
 
const std::vector< Int_t > & GetPointList ()
 
 PndMdtDigi (const PndMdtDigi &)
 

Detailed Description

Definition at line 22 of file PndMdtDigi.h.

Constructor & Destructor Documentation

◆ PndMdtDigi() [1/4]

PndMdtDigi::PndMdtDigi ( )

Referenced by GetPointList().

◆ PndMdtDigi() [2/4]

PndMdtDigi::PndMdtDigi ( Int_t  detID,
TVector3 &  pos,
std::vector< Int_t >  pointList 
)

◆ PndMdtDigi() [3/4]

PndMdtDigi::PndMdtDigi ( Int_t  detID,
TVector3 &  pos,
Int_t  evtNo 
)

◆ ~PndMdtDigi()

virtual PndMdtDigi::~PndMdtDigi ( )
virtual

◆ PndMdtDigi() [4/4]

PndMdtDigi::PndMdtDigi ( const PndMdtDigi )

Member Function Documentation

◆ GetBox()

Short_t PndMdtDigi::GetBox ( ) const
inline

Definition at line 59 of file PndMdtDigi.h.

References PndMdtID::Box(), and GetDetectorID().

59 { return PndMdtID::Box(GetDetectorID()); }
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:31
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54

◆ GetDetectorID()

Int_t PndMdtDigi::GetDetectorID ( ) const
inline

Definition at line 54 of file PndMdtDigi.h.

Referenced by GetBox(), GetLayer(), GetLayerID(), GetModule(), GetSector(), GetStrip(), GetWire(), and isWire().

54 { return fDetectorID; }

◆ GetEvtNumber()

Int_t PndMdtDigi::GetEvtNumber ( ) const
inline

Definition at line 52 of file PndMdtDigi.h.

52 { return fEvtNo; }

◆ GetLabPosition()

TVector3 PndMdtDigi::GetLabPosition ( ) const
inline

Definition at line 53 of file PndMdtDigi.h.

53 { return fLabPos; }

◆ GetLayer()

Short_t PndMdtDigi::GetLayer ( ) const
inline

Definition at line 57 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::Layer().

57 { return PndMdtID::Layer(GetDetectorID()); }
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:30
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54

◆ GetLayerID()

Short_t PndMdtDigi::GetLayerID ( ) const
inline

Definition at line 58 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::Layer().

58 { return PndMdtID::Layer(GetDetectorID()); }
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:30
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54

◆ GetModule()

Short_t PndMdtDigi::GetModule ( ) const
inline

Definition at line 55 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::Module().

55 { return PndMdtID::Module(GetDetectorID()); }
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:28
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54

◆ GetNPoints()

Short_t PndMdtDigi::GetNPoints ( ) const
inline

Definition at line 64 of file PndMdtDigi.h.

64 { return fPointList.size(); }

◆ GetPointList()

const std::vector<Int_t>& PndMdtDigi::GetPointList ( )
inline

Definition at line 65 of file PndMdtDigi.h.

References PndMdtDigi().

65 { return fPointList; }

◆ GetSector()

Short_t PndMdtDigi::GetSector ( ) const
inline

Definition at line 56 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::Sector().

56 { return PndMdtID::Sector(GetDetectorID()); }
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:29

◆ GetStrip()

Short_t PndMdtDigi::GetStrip ( ) const
inline

Definition at line 61 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::Strip().

61 { return PndMdtID::Strip(GetDetectorID()); }
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54
static Short_t Strip(Int_t detID)
Definition: PndMdtID.h:33

◆ GetWire()

Short_t PndMdtDigi::GetWire ( ) const
inline

Definition at line 60 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::Wire().

60 { return PndMdtID::Wire(GetDetectorID()); }
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:32

◆ isWire()

Bool_t PndMdtDigi::isWire ( ) const
inline

Definition at line 62 of file PndMdtDigi.h.

References GetDetectorID(), and PndMdtID::isWire().

62 { return PndMdtID::isWire(GetDetectorID()); }
static Bool_t isWire(Int_t detID)
Definition: PndMdtID.h:34
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:54

◆ operator<()

bool PndMdtDigi::operator< ( const PndMdtDigi ) const

Referenced by Print().

◆ Print()

virtual void PndMdtDigi::Print ( const Option_t *  opt = nullptr) const
inlinevirtual

Output to screen (not yet implemented)

Definition at line 33 of file PndMdtDigi.h.

References operator<().

34  {
35  std::cout << " opt = " << opt << std::endl;
36  return;
37  }

◆ SetPosition()

void PndMdtDigi::SetPosition ( const TVector3 &  pos)
inline

Public method Clear Resets the flag to -1Accessors

Definition at line 47 of file PndMdtDigi.h.

47 { fLabPos = pos; };

◆ X()

Double_t PndMdtDigi::X ( ) const
inline

Definition at line 49 of file PndMdtDigi.h.

49 { return fLabPos.X(); }

◆ Y()

Double_t PndMdtDigi::Y ( ) const
inline

Definition at line 50 of file PndMdtDigi.h.

50 { return fLabPos.Y(); }

◆ Z()

Double_t PndMdtDigi::Z ( ) const
inline

Definition at line 51 of file PndMdtDigi.h.

51 { return fLabPos.Z(); }

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