FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
PndHypHit Class Reference

#include <PndHypHit.h>

Inheritance diagram for PndHypHit:

Public Member Functions

 PndHypHit ()
 
 PndHypHit (Int_t detID, TString detName, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge, Int_t NDigiHits)
 
virtual ~PndHypHit ()
 
void SetDetName (TString name)
 
void SetCharge (Double_t charge)
 
void SetNDigiHits (Int_t pixel)
 
void SetBotIndex (Int_t id)
 
TString GetDetName () const
 
Double_t GetCharge () const
 
Int_t GetNDigiHits () const
 
TVector3 GetPosition () const
 
Int_t GetBotIndex () const
 
Double_t GetEloss () const
 
virtual void Print (const Option_t *opt=0) const
 

Private Member Functions

 ClassDef (PndHypHit, 7)
 bottom side of strip clusters More...
 

Private Attributes

TString fDetName
 
Double_t fCharge
 
Int_t fNDigiHits
 
Int_t fBotIndex
 

Friends

std::ostreamoperator<< (std::ostream &out, const PndHypHit &hit)
 

Detailed Description

PndSdsHit.h

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

A hit in a silicon sensor. In addition to the base class FairHit, it holds the number of digis & charge entry. There is also a bottom index for double sided strip sensors. All coordinates are in the LAB frame.

modified to PndHypHit by A. Sanchez a.san.nosp@m.chez.nosp@m.@gsi..nosp@m.de

Definition at line 32 of file PndHypHit.h.

Constructor & Destructor Documentation

PndHypHit::PndHypHit ( )

Default constructor (not for use)

Definition at line 16 of file PndHypHit.cxx.

16  :
17  fDetName(""),
18  fCharge(0.),
19  fNDigiHits(0),
20  fBotIndex(-1)
21 {
22 }
TString fDetName
Definition: PndHypHit.h:103
Double_t fCharge
Definition: PndHypHit.h:105
Int_t fNDigiHits
Definition: PndHypHit.h:106
Int_t fBotIndex
Definition: PndHypHit.h:107
PndHypHit::PndHypHit ( Int_t  detID,
TString  detName,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  index,
Double_t  charge,
Int_t  NDigiHits 
)

Standard constructor with all paramneters

Parameters
trackIDTrack ID
detIDDetector ID
detNameDetector Name
posPosition vector [cm]
dposPosition error vector [cm]
chargeCharge measured in hit
indexArray index of ClusterCand
NDigiHitsNumber of digis fired for this event

Definition at line 28 of file PndHypHit.cxx.

29  : FairHit(detID, pos, dpos, index),
30  fDetName(detName),
31  fCharge(charge),
32  fNDigiHits(NDigiHits),
33  fBotIndex(-1)
34 {}
TVector3 pos
TString fDetName
Definition: PndHypHit.h:103
Double_t fCharge
Definition: PndHypHit.h:105
Int_t fNDigiHits
Definition: PndHypHit.h:106
Int_t fBotIndex
Definition: PndHypHit.h:107
PndHypHit::~PndHypHit ( )
virtual

Destructor

Definition at line 42 of file PndHypHit.cxx.

42 {}

Member Function Documentation

PndHypHit::ClassDef ( PndHypHit  ,
 
)
private

bottom side of strip clusters

Int_t PndHypHit::GetBotIndex ( ) const
inline

Definition at line 88 of file PndHypHit.h.

References fBotIndex.

Referenced by PndHypIdealTrackingTask::Exec().

88 { return fBotIndex;}
Int_t fBotIndex
Definition: PndHypHit.h:107
Double_t PndHypHit::GetCharge ( ) const
inline

Definition at line 85 of file PndHypHit.h.

References fCharge.

85 {return fCharge;};
Double_t fCharge
Definition: PndHypHit.h:105
TString PndHypHit::GetDetName ( ) const
inline

Definition at line 83 of file PndHypHit.h.

References fDetName.

Referenced by PndHypRecoHit::PndHypRecoHit().

83 { return fDetName; }
TString fDetName
Definition: PndHypHit.h:103
Double_t PndHypHit::GetEloss ( ) const
inline

Definition at line 89 of file PndHypHit.h.

References fCharge.

89 { return (fCharge * 3.61e-9);} // 3.6 eV/Electron in Silicon
Double_t fCharge
Definition: PndHypHit.h:105
Int_t PndHypHit::GetNDigiHits ( ) const
inline

Definition at line 86 of file PndHypHit.h.

References fNDigiHits.

86 { return fNDigiHits; }
Int_t fNDigiHits
Definition: PndHypHit.h:106
TVector3 PndHypHit::GetPosition ( ) const
inline

Definition at line 87 of file PndHypHit.h.

References fX, fY, and fZ.

Referenced by PndHypMicroWriter::Exec(), and PndHypRecoHit::PndHypRecoHit().

87 { 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
void PndHypHit::Print ( const Option_t *  opt = 0) const
virtual

Screen output

Definition at line 48 of file PndHypHit.cxx.

48  {
49  std::cout << *this << " opt="<<opt<<std::endl;
50 
51 }
void PndHypHit::SetBotIndex ( Int_t  id)
inline

Definition at line 81 of file PndHypHit.h.

References fBotIndex.

Referenced by PndHypStripClusterTask::Exec().

81 { fBotIndex = id;}
Int_t fBotIndex
Definition: PndHypHit.h:107
void PndHypHit::SetCharge ( Double_t  charge)
inline

Definition at line 79 of file PndHypHit.h.

References fCharge.

79 {fCharge = charge;};
Double_t fCharge
Definition: PndHypHit.h:105
void PndHypHit::SetDetName ( TString  name)
inline

Accessors

Definition at line 78 of file PndHypHit.h.

References fDetName, and name.

78 {fDetName = name;};
TString fDetName
Definition: PndHypHit.h:103
TString name
void PndHypHit::SetNDigiHits ( Int_t  pixel)
inline

Definition at line 80 of file PndHypHit.h.

References fNDigiHits.

80 {fNDigiHits = pixel;};
Int_t fNDigiHits
Definition: PndHypHit.h:106

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream out,
const PndHypHit hit 
)
friend

Definition at line 34 of file PndHypHit.h.

34  {
35 
36  out << "Hyp hit in " << hit.GetDetName() << " at" << std::endl;
37  out << "(" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
38  << " with " << hit.GetCharge() << " e" << ", Cluster No. " << hit.GetRefIndex();
39  if (hit.GetBotIndex() > -1)
40  out << " " << hit.GetBotIndex();
41  out << std::endl;
42 
43  return out;
44  }
TString GetDetName() const
Definition: PndHypHit.h:83
Int_t GetBotIndex() const
Definition: PndHypHit.h:88
TFile * out
Definition: reco_muo.C:20
Double_t GetCharge() const
Definition: PndHypHit.h:85

Member Data Documentation

Int_t PndHypHit::fBotIndex
private

Definition at line 107 of file PndHypHit.h.

Referenced by GetBotIndex(), and SetBotIndex().

Double_t PndHypHit::fCharge
private

Definition at line 105 of file PndHypHit.h.

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

TString PndHypHit::fDetName
private

Definition at line 103 of file PndHypHit.h.

Referenced by GetDetName(), and SetDetName().

Int_t PndHypHit::fNDigiHits
private

Definition at line 106 of file PndHypHit.h.

Referenced by GetNDigiHits(), and SetNDigiHits().


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