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

#include <PndSdsHit.h>

Inheritance diagram for PndSdsHit:
PndSdsMergedHit

Public Member Functions

 PndSdsHit ()
 
 PndSdsHit (Int_t detID, Int_t sensorID, TVector3 &pos, TVector3 &dpos, Int_t clindex, Double_t charge, Int_t NDigiHits, Int_t mcindex)
 
virtual ~PndSdsHit ()
 
void SetSensorID (Int_t sensorID)
 
void SetCharge (Double_t charge)
 
void SetNDigiHits (Int_t pixel)
 
void SetClusterIndex (Int_t datasource, Int_t id, Int_t fileId=-1, Int_t evtId=-1)
 
void SetBotIndex (Int_t id)
 
void SetCov (TMatrixD cov)
 
Int_t GetSensorID () const
 
Double_t GetCharge () const
 
Int_t GetNDigiHits () const
 
TVector3 GetPosition () const
 
Int_t GetClusterIndex () const
 
Int_t GetTopIndex () const
 
Int_t GetBotIndex () const
 
Double_t GetEloss () const
 
TMatrixD GetCov () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
virtual void Print (const Option_t *opt=0) const
 

Private Member Functions

 ClassDef (PndSdsHit, 8)
 Hit covariance Matrix. More...
 

Private Attributes

Int_t fSensorID
 unique sensor ID More...
 
Double_t fCharge
 
Int_t fNDigiHits
 deposited Charge More...
 
Int_t fClusterIndex
 number of fired Digis for this hit, More...
 
Int_t fBotIndex
 top/pixel cluster index More...
 
TMatrixD fCov
 bottom side of strip clusters More...
 

Friends

class boost::serialization::access
 
std::ostreamoperator<< (std::ostream &out, const PndSdsHit &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.

Definition at line 30 of file PndSdsHit.h.

Constructor & Destructor Documentation

PndSdsHit::PndSdsHit ( )

Default constructor (not for use)

Definition at line 16 of file PndSdsHit.cxx.

16  : FairHit(),
17  fSensorID(-1),
18  fCharge(0),
19  fNDigiHits(0),
20  fClusterIndex(-1),
21  fBotIndex(-1),
22  fCov(3,3)
23 {
24 }
Int_t fBotIndex
top/pixel cluster index
Definition: PndSdsHit.h:143
Int_t fNDigiHits
deposited Charge
Definition: PndSdsHit.h:141
Int_t fClusterIndex
number of fired Digis for this hit,
Definition: PndSdsHit.h:142
Double_t fCharge
Definition: PndSdsHit.h:140
TMatrixD fCov
bottom side of strip clusters
Definition: PndSdsHit.h:144
Int_t fSensorID
unique sensor ID
Definition: PndSdsHit.h:139
PndSdsHit::PndSdsHit ( Int_t  detID,
Int_t  sensorID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  clindex,
Double_t  charge,
Int_t  NDigiHits,
Int_t  mcindex 
)

Standard constructor with all paramneters

Parameters
detIDDetector ID
sensorIDSensor ID
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 30 of file PndSdsHit.cxx.

32 : FairHit(detID, pos, dpos, mcindex),
33  fSensorID(sensorID),
34  fCharge(charge),
35  fNDigiHits(NDigiHits),
36  fClusterIndex(clindex),
37  fBotIndex(-1),
38  fCov(3,3)
39 {}
TVector3 pos
Int_t fBotIndex
top/pixel cluster index
Definition: PndSdsHit.h:143
Int_t fNDigiHits
deposited Charge
Definition: PndSdsHit.h:141
Int_t fClusterIndex
number of fired Digis for this hit,
Definition: PndSdsHit.h:142
Double_t fCharge
Definition: PndSdsHit.h:140
TMatrixD fCov
bottom side of strip clusters
Definition: PndSdsHit.h:144
Int_t fSensorID
unique sensor ID
Definition: PndSdsHit.h:139
PndSdsHit::~PndSdsHit ( )
virtual

Destructor

Definition at line 60 of file PndSdsHit.cxx.

60 {}

Member Function Documentation

PndSdsHit::ClassDef ( PndSdsHit  ,
 
)
private

Hit covariance Matrix.

Int_t PndSdsHit::GetBotIndex ( ) const
inline

Definition at line 96 of file PndSdsHit.h.

References fBotIndex.

Referenced by anaclust(), PndMvdEventAnaTask::GetRecoHit(), and main().

96 { return fBotIndex;}
Int_t fBotIndex
top/pixel cluster index
Definition: PndSdsHit.h:143
Double_t PndSdsHit::GetCharge ( ) const
inline

Definition at line 91 of file PndSdsHit.h.

References fCharge.

Referenced by PndMixBackgroundEvents::Exec().

91 { return fCharge;}
Double_t fCharge
Definition: PndSdsHit.h:140
Int_t PndSdsHit::GetClusterIndex ( ) const
inline
TMatrixD PndSdsHit::GetCov ( ) const
inline
Double_t PndSdsHit::GetEloss ( ) const
inline

Definition at line 97 of file PndSdsHit.h.

References fCharge.

Referenced by anaclust(), PndMvdQATask::CalculateDifference(), TtCracowTask::Exec(), TtLinFitTask::Exec(), for(), PndPidCorrelator::GetMvdInfo(), PndMvdEventAnaTask::PrintRecoHitInfo(), and TrackHits().

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

Definition at line 92 of file PndSdsHit.h.

References fNDigiHits.

Referenced by anaclust(), and PndMixBackgroundEvents::Exec().

92 { return fNDigiHits;}
Int_t fNDigiHits
deposited Charge
Definition: PndSdsHit.h:141
TVector3 PndSdsHit::GetPosition ( ) const
inline
Int_t PndSdsHit::GetSensorID ( ) const
inline
Int_t PndSdsHit::GetTopIndex ( ) const
inline

Definition at line 95 of file PndSdsHit.h.

References GetClusterIndex().

95 { return GetClusterIndex();}
Int_t GetClusterIndex() const
Definition: PndSdsHit.h:94
void PndSdsHit::Print ( const Option_t *  opt = 0) const
virtual
template<class Archive >
void PndSdsHit::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

overloaded accessors

Definition at line 116 of file PndSdsHit.h.

References fBotIndex, fCharge, fClusterIndex, fNDigiHits, and fSensorID.

117  {
118  ar & boost::serialization::base_object<FairHit>(*this);
119  ar & fSensorID;
120  ar & fCharge;
121  ar & fNDigiHits;
122  ar & fClusterIndex;
123  ar & fBotIndex;
124  //ar & fCov;
125  }
Int_t fBotIndex
top/pixel cluster index
Definition: PndSdsHit.h:143
Int_t fNDigiHits
deposited Charge
Definition: PndSdsHit.h:141
Int_t fClusterIndex
number of fired Digis for this hit,
Definition: PndSdsHit.h:142
Double_t fCharge
Definition: PndSdsHit.h:140
Int_t fSensorID
unique sensor ID
Definition: PndSdsHit.h:139
void PndSdsHit::SetBotIndex ( Int_t  id)
inline

Definition at line 86 of file PndSdsHit.h.

References fBotIndex.

Referenced by PndLmdStripClusterTask::Exec(), and PndSdsStripClusterTask::Exec().

86 { fBotIndex = id;}
Int_t fBotIndex
top/pixel cluster index
Definition: PndSdsHit.h:143
void PndSdsHit::SetCharge ( Double_t  charge)
inline

Definition at line 80 of file PndSdsHit.h.

References fCharge.

80 { fCharge = charge;}
Double_t fCharge
Definition: PndSdsHit.h:140
void PndSdsHit::SetClusterIndex ( Int_t  datasource,
Int_t  id,
Int_t  fileId = -1,
Int_t  evtId = -1 
)
inline

Definition at line 82 of file PndSdsHit.h.

References fClusterIndex.

Referenced by PndLmdPixelClusterTask::Exec(), PndLmdPixelHitProducerFast::Exec(), PndSdsHitProducerIdeal::Exec(), PndSdsIdealClusterTask::Exec(), and PndSdsPixelClusterTask::Exec().

82  {
83  fClusterIndex = id;
84  SetLink(FairLink(fileId, evtId, datasource, id));
85  }
Int_t fClusterIndex
number of fired Digis for this hit,
Definition: PndSdsHit.h:142
void PndSdsHit::SetCov ( TMatrixD  cov)

Definition at line 70 of file PndSdsHit.cxx.

References fCov.

Referenced by PndLmdPixelClusterTask::Exec(), PndLmdStripClusterTask::Exec(), PndSdsStripClusterTask::Exec(), PndMQSdsChargeWeightedPixelMapping::GetCluster(), and PndSdsChargeWeightedPixelMapping::GetCluster().

71 {
72  if (cov.GetNcols()==3 && cov.GetNrows()==3)
73  fCov = cov;
74  else {
75  Error("SetCov","matrix has wrong dimensions!");
76  cov.Print();
77  }
78 }
TMatrixD fCov
bottom side of strip clusters
Definition: PndSdsHit.h:144
void PndSdsHit::SetNDigiHits ( Int_t  pixel)
inline

Definition at line 81 of file PndSdsHit.h.

References fNDigiHits.

81 { fNDigiHits = pixel;}
Int_t fNDigiHits
deposited Charge
Definition: PndSdsHit.h:141
void PndSdsHit::SetSensorID ( Int_t  sensorID)
inline

Accessors

Definition at line 79 of file PndSdsHit.h.

References fSensorID.

79 { fSensorID = sensorID;}
Int_t fSensorID
unique sensor ID
Definition: PndSdsHit.h:139

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 134 of file PndSdsHit.h.

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

Definition at line 32 of file PndSdsHit.h.

32  {
33  out << "PndSdsHit in " << hit.GetSensorID() << " at" << std::endl;
34  out << "(" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
35  << " with " << hit.GetCharge() << " e" << " at Time: " << hit.GetTimeStamp() << " +/- " << hit.GetTimeStampError() << " , Cluster No. " << hit.GetClusterIndex();
36  if (hit.GetBotIndex() > -1)
37  out << " and bottom " << hit.GetBotIndex();
38  if (hit.GetRefIndex() > -1)
39  out << ", mc point id = " << hit.GetRefIndex();
40  else
41  out << ", noise hit without mc poit";
42  out << std::endl;
43 
44  out <<"hit.GetClusterIndex() "<<hit.GetClusterIndex() <<std::endl;
45  out <<"hit.GetBotIndex() "<< hit.GetBotIndex() <<std::endl;
46  out <<"hit.GetRefIndex() "<< hit.GetRefIndex()<<std::endl;
47  out <<"hit.GetNDigiHits() "<< hit.GetNDigiHits()<<std::endl;
48  out <<"hit.GetCharge() "<< hit.GetCharge()<<"("<<hit.GetEloss()<<" GeV)"<<std::endl;
49  out <<"hit.GetSensorID() "<< hit.GetSensorID()<<std::endl;
50  out <<"Error values in FairHit part: (dx,dy,dz) = ("<< hit.GetDx()<<","<<hit.GetDy()<<","<<hit.GetDz()<<")"<<std::endl;
51  return out;
52  }
Int_t GetNDigiHits() const
Definition: PndSdsHit.h:92
Double_t GetEloss() const
Definition: PndSdsHit.h:97
Double_t GetCharge() const
Definition: PndSdsHit.h:91
Int_t GetBotIndex() const
Definition: PndSdsHit.h:96
TFile * out
Definition: reco_muo.C:20
Int_t GetClusterIndex() const
Definition: PndSdsHit.h:94
Int_t GetSensorID() const
Definition: PndSdsHit.h:90

Member Data Documentation

Int_t PndSdsHit::fBotIndex
private

top/pixel cluster index

Definition at line 143 of file PndSdsHit.h.

Referenced by GetBotIndex(), serialize(), and SetBotIndex().

Double_t PndSdsHit::fCharge
private

Definition at line 140 of file PndSdsHit.h.

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

Int_t PndSdsHit::fClusterIndex
private

number of fired Digis for this hit,

Definition at line 142 of file PndSdsHit.h.

Referenced by GetClusterIndex(), serialize(), and SetClusterIndex().

TMatrixD PndSdsHit::fCov
private

bottom side of strip clusters

Definition at line 144 of file PndSdsHit.h.

Referenced by GetCov(), and SetCov().

Int_t PndSdsHit::fNDigiHits
private

deposited Charge

Definition at line 141 of file PndSdsHit.h.

Referenced by GetNDigiHits(), serialize(), and SetNDigiHits().

Int_t PndSdsHit::fSensorID
private

unique sensor ID

Definition at line 139 of file PndSdsHit.h.

Referenced by GetSensorID(), serialize(), and SetSensorID().


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