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 10 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 47 of file PndMdtDigi.h.

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

47 { return PndMdtID::Box(GetDetectorID()); }
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:19
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42

◆ GetDetectorID()

Int_t PndMdtDigi::GetDetectorID ( ) const
inline

Definition at line 42 of file PndMdtDigi.h.

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

42 { return fDetectorID; }

◆ GetEvtNumber()

Int_t PndMdtDigi::GetEvtNumber ( ) const
inline

Definition at line 40 of file PndMdtDigi.h.

40 { return fEvtNo; }

◆ GetLabPosition()

TVector3 PndMdtDigi::GetLabPosition ( ) const
inline

Definition at line 41 of file PndMdtDigi.h.

41 { return fLabPos; }

◆ GetLayer()

Short_t PndMdtDigi::GetLayer ( ) const
inline

Definition at line 45 of file PndMdtDigi.h.

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

45 { return PndMdtID::Layer(GetDetectorID()); }
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:18
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42

◆ GetLayerID()

Short_t PndMdtDigi::GetLayerID ( ) const
inline

Definition at line 46 of file PndMdtDigi.h.

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

46 { return PndMdtID::Layer(GetDetectorID()); }
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:18
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42

◆ GetModule()

Short_t PndMdtDigi::GetModule ( ) const
inline

Definition at line 43 of file PndMdtDigi.h.

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

43 { return PndMdtID::Module(GetDetectorID()); }
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:16
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42

◆ GetNPoints()

Short_t PndMdtDigi::GetNPoints ( ) const
inline

Definition at line 52 of file PndMdtDigi.h.

52 { return fPointList.size(); }

◆ GetPointList()

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

Definition at line 53 of file PndMdtDigi.h.

References PndMdtDigi().

53 { return fPointList; }

◆ GetSector()

Short_t PndMdtDigi::GetSector ( ) const
inline

Definition at line 44 of file PndMdtDigi.h.

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

44 { return PndMdtID::Sector(GetDetectorID()); }
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:17

◆ GetStrip()

Short_t PndMdtDigi::GetStrip ( ) const
inline

Definition at line 49 of file PndMdtDigi.h.

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

49 { return PndMdtID::Strip(GetDetectorID()); }
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42
static Short_t Strip(Int_t detID)
Definition: PndMdtID.h:21

◆ GetWire()

Short_t PndMdtDigi::GetWire ( ) const
inline

Definition at line 48 of file PndMdtDigi.h.

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

48 { return PndMdtID::Wire(GetDetectorID()); }
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:20

◆ isWire()

Bool_t PndMdtDigi::isWire ( ) const
inline

Definition at line 50 of file PndMdtDigi.h.

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

50 { return PndMdtID::isWire(GetDetectorID()); }
static Bool_t isWire(Int_t detID)
Definition: PndMdtID.h:22
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:42

◆ 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 21 of file PndMdtDigi.h.

References operator<().

22  {
23  std::cout << " opt = " << opt << std::endl;
24  return;
25  }

◆ SetPosition()

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

Public method Clear Resets the flag to -1Accessors

Definition at line 35 of file PndMdtDigi.h.

35 { fLabPos = pos; };

◆ X()

Double_t PndMdtDigi::X ( ) const
inline

Definition at line 37 of file PndMdtDigi.h.

37 { return fLabPos.X(); }

◆ Y()

Double_t PndMdtDigi::Y ( ) const
inline

Definition at line 38 of file PndMdtDigi.h.

38 { return fLabPos.Y(); }

◆ Z()

Double_t PndMdtDigi::Z ( ) const
inline

Definition at line 39 of file PndMdtDigi.h.

39 { return fLabPos.Z(); }

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