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

#include <PndSdsMergedHit.h>

Inheritance diagram for PndSdsMergedHit:
PndSdsHit

Public Member Functions

 PndSdsMergedHit ()
 
 PndSdsMergedHit (Int_t detID, Int_t sensorID, TVector3 &pos, TVector3 &dpos, Int_t clindex, Double_t charge, Int_t NDigiHits, Int_t mcindex, Int_t secMC)
 
 PndSdsMergedHit (PndSdsHit &c, Int_t secMC)
 
virtual ~PndSdsMergedHit ()
 
void SetSecondMCHit (Int_t secMChit)
 
Int_t GetSecondMCHit () const
 
void SetIsMerged (bool fflag)
 
bool GetIsMerged () const
 
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 (PndSdsMergedHit, 1)
 

Private Attributes

Int_t fsecMC
 unique sensor ID More...
 
bool fisMerged
 

Friends

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

Detailed Description

Definition at line 21 of file PndSdsMergedHit.h.

Constructor & Destructor Documentation

PndSdsMergedHit::PndSdsMergedHit ( )

Default constructor (not for use)

Definition at line 15 of file PndSdsMergedHit.cxx.

15 {}
PndSdsMergedHit::PndSdsMergedHit ( Int_t  detID,
Int_t  sensorID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  clindex,
Double_t  charge,
Int_t  NDigiHits,
Int_t  mcindex,
Int_t  secMC 
)

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 19 of file PndSdsMergedHit.cxx.

References fsecMC.

22  : PndSdsHit(detID, sensorID, pos, dpos, clindex, charge, NDigiHits,
23  mcindex) {
24  fsecMC = secMC;
25 }
TVector3 pos
Int_t fsecMC
unique sensor ID
PndSdsMergedHit::PndSdsMergedHit ( PndSdsHit c,
Int_t  secMC 
)

Definition at line 28 of file PndSdsMergedHit.cxx.

References fsecMC.

28  : PndSdsHit(c) {
29  fsecMC = secMC;
30 }
Int_t fsecMC
unique sensor ID
PndSdsMergedHit::~PndSdsMergedHit ( )
virtual

Destructor

Definition at line 33 of file PndSdsMergedHit.cxx.

33 {}

Member Function Documentation

PndSdsMergedHit::ClassDef ( PndSdsMergedHit  ,
 
)
private
Int_t PndSdsHit::GetBotIndex ( ) const
inlineinherited

Definition at line 96 of file PndSdsHit.h.

References PndSdsHit::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
inlineinherited

Definition at line 91 of file PndSdsHit.h.

References PndSdsHit::fCharge.

Referenced by PndMixBackgroundEvents::Exec().

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

Definition at line 97 of file PndSdsHit.h.

References PndSdsHit::fCharge.

Referenced by anaclust(), TtCracowTask::Exec(), TtLinFitTask::Exec(), 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
bool PndSdsMergedHit::GetIsMerged ( ) const
inline

Definition at line 81 of file PndSdsMergedHit.h.

References fisMerged.

Referenced by PndLmdLinFitTask::Exec().

81 { return fisMerged; }
Int_t PndSdsHit::GetNDigiHits ( ) const
inlineinherited

Definition at line 92 of file PndSdsHit.h.

References PndSdsHit::fNDigiHits.

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

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

Definition at line 78 of file PndSdsMergedHit.h.

References fsecMC.

Referenced by PndLmdBPtestTask::Exec(), and PndLmdTrkQTask::Exec().

78 { return fsecMC; }
Int_t fsecMC
unique sensor ID
Int_t PndSdsHit::GetSensorID ( ) const
inlineinherited
Int_t PndSdsHit::GetTopIndex ( ) const
inlineinherited

Definition at line 95 of file PndSdsHit.h.

References PndSdsHit::GetClusterIndex().

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

overloaded accessors

Definition at line 116 of file PndSdsHit.h.

References PndSdsHit::fBotIndex, PndSdsHit::fCharge, PndSdsHit::fClusterIndex, PndSdsHit::fNDigiHits, and PndSdsHit::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)
inlineinherited

Definition at line 86 of file PndSdsHit.h.

References PndSdsHit::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)
inlineinherited

Definition at line 80 of file PndSdsHit.h.

References PndSdsHit::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 
)
inlineinherited

Definition at line 82 of file PndSdsHit.h.

References PndSdsHit::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)
inherited

Definition at line 70 of file PndSdsHit.cxx.

References PndSdsHit::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 PndSdsMergedHit::SetIsMerged ( bool  fflag)
inline

Definition at line 80 of file PndSdsMergedHit.h.

References fisMerged.

Referenced by PndLmdHitMergeTask::Exec().

80 { fisMerged = fflag; }
void PndSdsHit::SetNDigiHits ( Int_t  pixel)
inlineinherited

Definition at line 81 of file PndSdsHit.h.

References PndSdsHit::fNDigiHits.

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

Accessors

Definition at line 76 of file PndSdsMergedHit.h.

References fsecMC.

Referenced by PndLmdHitMergeTask::Exec().

76 { fsecMC = secMChit; }
Int_t fsecMC
unique sensor ID
void PndSdsHit::SetSensorID ( Int_t  sensorID)
inlineinherited

Accessors

Definition at line 79 of file PndSdsHit.h.

References PndSdsHit::fSensorID.

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

Friends And Related Function Documentation

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

Definition at line 22 of file PndSdsMergedHit.h.

23  {
24  out << "PndSdsMergedHit in " << hit.GetSensorID() << " at" << std::endl;
25  out << "(" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ()
26  << ") cm "
27  << " with " << hit.GetCharge() << " e"
28  << " at Time: " << hit.GetTimeStamp() << " +/- "
29  << hit.GetTimeStampError() << " , Cluster No. "
30  << hit.GetClusterIndex();
31  if (hit.GetBotIndex() > -1) out << " and bottom " << hit.GetBotIndex();
32  if (hit.GetRefIndex() > -1) out << ", mc point id = " << hit.GetRefIndex();
33  if (hit.GetSecondMCHit() > -1)
34  out << ", mc point 2 id = " << hit.GetSecondMCHit();
35  else
36  out << ", noise hit without mc poit";
37  out << std::endl;
38 
39  out << "hit.GetClusterIndex() " << hit.GetClusterIndex() << std::endl;
40  out << "hit.GetBotIndex() " << hit.GetBotIndex() << std::endl;
41  out << "hit.GetRefIndex() " << hit.GetRefIndex() << std::endl;
42  out << "hit.GetNDigiHits() " << hit.GetNDigiHits() << std::endl;
43  out << "hit.GetCharge() " << hit.GetCharge() << "(" << hit.GetEloss()
44  << " GeV)" << std::endl;
45  out << "hit.GetSensorID() " << hit.GetSensorID() << std::endl;
46  out << "Error values in FairHit part: (dx,dy,dz) = (" << hit.GetDx() << ","
47  << hit.GetDy() << "," << hit.GetDz() << ")" << std::endl;
48  return out;
49  }
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 GetSecondMCHit() const
Int_t GetClusterIndex() const
Definition: PndSdsHit.h:94
Int_t GetSensorID() const
Definition: PndSdsHit.h:90

Member Data Documentation

bool PndSdsMergedHit::fisMerged
private

Definition at line 85 of file PndSdsMergedHit.h.

Referenced by GetIsMerged(), and SetIsMerged().

Int_t PndSdsMergedHit::fsecMC
private

unique sensor ID

Definition at line 84 of file PndSdsMergedHit.h.

Referenced by GetSecondMCHit(), PndSdsMergedHit(), and SetSecondMCHit().


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