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

#include <PndSttHelixHit.h>

Inheritance diagram for PndSttHelixHit:

Public Member Functions

 PndSttHelixHit ()
 
 PndSttHelixHit (Int_t detID, Int_t tubeID, Int_t hitindex, Int_t mcindex, TVector3 &pos, TVector3 &dpos, Double_t isochrone, Double_t isochroneError, Double_t dedx)
 
virtual ~PndSttHelixHit ()
 
virtual void Print (const Option_t *opt=0) const
 
void Clear ()
 
Int_t GetHitIndex ()
 
Double_t GetIsochrone () const
 
Double_t GetIsochroneError () const
 
Double_t GetdEdx () const
 
void SetHitIndex (Int_t hitindex)
 
void SetIsochrone (Double_t isochrone)
 
void SetIsochroneError (Double_t isochroneError)
 
void SetdEdx (Double_t dedx)
 
void Print ()
 
void SetTubeID (Int_t tubeid)
 
Int_t GetTubeID ()
 

Protected Member Functions

 ClassDef (PndSttHelixHit, 2)
 

Protected Attributes

Int_t fHitIndex
 
Double_t fdEdx
 
Double_t fIsochrone
 
Double_t fIsochroneError
 
Int_t fTubeID
 

Detailed Description

Definition at line 15 of file PndSttHelixHit.h.

Constructor & Destructor Documentation

PndSttHelixHit::PndSttHelixHit ( )

Default constructor

Definition at line 17 of file PndSttHelixHit.cxx.

References Clear().

17  :
18  FairHit(), fHitIndex(0), fdEdx(0), fIsochrone(0), fIsochroneError(0), fTubeID(0)
19 {
20  Clear();
21 }
Double_t fIsochrone
Double_t fIsochroneError
PndSttHelixHit::PndSttHelixHit ( Int_t  detID,
Int_t  tubeID,
Int_t  hitindex,
Int_t  mcindex,
TVector3 &  pos,
TVector3 &  dpos,
Double_t  isochrone,
Double_t  isochroneError,
Double_t  dedx 
)

Standard constructor

Parameters
detIDDetector unique volume ID
tubeIDUnique tube ID
hitIndexIndex of corresponding STTHit
mcindexIndex of corresponding MCPoint
posReco position coordinates X Y Z [cm]
dposErrors on reco position coordinates [cm]
isochroneDrift radius [cm]
isochroneErrorError on drift radius [cm]
dedxDe/Dx

Definition at line 23 of file PndSttHelixHit.cxx.

24  : FairHit(detID, pos, dpos, mcindex),
25  fHitIndex(hitindex), fdEdx(dedx), fIsochrone(isochrone), fIsochroneError(isochroneError), fTubeID(tubeID)
26 {
27  SetLink(FairLink("STTHit", hitindex));
28 }
TVector3 pos
Double_t fIsochrone
Double_t fIsochroneError
PndSttHelixHit::~PndSttHelixHit ( )
virtual

Destructor

Definition at line 51 of file PndSttHelixHit.cxx.

52 {
53 }

Member Function Documentation

PndSttHelixHit::ClassDef ( PndSttHelixHit  ,
 
)
protected
void PndSttHelixHit::Clear ( void  )

Public method Clear

Definition at line 39 of file PndSttHelixHit.cxx.

References fdEdx, fHitIndex, fIsochrone, fIsochroneError, and fTubeID.

Referenced by PndSttHelixHit().

40 {
41  fHitIndex = 0;
42  fdEdx = 0.;
43  fTubeID = 0;
44  fIsochrone = 0.;
45  fIsochroneError = 0.;
46  ResetLinks();
47 }
Double_t fIsochrone
Double_t fIsochroneError
Double_t PndSttHelixHit::GetdEdx ( ) const
inline

Definition at line 59 of file PndSttHelixHit.h.

References fdEdx.

Referenced by GetEntriesFast().

59 { return fdEdx; };
Int_t PndSttHelixHit::GetHitIndex ( )
inline

Accessors

Definition at line 54 of file PndSttHelixHit.h.

References fHitIndex.

Referenced by PndSttTrackFitterQATask::Exec(), GetEntriesFast(), and Print().

54 {return fHitIndex;}
Double_t PndSttHelixHit::GetIsochrone ( ) const
inline

Accessors

Definition at line 57 of file PndSttHelixHit.h.

References fIsochrone.

Referenced by Print().

57 { return fIsochrone; };
Double_t fIsochrone
Double_t PndSttHelixHit::GetIsochroneError ( ) const
inline

Definition at line 58 of file PndSttHelixHit.h.

References fIsochroneError.

58 { return fIsochroneError; };
Double_t fIsochroneError
Int_t PndSttHelixHit::GetTubeID ( )
inline

Definition at line 70 of file PndSttHelixHit.h.

References fTubeID.

70 { return fTubeID; }
virtual void PndSttHelixHit::Print ( const Option_t *  opt = 0) const
inlinevirtual

Output to screen

Definition at line 48 of file PndSttHelixHit.h.

48 {std::cout<< " opt = " << opt << std::endl;return;}
void PndSttHelixHit::Print ( )

Definition at line 55 of file PndSttHelixHit.cxx.

References GetHitIndex(), and GetIsochrone().

56 {
57  // reco & center positions
58  cout << "position " << GetX() << " " << GetY() << " " << GetZ() << endl;
59 
60  // index
61  cout << "mc, hit indexes " << GetRefIndex() << " " << GetHitIndex() << endl;
62 
63  // drift
64  cout << "drift radius " << GetIsochrone() << endl;
65 
66 }
Int_t GetHitIndex()
Double_t GetIsochrone() const
void PndSttHelixHit::SetdEdx ( Double_t  dedx)
inline

Definition at line 65 of file PndSttHelixHit.h.

References fdEdx.

Referenced by PndSttTrackFinderIdeal::DoFind(), and PndSttHelixHitProducer::Exec().

65 { fdEdx = dedx; }
void PndSttHelixHit::SetHitIndex ( Int_t  hitindex)
inline

Modifiers

Definition at line 62 of file PndSttHelixHit.h.

References fHitIndex.

62 {fHitIndex = hitindex;}
void PndSttHelixHit::SetIsochrone ( Double_t  isochrone)
inline

Definition at line 63 of file PndSttHelixHit.h.

References fIsochrone.

63 { fIsochrone = isochrone; };
Double_t fIsochrone
void PndSttHelixHit::SetIsochroneError ( Double_t  isochroneError)
inline

Definition at line 64 of file PndSttHelixHit.h.

References fIsochroneError.

64 { fIsochroneError = isochroneError; };
Double_t fIsochroneError
void PndSttHelixHit::SetTubeID ( Int_t  tubeid)
inline

Definition at line 69 of file PndSttHelixHit.h.

References fTubeID.

69 { fTubeID = tubeid; }

Member Data Documentation

Double_t PndSttHelixHit::fdEdx
protected

de/dx

Definition at line 78 of file PndSttHelixHit.h.

Referenced by Clear(), GetdEdx(), and SetdEdx().

Int_t PndSttHelixHit::fHitIndex
protected

This variable contains the hit index

Definition at line 75 of file PndSttHelixHit.h.

Referenced by Clear(), GetHitIndex(), and SetHitIndex().

Double_t PndSttHelixHit::fIsochrone
protected

isochrone

Definition at line 81 of file PndSttHelixHit.h.

Referenced by Clear(), GetIsochrone(), and SetIsochrone().

Double_t PndSttHelixHit::fIsochroneError
protected

Definition at line 81 of file PndSttHelixHit.h.

Referenced by Clear(), GetIsochroneError(), and SetIsochroneError().

Int_t PndSttHelixHit::fTubeID
protected

tubeID

Definition at line 84 of file PndSttHelixHit.h.

Referenced by Clear(), GetTubeID(), and SetTubeID().


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