CbmRoot
|
Data class for an analog signal in the STS. More...
#include <CbmStsSignal.h>
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 CbmMatch & | GetMatch () 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... | |
Data class for an analog signal in the STS.
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.
CbmStsSignal::CbmStsSignal | ( | Double_t | time = 0. , |
Double_t | charge = 0. , |
||
Int_t | index = 0 , |
||
Int_t | entry = -1 , |
||
Int_t | file = -1 |
||
) |
Default constructor
time | Signal time [ns] |
charge | Analog charge [e] |
index | Index of CbmStsPoint |
entry | Entry in input TTree |
file | Number of input file |
Definition at line 10 of file CbmStsSignal.cxx.
References CbmMatch::AddLink(), and fMatch.
|
virtual |
Destructor
Definition at line 22 of file CbmStsSignal.cxx.
|
inline |
Add a link to MCPoint to the match member
charge | Analog charge [e] |
index | Index of CbmStsPoint |
entry | Entry in input TTree |
file | Number of input file |
Definition at line 55 of file CbmStsSignal.h.
References CbmMatch::AddLink(), and fMatch.
|
private |
|
inline |
Charge
Definition at line 63 of file CbmStsSignal.h.
References fMatch, and CbmMatch::GetTotalWeight().
Referenced by CbmStsSimModule::Digitize().
|
inline |
Match object
Definition at line 69 of file CbmStsSignal.h.
References fMatch.
Referenced by CbmStsSimModule::Digitize().
|
inline |
Time
Definition at line 75 of file CbmStsSignal.h.
References fTime.
Referenced by CbmStsSimModule::Digitize(), CbmStsSignal::Before::operator()(), and operator<().
|
inline |
Less operator
Reference | to CbmSignal object to compare to |
Definition at line 88 of file CbmStsSignal.h.
|
inline |
Set time
time | New signal time [ns] |
Definition at line 81 of file CbmStsSignal.h.
References fTime.
|
private |
Match object (total weight = charge)
Definition at line 105 of file CbmStsSignal.h.
Referenced by AddLink(), CbmStsSignal(), GetCharge(), and GetMatch().
|
private |
Signal time [ns].
Definition at line 104 of file CbmStsSignal.h.
Referenced by GetTime(), operator<(), and SetTime().