FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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=0) 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 &)
 

Private Member Functions

 ClassDef (PndMdtDigi, 2)
 

Private Attributes

Int_t fDetectorID
 
TVector3 fLabPos
 
std::vector< Int_t > fPointList
 
Double_t fSignalWidth
 
Int_t fEvtNo
 

Detailed Description

Definition at line 10 of file PndMdtDigi.h.

Constructor & Destructor Documentation

PndMdtDigi::PndMdtDigi ( )

Definition at line 4 of file PndMdtDigi.cxx.

4  :
5 fDetectorID(-1),
6 fLabPos(0.,0.,0.),
7 fPointList(),
8 fSignalWidth(0.),
9 fEvtNo(0)
10 {
11 }
Int_t fEvtNo
Definition: PndMdtDigi.h:62
std::vector< Int_t > fPointList
Definition: PndMdtDigi.h:60
Double_t fSignalWidth
Definition: PndMdtDigi.h:61
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Int_t fDetectorID
Definition: PndMdtDigi.h:58
PndMdtDigi::PndMdtDigi ( Int_t  detID,
TVector3 &  pos,
std::vector< Int_t >  pointList 
)

Definition at line 14 of file PndMdtDigi.cxx.

14  :
15 fDetectorID(detID),
16 fLabPos(pos),
17 fPointList(pointList),
18 fSignalWidth(0.),
19 fEvtNo(0)
20 {
21  SetLinks(FairMultiLinkedData("MdtPoint", pointList));
22 }
TVector3 pos
Int_t fEvtNo
Definition: PndMdtDigi.h:62
std::vector< Int_t > fPointList
Definition: PndMdtDigi.h:60
Double_t fSignalWidth
Definition: PndMdtDigi.h:61
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Int_t fDetectorID
Definition: PndMdtDigi.h:58
PndMdtDigi::PndMdtDigi ( Int_t  detID,
TVector3 &  pos,
Int_t  evtNo 
)

Definition at line 24 of file PndMdtDigi.cxx.

24  :
25 fDetectorID(detID),
26 fLabPos(pos),
27 fPointList(),
28 fSignalWidth(0.),
29 fEvtNo(evtNo)
30 {
31 }
TVector3 pos
Int_t fEvtNo
Definition: PndMdtDigi.h:62
std::vector< Int_t > fPointList
Definition: PndMdtDigi.h:60
Double_t fSignalWidth
Definition: PndMdtDigi.h:61
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Int_t fDetectorID
Definition: PndMdtDigi.h:58
PndMdtDigi::~PndMdtDigi ( )
virtual

Destructor

Definition at line 34 of file PndMdtDigi.cxx.

35 {
36 }
PndMdtDigi::PndMdtDigi ( const PndMdtDigi copy)

Definition at line 38 of file PndMdtDigi.cxx.

References fPointList.

38  : FairTimeStamp(),
40  fLabPos(copy.fLabPos),
41  fPointList(copy.fPointList),
43  fEvtNo(copy.fEvtNo)
44 {
45  SetTimeStamp(copy.GetTimeStamp());
46  SetTimeStampError(copy.GetTimeStampError());
47  SetLinks(FairMultiLinkedData("MdtPoint", copy.fPointList));
48 }
Int_t fEvtNo
Definition: PndMdtDigi.h:62
std::vector< Int_t > fPointList
Definition: PndMdtDigi.h:60
Double_t fSignalWidth
Definition: PndMdtDigi.h:61
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Int_t fDetectorID
Definition: PndMdtDigi.h:58

Member Function Documentation

PndMdtDigi::ClassDef ( PndMdtDigi  ,
 
)
private
Short_t PndMdtDigi::GetBox ( ) const
inline

Definition at line 45 of file PndMdtDigi.h.

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

Referenced by PndMdtClusterTask::MdtMapping().

45 { return PndMdtID::Box(GetDetectorID());}
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:23
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Int_t PndMdtDigi::GetDetectorID ( ) const
inline
Int_t PndMdtDigi::GetEvtNumber ( ) const
inline

Definition at line 38 of file PndMdtDigi.h.

References fEvtNo.

38 { return fEvtNo; }
Int_t fEvtNo
Definition: PndMdtDigi.h:62
TVector3 PndMdtDigi::GetLabPosition ( ) const
inline

Definition at line 39 of file PndMdtDigi.h.

References fLabPos.

Referenced by PndMdtHitProducer::Exec_old().

39 { return fLabPos; }
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Short_t PndMdtDigi::GetLayer ( ) const
inline

Definition at line 43 of file PndMdtDigi.h.

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

Referenced by PndMdtHitProducer::Exec().

43 { return PndMdtID::Layer(GetDetectorID());}
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:22
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Short_t PndMdtDigi::GetLayerID ( ) const
inline

Definition at line 44 of file PndMdtDigi.h.

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

Referenced by PndMdtHitProducer::Exec_old(), and PndMdtClusterTask::MdtMapping().

44 { return PndMdtID::Layer(GetDetectorID());}
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:22
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Short_t PndMdtDigi::GetModule ( ) const
inline

Definition at line 41 of file PndMdtDigi.h.

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

Referenced by PndMdtHitProducer::Exec(), PndMdtHitProducer::Exec_old(), and PndMdtClusterTask::MdtMapping().

41 { return PndMdtID::Module(GetDetectorID());}
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:20
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Short_t PndMdtDigi::GetNPoints ( ) const
inline

Definition at line 50 of file PndMdtDigi.h.

References fPointList.

50 { return fPointList.size(); }
std::vector< Int_t > fPointList
Definition: PndMdtDigi.h:60
const std::vector<Int_t>& PndMdtDigi::GetPointList ( )
inline

Definition at line 51 of file PndMdtDigi.h.

References fPointList.

Referenced by PndMdtHitProducer::Exec_old().

51 {return fPointList; }
std::vector< Int_t > fPointList
Definition: PndMdtDigi.h:60
Short_t PndMdtDigi::GetSector ( ) const
inline

Definition at line 42 of file PndMdtDigi.h.

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

Referenced by PndMdtHitProducer::Exec_old(), and PndMdtClusterTask::MdtMapping().

42 { return PndMdtID::Sector(GetDetectorID());}
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:21
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Short_t PndMdtDigi::GetStrip ( ) const
inline

Definition at line 47 of file PndMdtDigi.h.

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

Referenced by PndMdtHitProducer::Exec_old().

47 { return PndMdtID::Strip(GetDetectorID());}
static Short_t Strip(Int_t detID)
Definition: PndMdtID.h:25
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Short_t PndMdtDigi::GetWire ( ) const
inline

Definition at line 46 of file PndMdtDigi.h.

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

Referenced by PndMdtClusterTask::MdtMapping().

46 { return PndMdtID::Wire(GetDetectorID());}
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:24
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
Bool_t PndMdtDigi::isWire ( ) const
inline

Definition at line 48 of file PndMdtDigi.h.

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

Referenced by PndMdtHitProducer::Exec().

48 { return PndMdtID::isWire(GetDetectorID()); }
static Bool_t isWire(Int_t detID)
Definition: PndMdtID.h:26
Int_t GetDetectorID() const
Definition: PndMdtDigi.h:40
bool PndMdtDigi::operator< ( const PndMdtDigi rValue) const

Definition at line 49 of file PndMdtDigi.cxx.

50 {
51  return (GetTimeStamp() < rValue.GetTimeStamp());
52 }
virtual void PndMdtDigi::Print ( const Option_t *  opt = 0) const
inlinevirtual

Output to screen (not yet implemented)

Definition at line 23 of file PndMdtDigi.h.

Referenced by PndMdtHitProducer::Exec().

23 {std::cout << " opt = " << opt << std::endl; return;}
void PndMdtDigi::SetPosition ( const TVector3 &  pos)
inline

Public method Clear Resets the flag to -1Accessors

Definition at line 33 of file PndMdtDigi.h.

References fLabPos, and pos.

33 { fLabPos = pos; };
TVector3 pos
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Double_t PndMdtDigi::X ( ) const
inline

Definition at line 35 of file PndMdtDigi.h.

References fLabPos.

Referenced by PndMdtHitProducer::Exec().

35 { return fLabPos.X(); }
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Double_t PndMdtDigi::Y ( ) const
inline

Definition at line 36 of file PndMdtDigi.h.

References fLabPos.

Referenced by PndMdtHitProducer::Exec().

36 { return fLabPos.Y(); }
TVector3 fLabPos
Definition: PndMdtDigi.h:59
Double_t PndMdtDigi::Z ( ) const
inline

Definition at line 37 of file PndMdtDigi.h.

References fLabPos.

Referenced by PndMdtHitProducer::Exec().

37 { return fLabPos.Z(); }
TVector3 fLabPos
Definition: PndMdtDigi.h:59

Member Data Documentation

Int_t PndMdtDigi::fDetectorID
private

Definition at line 58 of file PndMdtDigi.h.

Referenced by GetDetectorID().

Int_t PndMdtDigi::fEvtNo
private

Definition at line 62 of file PndMdtDigi.h.

Referenced by GetEvtNumber().

TVector3 PndMdtDigi::fLabPos
private

Definition at line 59 of file PndMdtDigi.h.

Referenced by GetLabPosition(), SetPosition(), X(), Y(), and Z().

std::vector<Int_t> PndMdtDigi::fPointList
private

Definition at line 60 of file PndMdtDigi.h.

Referenced by GetNPoints(), GetPointList(), and PndMdtDigi().

Double_t PndMdtDigi::fSignalWidth
private

Definition at line 61 of file PndMdtDigi.h.


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