BmnRoot
Loading...
Searching...
No Matches
BmnSsdSignal Class Reference

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

#include <BmnSsdSignal.h>

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

Classes

struct  Before
 

Public Member Functions

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

Detailed Description

Data class for an analog signal in the SSD.

Since
12.12.2018
Version
1.0

Simple data class used in the digitisation process of the SSD. It describes an analog charge signal produced in the SSD sensors and arriving at the readout. It contains time and charge information (the latter through the total weight member of the BmnMatch 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 BmnMatch and not BmnLink.

Definition at line 27 of file BmnSsdSignal.h.

Constructor & Destructor Documentation

◆ BmnSsdSignal()

BmnSsdSignal::BmnSsdSignal ( 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 BmnSsdPoint
entryEntry in input TTree
fileNumber of input file

Definition at line 11 of file BmnSsdSignal.cxx.

References BmnMatch::AddLink().

◆ ~BmnSsdSignal()

BmnSsdSignal::~BmnSsdSignal ( )
virtual

Destructor

Definition at line 22 of file BmnSsdSignal.cxx.

Member Function Documentation

◆ AddLink()

void BmnSsdSignal::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 BmnSsdPoint
entryEntry in input TTree
fileNumber of input file

Definition at line 52 of file BmnSsdSignal.h.

References BmnMatch::AddLink().

◆ GetCharge()

Double_t BmnSsdSignal::GetCharge ( ) const
inline

Charge

Returns
Signal analog charge [e]

Definition at line 61 of file BmnSsdSignal.h.

References BmnMatch::GetTotalWeight().

◆ GetMatch()

const BmnMatch & BmnSsdSignal::GetMatch ( ) const
inline

Match object

Returns
const. reference to match object

Definition at line 67 of file BmnSsdSignal.h.

◆ GetTime()

Double_t BmnSsdSignal::GetTime ( ) const
inline

Time

Returns
Signal time [ns]

Definition at line 73 of file BmnSsdSignal.h.

Referenced by BmnSsdSignal::Before::operator()(), and operator<().

◆ operator<()

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

Less operator

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

Definition at line 86 of file BmnSsdSignal.h.

References GetTime().

◆ SetTime()

void BmnSsdSignal::SetTime ( Double_t  time)
inline

Set time

Parameters
timeNew signal time [ns]

Definition at line 79 of file BmnSsdSignal.h.


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