EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmHit Class Referenceabstract

#include <EicRoot/blob/master/cbmdata/CbmHit.h>

+ Inheritance diagram for CbmHit:
+ Collaboration diagram for CbmHit:

Public Member Functions

 CbmHit ()
 
 CbmHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Double_t covXY, Int_t index)
 
virtual ~CbmHit ()
 
Double_t GetCovXY () const
 
virtual Int_t GetStationNr () const =0
 
virtual void Print (const Option_t *opt=0) const
 
- Public Member Functions inherited from FairHit
 FairHit ()
 
 FairHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t index)
 
 FairHit (Int_t detID, TVector3 &pos, 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)
 
- Public Member Functions inherited from FairTimeStamp
 FairTimeStamp ()
 
 FairTimeStamp (Double_t time)
 
 FairTimeStamp (Double_t time, Double_t timeerror)
 
virtual ~FairTimeStamp ()
 
virtual Double_t GetTimeStamp () const
 
virtual Double_t GetTimeStampError () const
 
virtual FairLink GetEntryNr () const
 
virtual void SetTimeStamp (Double_t t)
 
virtual void SetTimeStampError (Double_t t)
 
virtual void SetEntryNr (FairLink entry)
 
virtual Int_t Compare (const TObject *obj) const
 
void Print (std::ostream &out=std::cout) const
 
virtual Bool_t IsSortable () const
 
virtual bool equal (FairTimeStamp *data)
 
- Public Member Functions inherited from FairMultiLinkedData
 FairMultiLinkedData ()
 Default constructor.
 
 FairMultiLinkedData (std::set< FairLink > links, Bool_t persistanceCheck=kTRUE)
 Constructor.
 
 FairMultiLinkedData (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.
 
 FairMultiLinkedData (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.
 
virtual ~FairMultiLinkedData ()
 
virtual std::set< FairLinkGetLinks () const
 returns stored links as FairLinks
 
virtual Int_t GetNLinks () const
 returns the number of stored links
 
virtual FairLink GetLink (Int_t pos) const
 returns the FairLink at the given position
 
virtual FairMultiLinkedData GetLinksWithType (Int_t type) const
 Gives you a list of links which contain the given type.
 
TObjectGetData (FairLink &myLink)
 Get the TObject the Link is pointing to.
 
virtual Int_t GetDefaultType ()
 
Bool_t GetPersistanceCheck ()
 Returns the value of PersistanceCheck.
 
Int_t GetVerbose ()
 Returns the verbosity level.
 
virtual void SetDefaultType (Int_t type)
 
virtual void SetPersistanceCheck (Bool_t check)
 Controls if a persistance check of a link is done or not.
 
virtual void SetVerbose (Int_t level)
 Sets the verbosity level.
 
virtual void SetLinks (FairMultiLinkedData links, Float_t mult=1.0)
 Sets the links as vector of FairLink.
 
virtual void SetLink (FairLink link, Bool_t bypass=kFALSE, Float_t mult=1.0)
 Sets the Links with a single FairLink.
 
virtual void AddLinks (FairMultiLinkedData links, Float_t mult=1.0)
 Adds a List of FairLinks (FairMultiLinkedData) to fLinks.
 
virtual void AddLink (FairLink link, Bool_t bypass=kFALSE, Float_t mult=1.0)
 Adds a FairLink link at the end of fLinks. If multi is kTRUE a link is allowed more than once otherwise it is stored only once.
 
virtual void InsertLink (FairLink link)
 Inserts a link into the list of links without persistance checking.
 
virtual void AddAllWeights (Double_t weight)
 Adds weight to all Links.
 
virtual void SetAllWeights (Double_t weight)
 Sets a common weight for Links.
 
virtual void MultiplyAllWeights (Double_t weight)
 Multiplies all Links with weight.
 
virtual Bool_t IsLinkInList (FairLink link)
 Test if a given link is in fLinks.
 
virtual Bool_t IsLinkInList (Int_t type, Int_t index)
 Same as IsLinkInList(FairLink) just with type and index given separately.
 
virtual Int_t LinkPosInList (FairLink link)
 returns position of link in fLinks. If it is not in the list -1 is returned
 
virtual Int_t LinkPosInList (Int_t type, Int_t index)
 Same as LinkPosInList(FairLink)
 
virtual void DeleteLink (FairLink link)
 Deletes a link ouf of fLinks.
 
virtual void DeleteLink (Int_t type, Int_t index)
 Deletes a link ouf of fLinks.
 
virtual void Reset ()
 
virtual void ResetLinks ()
 Clears fLinks.
 
void Print (std::ostream &out=std::cout) const
 Output.
 

Protected Member Functions

 ClassDef (CbmHit, 1)
 
- Protected Member Functions inherited from FairHit
 ClassDef (FairHit, 2)
 
- Protected Member Functions inherited from FairTimeStamp
 ClassDef (FairTimeStamp, 2)
 indicates where the data is stored in the branch
 
- Protected Member Functions inherited from FairMultiLinkedData
virtual void SimpleAddLinks (Int_t fileId, Int_t evtId, Int_t dataType, std::vector< Int_t > links, Bool_t bypass, Float_t mult)
 
 ClassDef (FairMultiLinkedData, 3)
 

Protected Attributes

Double32_t fCovXY
 
- Protected Attributes inherited from FairHit
Double32_t fDx
 
Double32_t fDy
 
Double32_t fDz
 Errors of position [cm].
 
Int_t fRefIndex
 Index of FairMCPoint for this hit.
 
Int_t fDetectorID
 Detector unique identifier.
 
Double32_t fX
 
Double32_t fY
 
Double32_t fZ
 Position of hit [cm].
 
- Protected Attributes inherited from FairTimeStamp
Double_t fTimeStamp
 
Double_t fTimeStampError
 
FairLink fEntryNr
 
- Protected Attributes inherited from FairMultiLinkedData
std::set< FairLinkfLinks
 
Bool_t fPersistanceCheck
 
Int_t fVerbose
 
Int_t fDefaultType
 

Detailed Description

Abstract base class for hits used for tracking in CBM. Derives from FairHit. Additional member is the covariance of x and y. Derived classes have to implement the pure virtual method GetStationNr()

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
16/11/07

Definition at line 23 of file CbmHit.h.

View newest version in sPHENIX GitHub at line 23 of file CbmHit.h

Constructor & Destructor Documentation

CbmHit::CbmHit ( )

Default constructor

Definition at line 14 of file CbmHit.cxx.

View newest version in sPHENIX GitHub at line 14 of file CbmHit.cxx

CbmHit::CbmHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Double_t  covXY,
Int_t  index 
)

Constructor with hit parameters

Parameters
detIdUnique detector identifier
posPosition vector [cm]
dposError of position vector [cm]
covXYCovariance of x and y [cm**2]
indexReference index

Definition at line 24 of file CbmHit.cxx.

View newest version in sPHENIX GitHub at line 24 of file CbmHit.cxx

CbmHit::~CbmHit ( )
virtual

Destructor

Definition at line 35 of file CbmHit.cxx.

View newest version in sPHENIX GitHub at line 35 of file CbmHit.cxx

Member Function Documentation

CbmHit::ClassDef ( CbmHit  ,
 
)
protected
Double_t CbmHit::GetCovXY ( ) const
inline

Accessors

Definition at line 48 of file CbmHit.h.

View newest version in sPHENIX GitHub at line 48 of file CbmHit.h

References fCovXY.

virtual Int_t CbmHit::GetStationNr ( ) const
pure virtual

Referenced by Print().

+ Here is the caller graph for this function:

void CbmHit::Print ( const Option_t *  opt = 0) const
virtual

Output to screen

Reimplemented from FairHit.

Definition at line 42 of file CbmHit.cxx.

View newest version in sPHENIX GitHub at line 42 of file CbmHit.cxx

References FairHit::fDetectorID, FairHit::fX, FairHit::fY, FairHit::fZ, and GetStationNr().

+ Here is the call graph for this function:

Member Data Documentation

Double32_t CbmHit::fCovXY
protected

Definition at line 59 of file CbmHit.h.

View newest version in sPHENIX GitHub at line 59 of file CbmHit.h

Referenced by GetCovXY().


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