FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndFtofHit Class Reference

#include <PndFtofHit.h>

Inheritance diagram for PndFtofHit:

Public Member Functions

 PndFtofHit ()
 
 PndFtofHit (Int_t trackID, Int_t detID, TString detName, Double_t time, Double_t dt, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge)
 
virtual ~PndFtofHit ()
 
void SetTrackID (Int_t id)
 
void SetDetName (TString name)
 
void SetCharge (Double_t charge)
 
void SetTime (Double_t time)
 
TString GetDetName () const
 
Int_t GetTrackID ()
 
Double_t GetCharge ()
 
Double_t GetTime ()
 
Double_t GetDt ()
 
TVector3 GetPosition () const
 
virtual void Print (const Option_t *opt=0) const
 
 ClassDef (PndFtofHit, 6)
 

Public Attributes

TString fDetName
 
Int_t fTrackID
 
Double_t fCharge
 
Double_t ftime
 
Double_t fdt
 

Detailed Description

PndFtofHit.h

Author
A. Sanchez a.san.nosp@m.chez.nosp@m.@gsi..nosp@m.de

A hit in a tof wall station of Ftof. In addition to the base class FairHit, it holds the number of the reconstructed hits (column and row).

Definition at line 23 of file PndFtofHit.h.

Constructor & Destructor Documentation

PndFtofHit::PndFtofHit ( )

Default constructor (not for use)

Definition at line 12 of file PndFtofHit.cxx.

12  {
13 }
PndFtofHit::PndFtofHit ( Int_t  trackID,
Int_t  detID,
TString  detName,
Double_t  time,
Double_t  dt,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  index,
Double_t  charge 
)

Standard constructor with all paramneters

Parameters
trackIDTrack ID
detIDDetector ID
detNameDetector Name
posPosition vector [cm]
dposPosition error vector [cm]
chargeCharge measured in hit
NPixelHitsNumber of pixels fired for this event

Definition at line 19 of file PndFtofHit.cxx.

References fCharge, fDetName, fdt, ftime, and fTrackID.

21 : FairHit(detID, pos, dpos, index) {
22  fDetName = detName;
23  fTrackID = trackId;
24  fCharge = charge;
25  ftime = time;
26  fdt = dt;
27 
28  SetTimeStamp(time);
29  //fNPixelHits = NPixelHits;
30 }
TVector3 pos
Double_t fCharge
Definition: PndFtofHit.h:74
Int_t fTrackID
Definition: PndFtofHit.h:73
Double_t fdt
Definition: PndFtofHit.h:74
Double_t ftime
Definition: PndFtofHit.h:74
TString fDetName
Definition: PndFtofHit.h:72
PndFtofHit::~PndFtofHit ( )
virtual

Destructor

Definition at line 38 of file PndFtofHit.cxx.

38 {}

Member Function Documentation

PndFtofHit::ClassDef ( PndFtofHit  ,
 
)
Double_t PndFtofHit::GetCharge ( )
inline

Definition at line 59 of file PndFtofHit.h.

References fCharge.

59 {return fCharge;};
Double_t fCharge
Definition: PndFtofHit.h:74
TString PndFtofHit::GetDetName ( ) const
inline

Definition at line 57 of file PndFtofHit.h.

References fDetName.

57 { return fDetName; }
TString fDetName
Definition: PndFtofHit.h:72
Double_t PndFtofHit::GetDt ( )
inline

Definition at line 61 of file PndFtofHit.h.

References fdt.

61 {return fdt;};
Double_t fdt
Definition: PndFtofHit.h:74
TVector3 PndFtofHit::GetPosition ( ) const
inline

Definition at line 63 of file PndFtofHit.h.

References fX, fY, and fZ.

63 { return TVector3(fX, fY, fZ); }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
Double_t PndFtofHit::GetTime ( )
inline

Definition at line 60 of file PndFtofHit.h.

References ftime.

Referenced by PndPidCorrelator::GetFtofInfo().

60 {return ftime;};
Double_t ftime
Definition: PndFtofHit.h:74
Int_t PndFtofHit::GetTrackID ( )
inline

Definition at line 58 of file PndFtofHit.h.

References fTrackID.

58 {return fTrackID;};
Int_t fTrackID
Definition: PndFtofHit.h:73
void PndFtofHit::Print ( const Option_t *  opt = 0) const
virtual

Screen output

Definition at line 44 of file PndFtofHit.cxx.

References fDetName, fX, fY, and fZ.

44  {
45  std::cout << "Forward tof hit in detector " << fDetName << " at ("
46  << fX << ", " << fY << ", " << fZ << ") cm "
47  << ", Point " << fRefIndex << std::endl;
48 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
TString fDetName
Definition: PndFtofHit.h:72
void PndFtofHit::SetCharge ( Double_t  charge)
inline

Definition at line 53 of file PndFtofHit.h.

References fCharge.

53 {fCharge = charge;};
Double_t fCharge
Definition: PndFtofHit.h:74
void PndFtofHit::SetDetName ( TString  name)
inline

Definition at line 52 of file PndFtofHit.h.

References fDetName, and name.

52 {fDetName = name;};
TString name
TString fDetName
Definition: PndFtofHit.h:72
void PndFtofHit::SetTime ( Double_t  time)
inline

Definition at line 54 of file PndFtofHit.h.

References ftime.

54 {ftime = time;};
Double_t ftime
Definition: PndFtofHit.h:74
void PndFtofHit::SetTrackID ( Int_t  id)
inline

Accessors

Definition at line 51 of file PndFtofHit.h.

References fTrackID.

51 {fTrackID = id;};
Int_t fTrackID
Definition: PndFtofHit.h:73

Member Data Documentation

Double_t PndFtofHit::fCharge

Definition at line 74 of file PndFtofHit.h.

Referenced by GetCharge(), PndFtofHit(), and SetCharge().

TString PndFtofHit::fDetName

Definition at line 72 of file PndFtofHit.h.

Referenced by GetDetName(), PndFtofHit(), Print(), and SetDetName().

Double_t PndFtofHit::fdt

Definition at line 74 of file PndFtofHit.h.

Referenced by GetDt(), and PndFtofHit().

Double_t PndFtofHit::ftime

Definition at line 74 of file PndFtofHit.h.

Referenced by GetTime(), PndFtofHit(), and SetTime().

Int_t PndFtofHit::fTrackID

Definition at line 73 of file PndFtofHit.h.

Referenced by GetTrackID(), PndFtofHit(), and SetTrackID().


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