#include <PndGemCluster.h>
|
| PndGemCluster () |
|
| PndGemCluster (Int_t iDetectorId, Double_t iChannel, Int_t bChannel, Int_t eChannel, std::vector< Int_t > index) |
|
| PndGemCluster (Int_t iDetectorId, Double_t iChannel, Int_t bChannel, Int_t eChannel, Double_t signal, Double_t time, std::vector< Int_t > index) |
|
virtual | ~PndGemCluster () |
|
void | SetCharge (Double_t iCharge) |
|
void | SetCor (Double_t iCor) |
|
void | SetClusterBeg (Int_t bChan) |
|
void | SetClusterEnd (Int_t eChan) |
|
void | AddCharge (Double_t iCharge) |
|
Int_t | GetDetectorId () const |
|
Double_t | GetChannelNr () const |
|
Int_t | GetSystemId () const |
|
Int_t | GetStationNr () const |
|
Int_t | GetSensorNr () const |
|
Int_t | GetSide () const |
|
Int_t | GetClusterBeg () const |
|
Int_t | GetClusterEnd () const |
|
Double_t | GetCharge () const |
|
Double_t | GetCor () const |
|
std::vector< Int_t > | GetIndices () const |
|
Int_t | GetNIndices () |
|
Int_t | GetIndex (int i=0) const |
|
void | AddIndex (int index) |
|
void | AddIndex (std::vector< Int_t > index) |
|
virtual bool | equal (FairTimeStamp *data) |
|
virtual bool | operator< (const PndGemCluster &myCluster) const |
|
virtual bool | operator> (const PndGemCluster &myCluster) const |
|
virtual bool | operator== (const PndGemCluster &myCluster) const |
|
PndGemCluster.h
- Author
- R.Karabowicz r.kar.nosp@m.abow.nosp@m.icz@g.nosp@m.si.d.nosp@m.e
- Since
- 03.06.2013
- Version
- 1.0
Data class for first reconstruction stage of the GEM Tracker Data level: cluster
Definition at line 29 of file PndGemCluster.h.
◆ PndGemCluster() [1/3]
PndGemCluster::PndGemCluster |
( |
| ) |
|
◆ PndGemCluster() [2/3]
PndGemCluster::PndGemCluster |
( |
Int_t |
iDetectorId, |
|
|
Double_t |
iChannel, |
|
|
Int_t |
bChannel, |
|
|
Int_t |
eChannel, |
|
|
std::vector< 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 |
◆ PndGemCluster() [3/3]
PndGemCluster::PndGemCluster |
( |
Int_t |
iDetectorId, |
|
|
Double_t |
iChannel, |
|
|
Int_t |
bChannel, |
|
|
Int_t |
eChannel, |
|
|
Double_t |
signal, |
|
|
Double_t |
time, |
|
|
std::vector< Int_t > |
index |
|
) |
| |
◆ ~PndGemCluster()
virtual PndGemCluster::~PndGemCluster |
( |
| ) |
|
|
virtual |
◆ AddCharge()
void PndGemCluster::AddCharge |
( |
Double_t |
iCharge | ) |
|
|
inline |
◆ AddIndex() [1/2]
void PndGemCluster::AddIndex |
( |
int |
index | ) |
|
|
inline |
Definition at line 99 of file PndGemCluster.h.
99 { AddLink(FairLink(
"GEMDigi", index)); }
◆ AddIndex() [2/2]
void PndGemCluster::AddIndex |
( |
std::vector< Int_t > |
index | ) |
|
|
inline |
Definition at line 100 of file PndGemCluster.h.
100 { SetLinks(FairMultiLinkedData(
"GEMDigi", index)); }
◆ equal()
virtual bool PndGemCluster::equal |
( |
FairTimeStamp * |
data | ) |
|
|
inlinevirtual |
◆ GetChannelNr()
Double_t PndGemCluster::GetChannelNr |
( |
| ) |
const |
|
inline |
◆ GetCharge()
Double_t PndGemCluster::GetCharge |
( |
| ) |
const |
|
inline |
◆ GetClusterBeg()
Int_t PndGemCluster::GetClusterBeg |
( |
| ) |
const |
|
inline |
◆ GetClusterEnd()
Int_t PndGemCluster::GetClusterEnd |
( |
| ) |
const |
|
inline |
◆ GetCor()
Double_t PndGemCluster::GetCor |
( |
| ) |
const |
|
inline |
◆ GetDetectorId()
Int_t PndGemCluster::GetDetectorId |
( |
| ) |
const |
|
inline |
◆ GetIndex()
Int_t PndGemCluster::GetIndex |
( |
int |
i = 0 | ) |
const |
|
inline |
Definition at line 97 of file PndGemCluster.h.
References i.
97 {
return GetLink(
i).GetIndex(); }
◆ GetIndices()
std::vector<Int_t> PndGemCluster::GetIndices |
( |
| ) |
const |
|
inline |
Definition at line 87 of file PndGemCluster.h.
89 std::vector<Int_t> result;
90 std::set<FairLink> myLinks = GetLinks();
91 for (std::set<FairLink>::iterator it = myLinks.begin(); it != myLinks.end(); it++) {
92 result.push_back(it->GetIndex());
◆ GetNIndices()
Int_t PndGemCluster::GetNIndices |
( |
| ) |
|
|
inline |
◆ GetSensorNr()
Int_t PndGemCluster::GetSensorNr |
( |
| ) |
const |
|
inline |
Definition at line 76 of file PndGemCluster.h.
78 return ((fDetectorId & (3 << 6)) >> 6);
◆ GetSide()
Int_t PndGemCluster::GetSide |
( |
| ) |
const |
|
inline |
Definition at line 80 of file PndGemCluster.h.
80 {
return ((fDetectorId & (1 << 5)) >> 5); }
◆ GetStationNr()
Int_t PndGemCluster::GetStationNr |
( |
| ) |
const |
|
inline |
Definition at line 75 of file PndGemCluster.h.
75 {
return ((fDetectorId & (8191 << 8)) >> 8); }
◆ GetSystemId()
Int_t PndGemCluster::GetSystemId |
( |
| ) |
const |
|
inline |
Definition at line 74 of file PndGemCluster.h.
74 {
return ((fDetectorId & (31 << 27)) >> 27); }
◆ operator<()
virtual bool PndGemCluster::operator< |
( |
const PndGemCluster & |
myCluster | ) |
const |
|
inlinevirtual |
◆ operator==()
virtual bool PndGemCluster::operator== |
( |
const PndGemCluster & |
myCluster | ) |
const |
|
inlinevirtual |
◆ operator>()
virtual bool PndGemCluster::operator> |
( |
const PndGemCluster & |
myCluster | ) |
const |
|
inlinevirtual |
◆ SetCharge()
void PndGemCluster::SetCharge |
( |
Double_t |
iCharge | ) |
|
|
inline |
◆ SetClusterBeg()
void PndGemCluster::SetClusterBeg |
( |
Int_t |
bChan | ) |
|
|
inline |
◆ SetClusterEnd()
void PndGemCluster::SetClusterEnd |
( |
Int_t |
eChan | ) |
|
|
inline |
◆ SetCor()
void PndGemCluster::SetCor |
( |
Double_t |
iCor | ) |
|
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
PndGemCluster & |
cluster |
|
) |
| |
|
friend |
Definition at line 30 of file PndGemCluster.h.
34 <<
" to " << cluster.
GetClusterEnd() <<
" > charge = " << cluster.
GetCharge() <<
", cor = " << cluster.
GetCor() <<
", timestamp " << cluster.GetTimeStamp()
35 <<
", from Point(s) ";
36 std::vector<Int_t> indices = cluster.
GetIndices();
37 for (
unsigned int i = 0;
i < indices.size();
i++) {
38 out << indices[
i] <<
" ";
Int_t GetSensorNr() const
Int_t GetDetectorId() const
Int_t GetClusterBeg() const
Int_t GetSystemId() const
Int_t GetClusterEnd() const
std::vector< Int_t > GetIndices() const
Int_t GetStationNr() const
Double_t GetCharge() const
Double_t GetChannelNr() const
The documentation for this class was generated from the following file: