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

#include <PndFtsHit.h>

Inheritance diagram for PndFtsHit:

Public Member Functions

 PndFtsHit ()
 
 PndFtsHit (Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, Int_t skew, Int_t mcindex, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t isochrone, Double_t isochroneError, Double_t chDep)
 
virtual ~PndFtsHit ()
 
virtual void Print (const Option_t *opt=0) const
 
void Clear ()
 
Double_t GetIsochrone () const
 
Double_t GetIsochroneError () const
 
Double_t GetPulse () const
 
Double_t GetDepCharge () const
 
Double_t GetEnergyLoss () const
 
void SetIsochrone (Double_t isochrone)
 
void SetIsochroneError (Double_t isochroneError)
 
void SetDepCharge (Double_t depcharge)
 
void SetTubeID (Int_t tubeid)
 
Int_t GetTubeID () const
 
void SetChamberID (Int_t chamberid)
 
Int_t GetChamberID () const
 
void SetLayerID (Int_t layerid)
 
Int_t GetLayerID () const
 
Int_t GetSkewed () const
 
virtual bool equal (FairTimeStamp *data) const
 
virtual bool operator< (const PndFtsHit &myDigi) const
 

Protected Member Functions

 ClassDef (PndFtsHit, 2)
 

Protected Attributes

Double_t fIsochrone
 
Double_t fIsochroneError
 
Double_t fPulse
 
Double_t fDepCharge
 
Int_t fTubeID
 
Int_t fChamberID
 
Int_t fLayerID
 
Int_t fSkewed
 

Friends

std::ostreamoperator<< (std::ostream &out, PndFtsHit &digi)
 

Detailed Description

Meaning of RefIndex: Index of corresponding MCPoint -1 if fake or background hit

Meaning of Flag: 0 = Hit ok -1 : Hit lost due to detection inefficiency

Definition at line 17 of file PndFtsHit.h.

Constructor & Destructor Documentation

PndFtsHit::PndFtsHit ( )

Default constructor

last revision December, 2012Default constructor

Definition at line 13 of file PndFtsHit.cxx.

13  :
14  fIsochrone(0.),
15  fIsochroneError(0.),
16  fPulse(0.),
17  fDepCharge(0.),
18  fTubeID(0),
19  fChamberID(0),
20  fLayerID(0),
21  fSkewed(0)
22 {
23  //Clear();
24 }
Int_t fLayerID
Definition: PndFtsHit.h:113
Double_t fDepCharge
Definition: PndFtsHit.h:108
Int_t fSkewed
Definition: PndFtsHit.h:114
Double_t fIsochroneError
Definition: PndFtsHit.h:102
Double_t fPulse
Definition: PndFtsHit.h:105
Int_t fChamberID
Definition: PndFtsHit.h:112
Double_t fIsochrone
Definition: PndFtsHit.h:100
Int_t fTubeID
Definition: PndFtsHit.h:111
PndFtsHit::PndFtsHit ( Int_t  detID,
Int_t  tubeID,
Int_t  chamberID,
Int_t  layerID,
Int_t  skew,
Int_t  mcindex,
TVector3 &  pos,
TVector3 &  dpos,
Double_t  p,
Double_t  isochrone,
Double_t  isochroneError,
Double_t  chDep 
)

Standard constructor

Parameters
detIDDetector unique volume ID
tubeIDUnique tube ID
chamberIDUnique chamber ID
layerIDUnique layer ID
skewflag for skewed tube
mcindexIndex of corresponding MCPoint
posPosition coordinates of the tube [cm]
dposErrors in position coordinates [cm]
isochroneThe radial measurement
isoerrorThe erroon on the radial measurement
chDepDeposited charge (arbitrary unit)

Definition at line 27 of file PndFtsHit.cxx.

27  :
28  FairHit(detID, pos, dpos, mcindex) ,
29  fIsochrone(isochrone),
30  fIsochroneError(isochroneError),
31  fPulse(p),
32  fDepCharge(chDep),
33  fTubeID(tubeID),
34  fChamberID(chamberID),
35  fLayerID(layerID),
36  fSkewed(skew)
37 {
38  SetTimeStamp(p);
39  SetLink(FairLink("FTSPoint", mcindex));
40 }
TVector3 pos
Int_t fLayerID
Definition: PndFtsHit.h:113
Double_t fDepCharge
Definition: PndFtsHit.h:108
Int_t fSkewed
Definition: PndFtsHit.h:114
Double_t p
Definition: anasim.C:58
double skew
Double_t fIsochroneError
Definition: PndFtsHit.h:102
Double_t fPulse
Definition: PndFtsHit.h:105
Int_t fChamberID
Definition: PndFtsHit.h:112
Double_t fIsochrone
Definition: PndFtsHit.h:100
Int_t fTubeID
Definition: PndFtsHit.h:111
PndFtsHit::~PndFtsHit ( )
virtual

Destructor

Definition at line 57 of file PndFtsHit.cxx.

58 {
59 }

Member Function Documentation

PndFtsHit::ClassDef ( PndFtsHit  ,
 
)
protected
void PndFtsHit::Clear ( void  )

Public method Clear Resets the isochrone and it's error to 0

Public method Clear

Definition at line 43 of file PndFtsHit.cxx.

References fChamberID, fDepCharge, fIsochrone, fIsochroneError, fLayerID, fPulse, fSkewed, and fTubeID.

44 {
45  fTubeID = 0;
46  fChamberID = 0;
47  fLayerID = 0;
48  fSkewed = 0;
49  fPulse = 0;
50  fIsochrone = 0.;
51  fIsochroneError = 0.;
52  fDepCharge = 0.;
53 }
Int_t fLayerID
Definition: PndFtsHit.h:113
Double_t fDepCharge
Definition: PndFtsHit.h:108
Int_t fSkewed
Definition: PndFtsHit.h:114
Double_t fIsochroneError
Definition: PndFtsHit.h:102
Double_t fPulse
Definition: PndFtsHit.h:105
Int_t fChamberID
Definition: PndFtsHit.h:112
Double_t fIsochrone
Definition: PndFtsHit.h:100
Int_t fTubeID
Definition: PndFtsHit.h:111
virtual bool PndFtsHit::equal ( FairTimeStamp *  data) const
inlinevirtual

Definition at line 77 of file PndFtsHit.h.

References fTubeID, and GetTubeID().

77  {
78  PndFtsHit* myDigi = dynamic_cast <PndFtsHit*> (data);
79  if (myDigi != 0){
80  if (fTubeID == myDigi->GetTubeID())
81  return true;
82  }
83  return false;
84  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:70
Int_t fTubeID
Definition: PndFtsHit.h:111
Int_t PndFtsHit::GetChamberID ( ) const
inline
Double_t PndFtsHit::GetDepCharge ( ) const
inline

Definition at line 60 of file PndFtsHit.h.

References fDepCharge.

60 { return fDepCharge; };
Double_t fDepCharge
Definition: PndFtsHit.h:108
Double_t PndFtsHit::GetEnergyLoss ( ) const
inline

Definition at line 61 of file PndFtsHit.h.

References fDepCharge.

61 { return fDepCharge/1e6; };
Double_t fDepCharge
Definition: PndFtsHit.h:108
Double_t PndFtsHit::GetIsochrone ( ) const
inline
Double_t PndFtsHit::GetIsochroneError ( ) const
inline
Int_t PndFtsHit::GetLayerID ( ) const
inline
Double_t PndFtsHit::GetPulse ( ) const
inline

Definition at line 59 of file PndFtsHit.h.

References fPulse.

59 {return fPulse; };
Double_t fPulse
Definition: PndFtsHit.h:105
Int_t PndFtsHit::GetSkewed ( ) const
inline

Definition at line 75 of file PndFtsHit.h.

References fSkewed.

Referenced by PndFtsHoughSpace::filterInputHits(), PndFtsHoughSpace::GetRawOrCalculatedHitPos(), and plotTrackCands().

75 { return fSkewed; }
Int_t fSkewed
Definition: PndFtsHit.h:114
Int_t PndFtsHit::GetTubeID ( ) const
inline
virtual bool PndFtsHit::operator< ( const PndFtsHit myDigi) const
inlinevirtual

Definition at line 86 of file PndFtsHit.h.

References fTubeID, and GetTubeID().

86  {
87  if (fTubeID < myDigi.GetTubeID()) return true;
88  else return false;
89  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:70
Int_t fTubeID
Definition: PndFtsHit.h:111
virtual void PndFtsHit::Print ( const Option_t *  opt = 0) const
inlinevirtual

Output to screen (not yet implemented)

Definition at line 49 of file PndFtsHit.h.

49 {std::cout<<" opt = "<<opt<<std::endl; return;}
void PndFtsHit::SetChamberID ( Int_t  chamberid)
inline
void PndFtsHit::SetDepCharge ( Double_t  depcharge)
inline

Definition at line 66 of file PndFtsHit.h.

References fDepCharge.

66 { fDepCharge = depcharge; }
Double_t fDepCharge
Definition: PndFtsHit.h:108
void PndFtsHit::SetIsochrone ( Double_t  isochrone)
inline

Modifiers

Definition at line 64 of file PndFtsHit.h.

References fIsochrone.

Referenced by PndTrackCollection::copyHit(), and PndFtsLineApproximator::copyHitWithNewPosition().

64 { fIsochrone = isochrone; };
Double_t fIsochrone
Definition: PndFtsHit.h:100
void PndFtsHit::SetIsochroneError ( Double_t  isochroneError)
inline

Definition at line 65 of file PndFtsHit.h.

References fIsochroneError.

Referenced by PndTrackCollection::copyHit(), and PndFtsLineApproximator::copyHitWithNewPosition().

65 { fIsochroneError = isochroneError; };
Double_t fIsochroneError
Definition: PndFtsHit.h:102
void PndFtsHit::SetLayerID ( Int_t  layerid)
inline
void PndFtsHit::SetTubeID ( Int_t  tubeid)
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream out,
PndFtsHit digi 
)
friend

Definition at line 91 of file PndFtsHit.h.

91  {
92  out << "PndSttHit in Tube: " << digi.GetTubeID() << " Isochrone: " << digi.GetIsochrone() << " +/- " << digi.GetIsochroneError()
93  << " Charge: " << digi.GetDepCharge() << " Pulse: " << digi.GetPulse() << std::endl;
94  return out;
95  }
Double_t GetPulse() const
Definition: PndFtsHit.h:59
Int_t GetTubeID() const
Definition: PndFtsHit.h:70
TFile * out
Definition: reco_muo.C:20
Double_t GetIsochrone() const
Definition: PndFtsHit.h:57
Double_t GetIsochroneError() const
Definition: PndFtsHit.h:58
Double_t GetDepCharge() const
Definition: PndFtsHit.h:60

Member Data Documentation

Int_t PndFtsHit::fChamberID
protected

Definition at line 112 of file PndFtsHit.h.

Referenced by Clear(), GetChamberID(), and SetChamberID().

Double_t PndFtsHit::fDepCharge
protected

deposit charge (arbitrary units)

Definition at line 108 of file PndFtsHit.h.

Referenced by Clear(), GetDepCharge(), GetEnergyLoss(), and SetDepCharge().

Double_t PndFtsHit::fIsochrone
protected

This variable contains the radial distance to the wire

Definition at line 100 of file PndFtsHit.h.

Referenced by Clear(), GetIsochrone(), and SetIsochrone().

Double_t PndFtsHit::fIsochroneError
protected

This variable contains the error on the radial distance to the wire

Definition at line 102 of file PndFtsHit.h.

Referenced by Clear(), GetIsochroneError(), and SetIsochroneError().

Int_t PndFtsHit::fLayerID
protected

Definition at line 113 of file PndFtsHit.h.

Referenced by Clear(), GetLayerID(), and SetLayerID().

Double_t PndFtsHit::fPulse
protected

time pulse

Definition at line 105 of file PndFtsHit.h.

Referenced by Clear(), and GetPulse().

Int_t PndFtsHit::fSkewed
protected

Definition at line 114 of file PndFtsHit.h.

Referenced by Clear(), and GetSkewed().

Int_t PndFtsHit::fTubeID
protected

tube id

Definition at line 111 of file PndFtsHit.h.

Referenced by Clear(), equal(), GetTubeID(), operator<(), and SetTubeID().


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