#include <PndGemDigi.h>
PndGemDigi.h
- Author
- R.Karabowicz r.kar.nosp@m.abow.nosp@m.icz@g.nosp@m.si.d.nosp@m.e
- Since
- 2010
Data class for digital GEM information Data level: RAW
The index of the (first) MCPoint having activated this channel is accessible via GetMcPointIndex().
Definition at line 30 of file PndGemDigi.h.
◆ PndGemDigi() [1/3]
PndGemDigi::PndGemDigi |
( |
| ) |
|
◆ PndGemDigi() [2/3]
PndGemDigi::PndGemDigi |
( |
Int_t |
iDetectorId, |
|
|
Double_t |
iChannel, |
|
|
Int_t |
index |
|
) |
| |
Constructor from station number, sector number, front/back side and channel number
- Parameters
-
iStation | station number (0-255) |
iSector | sector number (0-32767) |
iSide | 0=front side; 1=back side |
iChannel | channel number |
◆ PndGemDigi() [3/3]
PndGemDigi::PndGemDigi |
( |
Int_t |
iDetectorId, |
|
|
Double_t |
iChannel, |
|
|
Int_t |
index, |
|
|
Double_t |
signal, |
|
|
Double_t |
time |
|
) |
| |
◆ ~PndGemDigi()
virtual PndGemDigi::~PndGemDigi |
( |
| ) |
|
|
virtual |
◆ AddCharge()
void PndGemDigi::AddCharge |
( |
Double_t |
iCharge | ) |
|
|
inline |
Definition at line 65 of file PndGemDigi.h.
65 { fDigiCharge += iCharge; }
◆ AddIndex() [1/2]
void PndGemDigi::AddIndex |
( |
int |
index | ) |
|
|
inline |
Definition at line 94 of file PndGemDigi.h.
94 { AddLink(FairLink(
"GEMPoint", index)); }
◆ AddIndex() [2/2]
void PndGemDigi::AddIndex |
( |
std::vector< Int_t > |
index | ) |
|
|
inline |
Definition at line 95 of file PndGemDigi.h.
95 { SetLinks(FairMultiLinkedData(
"GEMPoint", index)); }
◆ equal()
virtual bool PndGemDigi::equal |
( |
FairTimeStamp * |
data | ) |
|
|
inlinevirtual |
◆ GetChannelNr()
Double_t PndGemDigi::GetChannelNr |
( |
| ) |
const |
|
inline |
◆ GetCharge()
Double_t PndGemDigi::GetCharge |
( |
| ) |
const |
|
inline |
Definition at line 79 of file PndGemDigi.h.
79 {
return fDigiCharge; }
◆ GetCor()
Double_t PndGemDigi::GetCor |
( |
| ) |
const |
|
inline |
◆ GetDetectorId()
Int_t PndGemDigi::GetDetectorId |
( |
| ) |
const |
|
inline |
◆ GetIndex()
Int_t PndGemDigi::GetIndex |
( |
int |
i = 0 | ) |
const |
|
inline |
Definition at line 92 of file PndGemDigi.h.
References i.
92 {
return GetLink(
i).GetIndex(); }
◆ GetIndices()
std::vector<Int_t> PndGemDigi::GetIndices |
( |
| ) |
const |
|
inline |
Definition at line 82 of file PndGemDigi.h.
84 std::vector<Int_t> result;
85 std::set<FairLink> myLinks = GetLinks();
86 for (std::set<FairLink>::iterator it = myLinks.begin(); it != myLinks.end(); it++) {
87 result.push_back(it->GetIndex());
◆ GetNIndices()
Int_t PndGemDigi::GetNIndices |
( |
| ) |
|
|
inline |
Definition at line 91 of file PndGemDigi.h.
91 {
return GetNLinks(); }
◆ GetSensorNr()
Int_t PndGemDigi::GetSensorNr |
( |
| ) |
const |
|
inline |
Definition at line 73 of file PndGemDigi.h.
75 return ((fDetectorId & (3 << 6)) >> 6);
◆ GetSide()
Int_t PndGemDigi::GetSide |
( |
| ) |
const |
|
inline |
Definition at line 77 of file PndGemDigi.h.
77 {
return ((fDetectorId & (1 << 5)) >> 5); }
◆ GetStationNr()
Int_t PndGemDigi::GetStationNr |
( |
| ) |
const |
|
inline |
Definition at line 72 of file PndGemDigi.h.
72 {
return ((fDetectorId & (8191 << 8)) >> 8); }
◆ GetSystemId()
Int_t PndGemDigi::GetSystemId |
( |
| ) |
const |
|
inline |
Definition at line 71 of file PndGemDigi.h.
71 {
return ((fDetectorId & (31 << 27)) >> 27); }
◆ operator<()
virtual bool PndGemDigi::operator< |
( |
const PndGemDigi & |
myDigi | ) |
const |
|
inlinevirtual |
◆ operator==()
virtual bool PndGemDigi::operator== |
( |
const PndGemDigi & |
myDigi | ) |
const |
|
inlinevirtual |
◆ operator>()
virtual bool PndGemDigi::operator> |
( |
const PndGemDigi & |
myDigi | ) |
const |
|
inlinevirtual |
◆ SetCharge()
void PndGemDigi::SetCharge |
( |
Double_t |
iCharge | ) |
|
|
inline |
Definition at line 62 of file PndGemDigi.h.
62 { fDigiCharge = iCharge; }
◆ SetCor()
void PndGemDigi::SetCor |
( |
Double_t |
iCor | ) |
|
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
PndGemDigi & |
digi |
|
) |
| |
|
friend |
Definition at line 31 of file PndGemDigi.h.
35 << digi.GetTimeStamp() <<
", from Point(s) ";
36 std::vector<Int_t> indices = digi.
GetIndices();
37 for (
unsigned int i = 0;
i < indices.size();
i++) {
38 out << indices[
i] <<
" ";
Int_t GetSystemId() const
Double_t GetCharge() const
Int_t GetDetectorId() const
Double_t GetChannelNr() const
std::vector< Int_t > GetIndices() const
Int_t GetSensorNr() const
Int_t GetStationNr() const
The documentation for this class was generated from the following file: