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

#include <PndSciTHit.h>

Inheritance diagram for PndSciTHit:

Public Member Functions

 PndSciTHit ()
 
 PndSciTHit (Int_t detID, TString detName, Double_t time, Double_t dt, Double_t sipm1, Double_t dsipm1, Double_t sipm2, Double_t dsipm2, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge)
 
virtual ~PndSciTHit ()
 
TString GetDetName () const
 
Double_t GetCharge ()
 
Double_t GetSiPm1 ()
 
Double_t GetDSiPm1 ()
 
Double_t GetSiPm2 ()
 
Double_t GetDSiPm2 ()
 
Double_t GetTime ()
 
Double_t GetDt ()
 
TVector3 GetPosition () const
 
void SetDetName (TString name)
 
void SetCharge (Double_t charge)
 
void AddCharge (double charge)
 
void SetSiPm1 (Double_t sipm1)
 
void SetDSiPm1 (Double_t dsipm1)
 
void SetSiPm2 (Double_t sipm2)
 
void SetDSiPm2 (Double_t dsipm2)
 
virtual bool operator< (const PndSciTHit &right) const
 
virtual bool operator> (const PndSciTHit &right) const
 
virtual bool equal (FairTimeStamp *data)
 
virtual void Print (const Option_t *opt=0) const
 
 ClassDef (PndSciTHit, 3)
 

Public Attributes

TString fDetName
 
Double_t fCharge
 
Double_t fSiPm1
 
Double_t fDSiPm1
 
Double_t fSiPm2
 
Double_t fDSiPm2
 

Friends

std::ostreamoperator<< (std::ostream &out, PndSciTHit &hit)
 

Detailed Description

PndSciTHit.h

Author
D. Steinschaden domin.nosp@m.ik.s.nosp@m.teins.nosp@m.chad.nosp@m.en@oe.nosp@m.aw.a.nosp@m.c.at

A hit in a tof wall station of SciT. In addition to the base class FairHit, it holds the energy deposit in one detector tile. All coordinates are in the LAB frame.

Definition at line 29 of file PndSciTHit.h.

Constructor & Destructor Documentation

PndSciTHit::PndSciTHit ( )

Definition at line 44 of file PndSciTHit.cxx.

44  :
45  fDetName(""),
46  fCharge(0.),
47  fSiPm1(0.),
48  fDSiPm1(0.),
49  fSiPm2(0.),
50  fDSiPm2(0.)
51 {
52 }
Double_t fDSiPm1
Definition: PndSciTHit.h:98
Double_t fSiPm2
Definition: PndSciTHit.h:99
Double_t fCharge
Definition: PndSciTHit.h:95
TString fDetName
Definition: PndSciTHit.h:94
Double_t fSiPm1
Definition: PndSciTHit.h:97
Double_t fDSiPm2
Definition: PndSciTHit.h:100
PndSciTHit::PndSciTHit ( Int_t  detID,
TString  detName,
Double_t  time,
Double_t  dt,
Double_t  sipm1,
Double_t  dsipm1,
Double_t  sipm2,
Double_t  dsipm2,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  index,
Double_t  charge 
)

Definition at line 56 of file PndSciTHit.cxx.

59  : FairHit(detID, pos, dpos, index),
60  fDetName(detName), fCharge(charge),
61  fSiPm1(sipm1), fDSiPm1(dsipm1), fSiPm2(sipm2), fDSiPm2(dsipm2)
62 {
63  SetTimeStamp(time);
64  SetTimeStampError(dt);
65 
66  SetLink(FairLink(-1, -1, "SciTPoint", index));
67 }
TVector3 pos
Double_t fDSiPm1
Definition: PndSciTHit.h:98
Double_t fSiPm2
Definition: PndSciTHit.h:99
Double_t fCharge
Definition: PndSciTHit.h:95
TString fDetName
Definition: PndSciTHit.h:94
Double_t fSiPm1
Definition: PndSciTHit.h:97
Double_t fDSiPm2
Definition: PndSciTHit.h:100
PndSciTHit::~PndSciTHit ( )
virtual

Definition at line 72 of file PndSciTHit.cxx.

72 {}

Member Function Documentation

void PndSciTHit::AddCharge ( double  charge)
inline

Definition at line 70 of file PndSciTHit.h.

References fCharge.

70 {fCharge += charge;}
Double_t fCharge
Definition: PndSciTHit.h:95
PndSciTHit::ClassDef ( PndSciTHit  ,
 
)
bool PndSciTHit::equal ( FairTimeStamp *  data)
virtual

Definition at line 35 of file PndSciTHit.cxx.

References hit.

35  {
36  PndSciTHit* hit = dynamic_cast <PndSciTHit*> (data);
37  if (hit != 0 && fDetectorID == hit->GetDetectorID())
38  return true;
39 
40  return false;
41 }
PndSdsMCPoint * hit
Definition: anasim.C:70
Double_t PndSciTHit::GetCharge ( )
inline

Definition at line 51 of file PndSciTHit.h.

References fCharge.

51 {return fCharge;};
Double_t fCharge
Definition: PndSciTHit.h:95
TString PndSciTHit::GetDetName ( ) const
inline

Definition at line 50 of file PndSciTHit.h.

References fDetName.

50 { return fDetName; };
TString fDetName
Definition: PndSciTHit.h:94
Double_t PndSciTHit::GetDSiPm1 ( )
inline

Definition at line 54 of file PndSciTHit.h.

References fDSiPm1.

54 {return fDSiPm1;};
Double_t fDSiPm1
Definition: PndSciTHit.h:98
Double_t PndSciTHit::GetDSiPm2 ( )
inline

Definition at line 56 of file PndSciTHit.h.

References fDSiPm2.

56 {return fDSiPm2;};
Double_t fDSiPm2
Definition: PndSciTHit.h:100
Double_t PndSciTHit::GetDt ( )
inline

Definition at line 63 of file PndSciTHit.h.

63 {return GetTimeStampError();};
TVector3 PndSciTHit::GetPosition ( ) const
inline

Definition at line 64 of file PndSciTHit.h.

References fX, fY, and fZ.

Referenced by PndSttTrackFinderReal::DoFind(), and PndTrkTracking2::Exec().

64 { 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
Double_t PndSciTHit::GetSiPm1 ( )
inline

Definition at line 53 of file PndSciTHit.h.

References fSiPm1.

53 {return fSiPm1;};
Double_t fSiPm1
Definition: PndSciTHit.h:97
Double_t PndSciTHit::GetSiPm2 ( )
inline

Definition at line 55 of file PndSciTHit.h.

References fSiPm2.

55 {return fSiPm2;};
Double_t fSiPm2
Definition: PndSciTHit.h:99
Double_t PndSciTHit::GetTime ( )
inline

Definition at line 62 of file PndSciTHit.h.

Referenced by PndPidCorrelator::GetTofInfo().

62 {return GetTimeStamp();};
bool PndSciTHit::operator< ( const PndSciTHit right) const
virtual

Definition at line 19 of file PndSciTHit.cxx.

19  {
20 
21  if (fDetectorID < right.GetDetectorID()) return true;
22  else if (fDetectorID > right.GetDetectorID()) return false;
23  //If ID = right.ID
24  return false;
25 }
bool PndSciTHit::operator> ( const PndSciTHit right) const
virtual

Definition at line 27 of file PndSciTHit.cxx.

27  {
28 
29  if (fDetectorID > right.GetDetectorID()) return true;
30  else if (fDetectorID < right.GetDetectorID()) return false;
31  //If ID = right.ID
32  return false;
33 }
void PndSciTHit::Print ( const Option_t *  opt = 0) const
virtual

Screen output

Definition at line 76 of file PndSciTHit.cxx.

References fDetName, fX, fY, and fZ.

76  {
77  std::cout << "Forward tof hit in detector " << fDetName << " at ("
78  << fX << ", " << fY << ", " << fZ << ") cm "
79  << ", Point " << fRefIndex << "opt="<<opt<<std::endl;
80 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
TString fDetName
Definition: PndSciTHit.h:94
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndSciTHit::SetCharge ( Double_t  charge)
inline

Definition at line 69 of file PndSciTHit.h.

References fCharge.

69 {fCharge = charge;};
Double_t fCharge
Definition: PndSciTHit.h:95
void PndSciTHit::SetDetName ( TString  name)
inline

Modifiers

Definition at line 68 of file PndSciTHit.h.

References fDetName, and name.

68 {fDetName = name;};
TString name
TString fDetName
Definition: PndSciTHit.h:94
void PndSciTHit::SetDSiPm1 ( Double_t  dsipm1)
inline

Definition at line 73 of file PndSciTHit.h.

References fDSiPm1.

73 {fDSiPm1 = dsipm1;};
Double_t fDSiPm1
Definition: PndSciTHit.h:98
void PndSciTHit::SetDSiPm2 ( Double_t  dsipm2)
inline

Definition at line 75 of file PndSciTHit.h.

References fDSiPm2.

75 {fDSiPm2 = dsipm2;};
Double_t fDSiPm2
Definition: PndSciTHit.h:100
void PndSciTHit::SetSiPm1 ( Double_t  sipm1)
inline

Definition at line 72 of file PndSciTHit.h.

References fSiPm1.

72 {fSiPm1 = sipm1;};
Double_t fSiPm1
Definition: PndSciTHit.h:97
void PndSciTHit::SetSiPm2 ( Double_t  sipm2)
inline

Definition at line 74 of file PndSciTHit.h.

References fSiPm2.

74 {fSiPm2 = sipm2;};
Double_t fSiPm2
Definition: PndSciTHit.h:99

Friends And Related Function Documentation

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

Definition at line 14 of file PndSciTHit.cxx.

14  {
15  out << "PndSciTHit in Sensor: " << hit.GetDetectorID();
16  return out;
17 }
TFile * out
Definition: reco_muo.C:20

Member Data Documentation

Double_t PndSciTHit::fCharge

Definition at line 95 of file PndSciTHit.h.

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

TString PndSciTHit::fDetName

Definition at line 94 of file PndSciTHit.h.

Referenced by GetDetName(), Print(), and SetDetName().

Double_t PndSciTHit::fDSiPm1

Definition at line 98 of file PndSciTHit.h.

Referenced by GetDSiPm1(), and SetDSiPm1().

Double_t PndSciTHit::fDSiPm2

Definition at line 100 of file PndSciTHit.h.

Referenced by GetDSiPm2(), and SetDSiPm2().

Double_t PndSciTHit::fSiPm1

Definition at line 97 of file PndSciTHit.h.

Referenced by GetSiPm1(), and SetSiPm1().

Double_t PndSciTHit::fSiPm2

Definition at line 99 of file PndSciTHit.h.

Referenced by GetSiPm2(), and SetSiPm2().


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