FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairHit Class Reference

#include <FairHit.h>

Inheritance diagram for FairHit:
FairTimeStamp FairMultiLinkedData_Interface FairTestDetectorHit FairTutorialDet4Hit FairTutPropHit MyHit PixelHit

Public Member Functions

 FairHit ()
 
 FairHit (Int_t detID, const TVector3 &pos, const TVector3 &dpos, Int_t index)
 
virtual ~FairHit ()
 
Double_t GetDx () const
 
Double_t GetDy () const
 
Double_t GetDz () const
 
Int_t GetRefIndex () const
 
void PositionError (TVector3 &dpos) const
 
Int_t GetDetectorID () const
 
Double_t GetX () const
 
Double_t GetY () const
 
Double_t GetZ () const
 
void Position (TVector3 &pos) const
 
void SetDx (Double_t dx)
 
void SetDy (Double_t dy)
 
void SetDz (Double_t dz)
 
void SetDxyz (Double_t dx, Double_t dy, Double_t dz)
 
void SetPositionError (const TVector3 &dpos)
 
void SetRefIndex (Int_t index)
 
void SetDetectorID (Int_t detID)
 
void SetX (Double_t x)
 
void SetY (Double_t y)
 
void SetZ (Double_t z)
 
void SetXYZ (Double_t x, Double_t y, Double_t z)
 
void SetPosition (const TVector3 &pos)
 
virtual void Print (const Option_t *) const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 
- Public Member Functions inherited from FairTimeStamp
 FairTimeStamp ()
 
 FairTimeStamp (Double_t time)
 
 FairTimeStamp (Double_t time, Double_t timeerror)
 
virtual ~FairTimeStamp ()
 
Double_t GetTimeStamp () const
 
Double_t GetTimeStampError () const
 
void SetTimeStamp (Double_t t)
 
void SetTimeStampError (Double_t t)
 
virtual Int_t Compare (const TObject *obj) const
 
virtual std::ostream & PrintTimeInfo (std::ostream &out=std::cout) const
 
virtual Bool_t IsSortable () const
 
virtual bool equal (FairTimeStamp *data)
 
virtual bool operator< (const FairTimeStamp *rValue) const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 
- Public Member Functions inherited from FairMultiLinkedData_Interface
 FairMultiLinkedData_Interface ()=default
 Default constructor. More...
 
 FairMultiLinkedData_Interface (FairMultiLinkedData &links, Bool_t persistanceCheck=kTRUE)
 Constructor. More...
 
 FairMultiLinkedData_Interface (TString dataType, std::vector< Int_t > links, Int_t fileId=-1, Int_t evtId=-1, Bool_t persistanceCheck=kTRUE, Bool_t bypass=kFALSE, Float_t mult=1.0)
 Constructor. More...
 
 FairMultiLinkedData_Interface (Int_t dataType, std::vector< Int_t > links, Int_t fileId=-1, Int_t evtId=-1, Bool_t persistanceCheck=kTRUE, Bool_t bypass=kFALSE, Float_t mult=1.0)
 Constructor. More...
 
 FairMultiLinkedData_Interface (const FairMultiLinkedData_Interface &toCopy)
 
 ~FairMultiLinkedData_Interface ()=default
 
FairMultiLinkedData_Interfaceoperator= (const FairMultiLinkedData_Interface &rhs)
 
std::set< FairLinkGetLinks () const
 returns stored links as FairLinks More...
 
Int_t GetNLinks () const
 returns the number of stored links More...
 
FairLink GetLink (Int_t pos) const
 returns the FairLink at the given position More...
 
FairMultiLinkedData GetLinksWithType (Int_t type) const
 returns all FairLinks with the corresponding type More...
 
FairLink GetEntryNr () const
 
FairMultiLinkedDataGetPointerToLinks () const
 returns non-owning pointer More...
 
std::vector< FairLinkGetSortedMCTracks ()
 
void SetLinks (FairMultiLinkedData links)
 Sets the links as vector of FairLink. More...
 
void SetLink (FairLink link)
 Sets the Links with a single FairLink. More...
 
void SetInsertHistory (Bool_t val)
 
void SetEntryNr (FairLink val)
 
void SetPointerToLinks (FairMultiLinkedData *links)
 
void SetPointerToLinks (std::unique_ptr< FairMultiLinkedData > links)
 
void AddLinks (FairMultiLinkedData links, Float_t mult=1.0)
 Adds a List of FairLinks (FairMultiLinkedData_Interface) to fLinks. More...
 
void AddLink (FairLink link)
 
void AddInterfaceData (FairMultiLinkedData_Interface *data)
 
void ResetLinks ()
 
std::ostream & PrintLinkInfo (std::ostream &out=std::cout) const
 Output. More...
 

Protected Member Functions

 ClassDef (FairHit, 3)
 
- Protected Member Functions inherited from FairTimeStamp
 ClassDef (FairTimeStamp, 4)
 
- Protected Member Functions inherited from FairMultiLinkedData_Interface
FairMultiLinkedDataCreateFairMultiLinkedData ()
 returns non-owning pointer More...
 
 ClassDef (FairMultiLinkedData_Interface, 6)
 

Protected Attributes

Double32_t fDx
 
Double32_t fDy
 
Double32_t fDz
 Errors of position [cm]. More...
 
Int_t fRefIndex
 Index of FairMCPoint for this hit. More...
 
Int_t fDetectorID
 Detector unique identifier. More...
 
Double32_t fX
 
Double32_t fY
 
Double32_t fZ
 Position of hit [cm]. More...
 
- Protected Attributes inherited from FairTimeStamp
Double_t fTimeStamp
 
Double_t fTimeStampError
 
- Protected Attributes inherited from FairMultiLinkedData_Interface
std::unique_ptr
< FairMultiLinkedData
fLink
 

Friends

class boost::serialization::access
 

Detailed Description

Abstract base class for reconstructed hits in the FAIR detectors.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
D.Bertini d.ber.nosp@m.tini.nosp@m.@gsi..nosp@m.de
M.Al-Turany m.al-.nosp@m.tura.nosp@m.ny@gs.nosp@m.i.de

Definition at line 29 of file FairHit.h.

Constructor & Destructor Documentation

FairHit::FairHit ( )

Default constructor

Definition at line 10 of file FairHit.cxx.

FairHit::FairHit ( Int_t  detID,
const TVector3 &  pos,
const TVector3 &  dpos,
Int_t  index 
)

Constructor with hit parameters

Definition at line 22 of file FairHit.cxx.

FairHit::~FairHit ( )
virtual

Destructor

Definition at line 34 of file FairHit.cxx.

Member Function Documentation

FairHit::ClassDef ( FairHit  ,
 
)
protected
Int_t FairHit::GetDetectorID ( ) const
inline

Definition at line 47 of file FairHit.h.

Double_t FairHit::GetDx ( ) const
inline

Accessors

Definition at line 42 of file FairHit.h.

Double_t FairHit::GetDy ( ) const
inline

Definition at line 43 of file FairHit.h.

Double_t FairHit::GetDz ( ) const
inline

Definition at line 44 of file FairHit.h.

Int_t FairHit::GetRefIndex ( ) const
inline

Definition at line 45 of file FairHit.h.

Double_t FairHit::GetX ( ) const
inline

Definition at line 48 of file FairHit.h.

Double_t FairHit::GetY ( ) const
inline

Definition at line 49 of file FairHit.h.

Double_t FairHit::GetZ ( ) const
inline

Definition at line 50 of file FairHit.h.

void FairHit::Position ( TVector3 &  pos) const
inline

Definition at line 111 of file FairHit.h.

void FairHit::PositionError ( TVector3 &  dpos) const
inline

Definition at line 95 of file FairHit.h.

virtual void FairHit::Print ( const Option_t *  ) const
inlinevirtual

Definition at line 68 of file FairHit.h.

template<class Archive >
void FairHit::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Definition at line 71 of file FairHit.h.

void FairHit::SetDetectorID ( Int_t  detID)
inline

Definition at line 60 of file FairHit.h.

void FairHit::SetDx ( Double_t  dx)
inline

Modifiers

Definition at line 54 of file FairHit.h.

void FairHit::SetDxyz ( Double_t  dx,
Double_t  dy,
Double_t  dz 
)
inline

Definition at line 97 of file FairHit.h.

void FairHit::SetDy ( Double_t  dy)
inline

Definition at line 55 of file FairHit.h.

void FairHit::SetDz ( Double_t  dz)
inline

Definition at line 56 of file FairHit.h.

void FairHit::SetPosition ( const TVector3 &  pos)
inline

Definition at line 120 of file FairHit.h.

void FairHit::SetPositionError ( const TVector3 &  dpos)
inline

Definition at line 104 of file FairHit.h.

void FairHit::SetRefIndex ( Int_t  index)
inline

Definition at line 59 of file FairHit.h.

void FairHit::SetX ( Double_t  x)
inline

Definition at line 61 of file FairHit.h.

void FairHit::SetXYZ ( Double_t  x,
Double_t  y,
Double_t  z 
)
inline

Definition at line 113 of file FairHit.h.

void FairHit::SetY ( Double_t  y)
inline

Definition at line 62 of file FairHit.h.

void FairHit::SetZ ( Double_t  z)
inline

Definition at line 63 of file FairHit.h.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 85 of file FairHit.h.

Member Data Documentation

Int_t FairHit::fDetectorID
protected

Detector unique identifier.

Definition at line 89 of file FairHit.h.

Double32_t FairHit::fDx
protected

Definition at line 87 of file FairHit.h.

Double32_t FairHit::fDy
protected

Definition at line 87 of file FairHit.h.

Double32_t FairHit::fDz
protected

Errors of position [cm].

Definition at line 87 of file FairHit.h.

Int_t FairHit::fRefIndex
protected

Index of FairMCPoint for this hit.

Definition at line 88 of file FairHit.h.

Double32_t FairHit::fX
protected

Definition at line 90 of file FairHit.h.

Double32_t FairHit::fY
protected

Definition at line 90 of file FairHit.h.

Double32_t FairHit::fZ
protected

Position of hit [cm].

Definition at line 90 of file FairHit.h.


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