BmnRoot
Loading...
Searching...
No Matches
BmnDigi Class Referenceabstract

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

#include <BmnDigi.h>

Inheritance diagram for BmnDigi:
[legend]
Collaboration diagram for BmnDigi:
[legend]

Public Member Functions

 BmnDigi ()
 
 BmnDigi (const BmnDigi &)
 
 BmnDigi (BmnDigi &&)
 
virtual ~BmnDigi ()
 
BmnDigioperator= (const BmnDigi &)
 
BmnDigioperator= (BmnDigi &&)
 
virtual Int_t GetAddress () const =0
 
virtual Double_t GetCharge () const
 
BmnMatchGetMatch () const
 
virtual Int_t GetSystemId () const =0
 
virtual Double_t GetTime () const =0
 
void SetMatch (BmnMatch *match)
 
virtual std::string ToString () const
 

Protected Member Functions

 ClassDef (BmnDigi, 2)
 

Protected Attributes

BmnMatchfMatch
 Monte-Carlo match information.
 

Detailed Description

Base class for persistent representation of digital information.

Version
2.0

BmnDigi 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 BmnDigi.h.

Constructor & Destructor Documentation

◆ BmnDigi() [1/3]

BmnDigi::BmnDigi ( )

Default constructor

Definition at line 24 of file BmnDigi.cxx.

◆ BmnDigi() [2/3]

BmnDigi::BmnDigi ( const BmnDigi rhs)

Copy constructor

Definition at line 34 of file BmnDigi.cxx.

References BmnMatch::AddLinks(), and fMatch.

◆ BmnDigi() [3/3]

BmnDigi::BmnDigi ( BmnDigi &&  other)

Move constructor

Definition at line 48 of file BmnDigi.cxx.

References fMatch.

◆ ~BmnDigi()

BmnDigi::~BmnDigi ( )
virtual

Destructor

Definition at line 93 of file BmnDigi.cxx.

References fMatch.

Member Function Documentation

◆ ClassDef()

BmnDigi::ClassDef ( BmnDigi  ,
 
)
protected

◆ GetAddress()

Int_t BmnDigi::GetAddress ( ) const
pure virtual

Unique channel address

Implemented in BmnSsdDigi.

Definition at line 111 of file BmnDigi.cxx.

Referenced by BmnDaqBuffer::InsertData(), and ToString().

◆ GetCharge()

virtual Double_t BmnDigi::GetCharge ( ) const
inlinevirtual

Charge (optional)

Reimplemented in BmnSsdDigi.

Definition at line 72 of file BmnDigi.h.

◆ GetMatch()

BmnMatch * BmnDigi::GetMatch ( ) const
inline

Get pointer to MC match

Definition at line 76 of file BmnDigi.h.

References fMatch.

Referenced by BmnSsdDigitize::WriteDigi().

◆ GetSystemId()

Int_t BmnDigi::GetSystemId ( ) const
pure virtual

System (enum DetectorId)

Implemented in BmnSsdDigi.

Definition at line 116 of file BmnDigi.cxx.

Referenced by BmnDaqBuffer::InsertData().

◆ GetTime()

Double_t BmnDigi::GetTime ( ) const
pure virtual

Absolute time [ns]

Implemented in BmnSsdDigi.

Definition at line 121 of file BmnDigi.cxx.

Referenced by BmnDaqBuffer::GetNextData(), BmnDaqBuffer::InsertData(), and ToString().

◆ operator=() [1/2]

BmnDigi & BmnDigi::operator= ( BmnDigi &&  other)

Move Assignment operator

Definition at line 77 of file BmnDigi.cxx.

References fMatch.

◆ operator=() [2/2]

BmnDigi & BmnDigi::operator= ( const BmnDigi rhs)

Assignment operator

Definition at line 60 of file BmnDigi.cxx.

References BmnMatch::AddLinks(), and fMatch.

◆ SetMatch()

void BmnDigi::SetMatch ( BmnMatch match)
inline

Set pointer to link collection

Definition at line 88 of file BmnDigi.h.

References fMatch.

Referenced by BmnSsdDigitize::CreateDigi().

◆ ToString()

string BmnDigi::ToString ( ) const
virtual

Output information

Reimplemented in BmnSsdDigi.

Definition at line 101 of file BmnDigi.cxx.

References GetAddress(), and GetTime().

Member Data Documentation

◆ fMatch

BmnMatch* BmnDigi::fMatch
protected

Monte-Carlo match information.

Definition at line 97 of file BmnDigi.h.

Referenced by BmnDigi(), BmnDigi(), GetMatch(), operator=(), operator=(), SetMatch(), and ~BmnDigi().


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