CbmRoot
CbmStsSignal Class Reference

Data class for an analog signal in the STS. More...

#include <CbmStsSignal.h>

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

Classes

struct  Before
 

Public Member Functions

 CbmStsSignal (Double_t time=0., Double_t charge=0., Int_t index=0, Int_t entry=-1, Int_t file=-1)
 
virtual ~CbmStsSignal ()
 
void AddLink (Double_t charge, Int_t index, Int_t entry=-1, Int_t file=-1)
 
Double_t GetCharge () const
 
const CbmMatchGetMatch () const
 
Double_t GetTime () const
 
void SetTime (Double_t time)
 
bool operator< (const CbmStsSignal &otherSignal) const
 

Private Member Functions

 ClassDef (CbmStsSignal, 1)
 

Private Attributes

Double_t fTime
 Signal time [ns]. More...
 
CbmMatch fMatch
 Match object (total weight = charge) More...
 

Detailed Description

Data class for an analog signal in the STS.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
28.06.2014
Version
1.0

Simple data class used in the digitisation process of the STS. It describes an analog charge signal produced in the STS sensors and arriving at the readout. It contains time and charge information (the latter through the total weight member of the CbmMatch member), and references to the MCPoints having caused the charge. In the most general case, a signal can be produced by more than one MCPoint; that is why the MC reference is of type CbmMatch and not CbmLink.

Definition at line 27 of file CbmStsSignal.h.

Constructor & Destructor Documentation

◆ CbmStsSignal()

CbmStsSignal::CbmStsSignal ( Double_t  time = 0.,
Double_t  charge = 0.,
Int_t  index = 0,
Int_t  entry = -1,
Int_t  file = -1 
)

Default constructor

Parameters
timeSignal time [ns]
chargeAnalog charge [e]
indexIndex of CbmStsPoint
entryEntry in input TTree
fileNumber of input file

Definition at line 10 of file CbmStsSignal.cxx.

References CbmMatch::AddLink(), and fMatch.

◆ ~CbmStsSignal()

CbmStsSignal::~CbmStsSignal ( )
virtual

Destructor

Definition at line 22 of file CbmStsSignal.cxx.

Member Function Documentation

◆ AddLink()

void CbmStsSignal::AddLink ( Double_t  charge,
Int_t  index,
Int_t  entry = -1,
Int_t  file = -1 
)
inline

Add a link to MCPoint to the match member

Parameters
chargeAnalog charge [e]
indexIndex of CbmStsPoint
entryEntry in input TTree
fileNumber of input file

Definition at line 55 of file CbmStsSignal.h.

References CbmMatch::AddLink(), and fMatch.

◆ ClassDef()

CbmStsSignal::ClassDef ( CbmStsSignal  ,
 
)
private

◆ GetCharge()

Double_t CbmStsSignal::GetCharge ( ) const
inline

Charge

Returns
Signal analog charge [e]

Definition at line 63 of file CbmStsSignal.h.

References fMatch, and CbmMatch::GetTotalWeight().

Referenced by CbmStsSimModule::Digitize().

◆ GetMatch()

const CbmMatch& CbmStsSignal::GetMatch ( ) const
inline

Match object

Returns
const. reference to match object

Definition at line 69 of file CbmStsSignal.h.

References fMatch.

Referenced by CbmStsSimModule::Digitize().

◆ GetTime()

Double_t CbmStsSignal::GetTime ( ) const
inline

Time

Returns
Signal time [ns]

Definition at line 75 of file CbmStsSignal.h.

References fTime.

Referenced by CbmStsSimModule::Digitize(), CbmStsSignal::Before::operator()(), and operator<().

◆ operator<()

bool CbmStsSignal::operator< ( const CbmStsSignal otherSignal) const
inline

Less operator

Parameters
Referenceto CbmSignal object to compare to
Returns
true if signal time is less than time of comparison signal

Definition at line 88 of file CbmStsSignal.h.

References fTime, and GetTime().

◆ SetTime()

void CbmStsSignal::SetTime ( Double_t  time)
inline

Set time

Parameters
timeNew signal time [ns]

Definition at line 81 of file CbmStsSignal.h.

References fTime.

Member Data Documentation

◆ fMatch

CbmMatch CbmStsSignal::fMatch
private

Match object (total weight = charge)

Definition at line 105 of file CbmStsSignal.h.

Referenced by AddLink(), CbmStsSignal(), GetCharge(), and GetMatch().

◆ fTime

Double_t CbmStsSignal::fTime
private

Signal time [ns].

Definition at line 104 of file CbmStsSignal.h.

Referenced by GetTime(), operator<(), and SetTime().


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