|
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]. | |
| CbmMatch | fMatch |
| Match object (total weight = charge) | |
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 32 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 14 of file CbmStsSignal.cxx.
Referenced by ClassDef(), CbmStsSignal::Before::operator()(), and operator<().
|
virtual |
Destructor
Definition at line 25 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 fMatch.
|
private |
References CbmStsSignal().
|
inline |
Charge
Definition at line 64 of file CbmStsSignal.h.
References fMatch.
Referenced by CbmStsSimModule::Digitize().
|
inline |
Match object
Definition at line 70 of file CbmStsSignal.h.
References fMatch.
Referenced by CbmStsSimModule::Digitize().
|
inline |
Time
Definition at line 76 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 89 of file CbmStsSignal.h.
References CbmStsSignal(), fTime, and GetTime().
|
inline |
Set time
| time | New signal time [ns] |
Definition at line 82 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 CbmStsSignal(), GetTime(), operator<(), and SetTime().