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

Base class for persistent representation of digital information. More...

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

+ Inheritance diagram for CbmDigi:
+ Collaboration diagram for CbmDigi:

Public Member Functions

 CbmDigi ()
 
virtual ~CbmDigi ()
 
virtual Int_t GetAddress () const =0
 
virtual Double_t GetCharge () const
 
FairMultiLinkedDataGetLinks () const
 
virtual Int_t GetSystemId () const =0
 
virtual Double_t GetTime () const =0
 
void SetLinks (FairMultiLinkedData *links)
 

Protected Member Functions

 CbmDigi (const CbmDigi &)
 
CbmDigioperator= (const CbmDigi &)
 
 ClassDef (CbmDigi, 2)
 

Protected Attributes

FairMultiLinkedDatafLinks
 Monte-Carlo link collection.
 

Detailed Description

Base class for persistent representation of digital information.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Version
2.0

CbmDigi is an abstract base class for the ROOT representation of the smallest information unit delivered by the detector front-ends. It is equivalent to the message of a single electronics channel. The information content is the channel address (unique identifier), the time stamp and (optionally) the charge (ADC).

Unlike the data class used to actually transport the information through the data acquisition ("message"), the digi contains context-free information, i.e. absolute time and unique address.

The class contains a pointer to an object of type FairMultiLinkedData, where the link information to MCPoints can be stored and retrieved. If there is no such information (as in case of real data), the pointer will be NULL.

Note that the Digi class is not responsible for the validity of the pointer. Copy constructor and assignment operator will perform a shallow copy only. It is the user's responsibility to ensure the validity of the pointer and to delete the FairMultiLinkedData wherever appropriate.

Definition at line 43 of file CbmDigi.h.

View newest version in sPHENIX GitHub at line 43 of file CbmDigi.h

Constructor & Destructor Documentation

CbmDigi::CbmDigi ( )

Default constructor

Definition at line 13 of file CbmDigi.cxx.

View newest version in sPHENIX GitHub at line 13 of file CbmDigi.cxx

virtual CbmDigi::~CbmDigi ( )
inlinevirtual

Destructor

Definition at line 53 of file CbmDigi.h.

View newest version in sPHENIX GitHub at line 53 of file CbmDigi.h

CbmDigi::CbmDigi ( const CbmDigi rhs)
protected

Definition at line 20 of file CbmDigi.cxx.

View newest version in sPHENIX GitHub at line 20 of file CbmDigi.cxx

References fLinks.

Member Function Documentation

CbmDigi::ClassDef ( CbmDigi  ,
 
)
protected
virtual Int_t CbmDigi::GetAddress ( ) const
pure virtual

Unique channel address

virtual Double_t CbmDigi::GetCharge ( ) const
inlinevirtual

Charge (optional)

Definition at line 61 of file CbmDigi.h.

View newest version in sPHENIX GitHub at line 61 of file CbmDigi.h

FairMultiLinkedData* CbmDigi::GetLinks ( ) const
inline

Get pointer to link collection

Definition at line 65 of file CbmDigi.h.

View newest version in sPHENIX GitHub at line 65 of file CbmDigi.h

References fLinks.

virtual Int_t CbmDigi::GetSystemId ( ) const
pure virtual

System (enum DetectorId)

Referenced by CbmDigiManager::Exec().

+ Here is the caller graph for this function:

virtual Double_t CbmDigi::GetTime ( ) const
pure virtual

Absolute time [ns]

CbmDigi & CbmDigi::operator= ( const CbmDigi rhs)
protected

Definition at line 29 of file CbmDigi.cxx.

View newest version in sPHENIX GitHub at line 29 of file CbmDigi.cxx

References fLinks.

void CbmDigi::SetLinks ( FairMultiLinkedData links)
inline

Set pointer to link collection

Definition at line 77 of file CbmDigi.h.

View newest version in sPHENIX GitHub at line 77 of file CbmDigi.h

References fLinks.

Member Data Documentation

FairMultiLinkedData* CbmDigi::fLinks
protected

Monte-Carlo link collection.

Definition at line 83 of file CbmDigi.h.

View newest version in sPHENIX GitHub at line 83 of file CbmDigi.h

Referenced by CbmDigi(), GetLinks(), operator=(), and SetLinks().


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