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

#include <PndGemHit.h>

Inheritance diagram for PndGemHit:

Public Member Functions

 PndGemHit ()
 
 PndGemHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge, Int_t NDigiHits, TString fromStr="GEMPoint")
 
 PndGemHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t digi1, Int_t digi2, Double_t dr, Double_t dp, Int_t index, TString fromStr="GEMCluster")
 
 PndGemHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Double_t charge, Double_t time, Int_t digi1, Int_t digi2, Double_t dr, Double_t dp, Int_t index, TString fromStr="GEMCluster")
 
virtual ~PndGemHit ()
 
void SetCharge (Double_t charge)
 
void SetNDigiHits (Int_t pixel)
 
void SetBotIndex (Int_t id)
 
void SetErrors (Double_t dr, Double_t dp)
 
void SetDigiNr (Int_t digi1, Int_t digi2)
 
Double_t GetCharge () const
 
Int_t GetNDigiHits () const
 
TVector3 GetPosition () const
 
Int_t GetBotIndex () const
 
Double_t GetEloss () const
 
Double_t GetDr () const
 
Double_t GetDp () const
 
Int_t GetDigiNr (Int_t iside) const
 
Int_t GetSystemId () const
 
Int_t GetStationNr () const
 
Int_t GetSensorNr () const
 
virtual void Print (const Option_t *opt=0) const
 

Private Member Functions

 ClassDef (PndGemHit, 1)
 bottom side of strip clusters More...
 

Private Attributes

Int_t fDigiNr [2]
 
Double_t fDr
 
Double_t fDp
 
Double_t fCharge
 
Int_t fNDigiHits
 deposited Charge More...
 
Int_t fBotIndex
 number of fired Digis for this hit, More...
 

Friends

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

Detailed Description

PndGemHit.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.

Definition at line 27 of file PndGemHit.h.

Constructor & Destructor Documentation

PndGemHit::PndGemHit ( )

Default constructor (not for use)

Definition at line 20 of file PndGemHit.cxx.

21  : FairHit(),
22  fDr (-1),
23  fDp (-1),
24  fCharge (-1),
25  fNDigiHits (-1),
26  fBotIndex (-1)
27 {
28 }
Double_t fDr
Definition: PndGemHit.h:105
Double_t fCharge
Definition: PndGemHit.h:108
Double_t fDp
Definition: PndGemHit.h:106
Int_t fBotIndex
number of fired Digis for this hit,
Definition: PndGemHit.h:111
Int_t fNDigiHits
deposited Charge
Definition: PndGemHit.h:109
PndGemHit::PndGemHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  index,
Double_t  charge,
Int_t  NDigiHits,
TString  fromStr = "GEMPoint" 
)

Standard constructor with all paramneters

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

Definition at line 34 of file PndGemHit.cxx.

References fDigiNr.

36  : FairHit (detID, pos, dpos, index),
37  fDr (-1),
38  fDp (-1),
39  fCharge (charge),
40  fNDigiHits (NDigiHits),
41  fBotIndex (-1)
42 {
43  fDigiNr[0] = -1;
44  fDigiNr[1] = -1;
45  AddLink(FairLink(fromStr, index));
46 }
TVector3 pos
Double_t fDr
Definition: PndGemHit.h:105
Double_t fCharge
Definition: PndGemHit.h:108
Double_t fDp
Definition: PndGemHit.h:106
Int_t fBotIndex
number of fired Digis for this hit,
Definition: PndGemHit.h:111
Int_t fNDigiHits
deposited Charge
Definition: PndGemHit.h:109
Int_t fDigiNr[2]
Definition: PndGemHit.h:104
PndGemHit::PndGemHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  digi1,
Int_t  digi2,
Double_t  dr,
Double_t  dp,
Int_t  index,
TString  fromStr = "GEMCluster" 
)

Definition at line 50 of file PndGemHit.cxx.

References fDigiNr.

52  : FairHit(detID, pos, dpos, index),
53  fDr (dr),
54  fDp (dp),
55  fCharge (-1),
56  fNDigiHits (-1),
57  fBotIndex (-1)
58 {
59  fDigiNr[0] = digi1;
60  fDigiNr[1] = digi2;
61  AddLink(FairLink(fromStr, digi1));
62  AddLink(FairLink(fromStr, digi2));
63 }
TVector3 pos
Double_t fDr
Definition: PndGemHit.h:105
Double_t fCharge
Definition: PndGemHit.h:108
Double_t fDp
Definition: PndGemHit.h:106
Int_t fBotIndex
number of fired Digis for this hit,
Definition: PndGemHit.h:111
Int_t fNDigiHits
deposited Charge
Definition: PndGemHit.h:109
Int_t fDigiNr[2]
Definition: PndGemHit.h:104
PndGemHit::PndGemHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Double_t  charge,
Double_t  time,
Int_t  digi1,
Int_t  digi2,
Double_t  dr,
Double_t  dp,
Int_t  index,
TString  fromStr = "GEMCluster" 
)

Definition at line 67 of file PndGemHit.cxx.

References fDigiNr.

71  : FairHit(detID, pos, dpos, index),
72  fDr (dr),
73  fDp (dp),
74  fCharge (charge),
75  fNDigiHits (-1),
76  fBotIndex (-1)
77 {
78  fTimeStamp = time;
79  fDigiNr[0] = digi1;
80  fDigiNr[1] = digi2;
81  AddLink(FairLink(fromStr, digi1));
82  AddLink(FairLink(fromStr, digi2));
83 }
TVector3 pos
Double_t fDr
Definition: PndGemHit.h:105
Double_t fCharge
Definition: PndGemHit.h:108
Double_t fDp
Definition: PndGemHit.h:106
Int_t fBotIndex
number of fired Digis for this hit,
Definition: PndGemHit.h:111
Int_t fNDigiHits
deposited Charge
Definition: PndGemHit.h:109
Int_t fDigiNr[2]
Definition: PndGemHit.h:104
PndGemHit::~PndGemHit ( )
virtual

Destructor

Definition at line 88 of file PndGemHit.cxx.

88 {}

Member Function Documentation

PndGemHit::ClassDef ( PndGemHit  ,
 
)
private

bottom side of strip clusters

Int_t PndGemHit::GetBotIndex ( ) const
inline

Definition at line 72 of file PndGemHit.h.

References fBotIndex.

72 { return fBotIndex;}
Int_t fBotIndex
number of fired Digis for this hit,
Definition: PndGemHit.h:111
Double_t PndGemHit::GetCharge ( ) const
inline

Definition at line 69 of file PndGemHit.h.

References fCharge.

Referenced by PndGemFindHits::ConfirmHits2(), and PndGemTrackFinderOnHitsTB::FindTrackSegments().

69 { return fCharge;}
Double_t fCharge
Definition: PndGemHit.h:108
Int_t PndGemHit::GetDigiNr ( Int_t  iside) const
inline

Definition at line 77 of file PndGemHit.h.

References fDigiNr.

Referenced by PndTrkGemCombinatorial::CombinatorialSuppression(), PndGemFindHits::ConfirmHits2(), and PndSttMvdGemTracking::ConsiderCombinatorialEffect().

77 { if ( iside*(iside-1) == 0 ) return fDigiNr[iside]; return -1;};
Int_t fDigiNr[2]
Definition: PndGemHit.h:104
Double_t PndGemHit::GetDp ( ) const
inline
Double_t PndGemHit::GetDr ( ) const
inline
Double_t PndGemHit::GetEloss ( ) const
inline

Definition at line 73 of file PndGemHit.h.

References fCharge.

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

Definition at line 70 of file PndGemHit.h.

References fNDigiHits.

Referenced by PndGemTrackFinderOnHits::DoFind(), PndGemTrackFinderOnHits::FindTrackSegments(), and PndMvdGemTrackFinderOnHits::FindTrackSegments().

70 { return fNDigiHits;}
Int_t fNDigiHits
deposited Charge
Definition: PndGemHit.h:109
TVector3 PndGemHit::GetPosition ( ) const
inline
Int_t PndGemHit::GetSensorNr ( ) const
inline
Int_t PndGemHit::GetStationNr ( ) const
inline
Int_t PndGemHit::GetSystemId ( ) const
inline

Definition at line 79 of file PndGemHit.h.

79  {
80  return ( ( fDetectorID & ( 31<<27) ) >> 27); }
void PndGemHit::Print ( const Option_t *  opt = 0) const
virtual

overloaded accessors Screen output

Definition at line 94 of file PndGemHit.cxx.

94  {
95  std::cout << *this << " opt = " << opt << std::endl;
96 }
void PndGemHit::SetBotIndex ( Int_t  id)
inline

Definition at line 65 of file PndGemHit.h.

References fBotIndex.

Referenced by PndGemMatchHits::Exec().

65 { fBotIndex = id;}
Int_t fBotIndex
number of fired Digis for this hit,
Definition: PndGemHit.h:111
void PndGemHit::SetCharge ( Double_t  charge)
inline

Accessors

Definition at line 63 of file PndGemHit.h.

References fCharge.

63 { fCharge = charge;}
Double_t fCharge
Definition: PndGemHit.h:108
void PndGemHit::SetDigiNr ( Int_t  digi1,
Int_t  digi2 
)
inline

Definition at line 67 of file PndGemHit.h.

References fDigiNr.

67 { fDigiNr[0] = digi1; fDigiNr[1] = digi2; };
Int_t fDigiNr[2]
Definition: PndGemHit.h:104
void PndGemHit::SetErrors ( Double_t  dr,
Double_t  dp 
)
inline

Definition at line 66 of file PndGemHit.h.

References fDp, and fDr.

66 { fDr = dr; fDp = dp; };
Double_t fDr
Definition: PndGemHit.h:105
Double_t fDp
Definition: PndGemHit.h:106
void PndGemHit::SetNDigiHits ( Int_t  pixel)
inline

Definition at line 64 of file PndGemHit.h.

References fNDigiHits.

Referenced by PndGemTrackFinderOnHits::DoFind().

64 { fNDigiHits = pixel;}
Int_t fNDigiHits
deposited Charge
Definition: PndGemHit.h:109

Friends And Related Function Documentation

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

Definition at line 29 of file PndGemHit.h.

29  {
30  out << "Gem hit" /*in detector " << hit.GetDetName()*/ << " at ("
31  << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
32  << " with " << hit.GetCharge() << " e" << ", Cluster No. " << hit.GetRefIndex() << std::endl;
33 
34  return out;
35  }
Double_t GetCharge() const
Definition: PndGemHit.h:69
TFile * out
Definition: reco_muo.C:20

Member Data Documentation

Int_t PndGemHit::fBotIndex
private

number of fired Digis for this hit,

Definition at line 111 of file PndGemHit.h.

Referenced by GetBotIndex(), and SetBotIndex().

Double_t PndGemHit::fCharge
private

Definition at line 108 of file PndGemHit.h.

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

Int_t PndGemHit::fDigiNr[2]
private

Definition at line 104 of file PndGemHit.h.

Referenced by GetDigiNr(), PndGemHit(), and SetDigiNr().

Double_t PndGemHit::fDp
private

Definition at line 106 of file PndGemHit.h.

Referenced by GetDp(), and SetErrors().

Double_t PndGemHit::fDr
private

Definition at line 105 of file PndGemHit.h.

Referenced by GetDr(), and SetErrors().

Int_t PndGemHit::fNDigiHits
private

deposited Charge

Definition at line 109 of file PndGemHit.h.

Referenced by GetNDigiHits(), and SetNDigiHits().


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