FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
PndSdsDigiTopix4 Class Reference

Data class to store the digi output of a pixel module. More...

#include <PndSdsDigiTopix4.h>

Inheritance diagram for PndSdsDigiTopix4:
PndSdsDigiPixel PndSdsDigi

Public Member Functions

 PndSdsDigiTopix4 ()
 
 PndSdsDigiTopix4 (std::vector< Int_t > index, Int_t detID, Int_t sensorID, Int_t fe, Int_t col, Int_t row, UInt_t leadingEdge, UInt_t trailingEdge, UInt_t frameCount, Double_t timeStamp, UInt_t hitcountcorrect, UInt_t hitCounterIndependent, Double_t timeStampIndependent)
 
UInt_t GetLeadingEdge () const
 
UInt_t GetTrailingEdge () const
 
UInt_t GetFrameCount () const
 
Double_t GetTimeStampIndependent () const
 
UInt_t GetHitCountIndependent () const
 
UInt_t GetHitCountCorrect () const
 
void SetLeadingEdge (UInt_t le)
 
void SetTrailingEdge (UInt_t te)
 
void SetFrameCount (UInt_t fc)
 
void SetHitCountIndependent (UInt_t hci)
 
void SetTimeStampIndependent (Double_t tsi)
 
void SetHitCountCorrect (UInt_t hcc)
 
 ~PndSdsDigiTopix4 ()
 
void Print ()
 
PndSdsDigiTopix4operator= (const PndSdsDigiTopix4 &pix)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
Int_t GetPixelColumn () const
 
Int_t GetPixelRow () const
 
void SetPixelColumn (Int_t col)
 
void SetPixelRow (Int_t row)
 
bool operator== (PndSdsDigiPixel &myDigi)
 
virtual bool equal (FairTimeStamp *data)
 
virtual bool operator< (const PndSdsDigiPixel &myDigi) const
 
virtual bool operator< (const PndSdsDigi &myDigi) const
 
virtual bool operator> (const PndSdsDigiPixel &myDigi) const
 
Int_t GetFE () const
 
Int_t GetSensorID () const
 
Double_t GetCharge () const
 
Int_t GetDetID () const
 
std::vector< Int_t > GetIndices () const
 
Int_t GetIndex (int i=0) const
 
Int_t GetNIndices () const
 
virtual void AddIndex (int index)
 
virtual void AddIndex (std::vector< Int_t > index)
 
void SetCharge (double charge)
 
void AddCharge (double charge)
 

Protected Member Functions

 ClassDef (PndSdsDigi, 4)
 

Protected Attributes

std::vector< Int_t > fIndex
 
Int_t fDetID
 
Int_t fSensorID
 
Int_t fFE
 
Double_t fCharge
 

Private Member Functions

 ClassDef (PndSdsDigiTopix4, 3)
 

Private Attributes

UInt_t fLeadingEdge
 
UInt_t fTrailingEdge
 
UInt_t fFrameCount
 
UInt_t fHitCountCorrect
 
UInt_t fHitCountIndependent
 
Double_t fTimeStampIndependent
 

Friends

class boost::serialization::access
 
std::ostreamoperator<< (std::ostream &out, PndSdsDigiTopix4 &digi)
 

Detailed Description

Data class to store the digi output of a pixel module.

PndSdsDigiTopix4.h

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de
See Also
PndSdsDigi.h

Definition at line 25 of file PndSdsDigiTopix4.h.

Constructor & Destructor Documentation

PndSdsDigiTopix4::PndSdsDigiTopix4 ( )
PndSdsDigiTopix4::PndSdsDigiTopix4 ( std::vector< Int_t >  index,
Int_t  detID,
Int_t  sensorID,
Int_t  fe,
Int_t  col,
Int_t  row,
UInt_t  leadingEdge,
UInt_t  trailingEdge,
UInt_t  frameCount,
Double_t  timeStamp,
UInt_t  hitcountcorrect,
UInt_t  hitCounterIndependent,
Double_t  timeStampIndependent 
)

Definition at line 7 of file PndSdsDigiTopix4.cxx.

References Double_t, and PndSdsDigi::SetCharge().

7  :
8  PndSdsDigiPixel(index, detID, sensorID, fe, col, row, 0, timeStamp), fLeadingEdge(leadingEdge), fTrailingEdge(trailingEdge), fFrameCount(frameCount), fHitCountCorrect(hitCountCorrect), fHitCountIndependent(hitCountIndependent), fTimeStampIndependent(timeStampIndependent)
9 {
10  Double_t charge = 0;
11  if(leadingEdge < trailingEdge){
12  charge = trailingEdge - leadingEdge;
13  } else {
14  charge = (trailingEdge + 4096) - leadingEdge;
15  }
16  SetCharge(charge);
17 }
int row
Definition: anaLmdDigi.C:67
int col
Definition: anaLmdDigi.C:67
Double_t fTimeStampIndependent
Double_t
void SetCharge(double charge)
Definition: PndSdsDigi.h:77
int fe
Definition: anaLmdDigi.C:67
PndSdsDigiTopix4::~PndSdsDigiTopix4 ( )
inline

Definition at line 57 of file PndSdsDigiTopix4.h.

57 {};

Member Function Documentation

void PndSdsDigi::AddCharge ( double  charge)
inlineinherited
virtual void PndSdsDigi::AddIndex ( int  index)
inlinevirtualinherited

Definition at line 66 of file PndSdsDigi.h.

References PndSdsDigi::fDetID, and PndSdsDigi::fIndex.

Referenced by PndSdsStripHitProducerDif::AddDigi(), PndSdsNoiseProducer::AddDigiPixel(), PndSdsNoiseProducer::AddDigiStrip(), and PndSdsDigi::PndSdsDigi().

67  {
68  fIndex.push_back(index);
69  AddLink(FairLink(fDetID, index));
70  }
Int_t fDetID
Definition: PndSdsDigi.h:111
std::vector< Int_t > fIndex
Definition: PndSdsDigi.h:110
virtual void PndSdsDigi::AddIndex ( std::vector< Int_t >  index)
inlinevirtualinherited

Definition at line 72 of file PndSdsDigi.h.

References PndSdsDigi::fDetID, and PndSdsDigi::fIndex.

73  {
74  fIndex = index;
75  AddLinks(FairMultiLinkedData(fDetID, index));
76  }
Int_t fDetID
Definition: PndSdsDigi.h:111
std::vector< Int_t > fIndex
Definition: PndSdsDigi.h:110
PndSdsDigiTopix4::ClassDef ( PndSdsDigiTopix4  ,
 
)
private
PndSdsDigi::ClassDef ( PndSdsDigi  ,
 
)
protectedinherited
virtual bool PndSdsDigiPixel::equal ( FairTimeStamp *  data)
inlinevirtualinherited

Definition at line 67 of file PndSdsDigiPixel.h.

References PndSdsDigiPixel::fCol, PndSdsDigi::fFE, PndSdsDigiPixel::fRow, PndSdsDigi::fSensorID, PndSdsDigi::GetFE(), PndSdsDigiPixel::GetPixelColumn(), PndSdsDigiPixel::GetPixelRow(), and PndSdsDigi::GetSensorID().

67  {
68  PndSdsDigiPixel* myDigi = dynamic_cast <PndSdsDigiPixel*> (data);
69  if (myDigi != 0){
70  if (fSensorID == myDigi->GetSensorID())
71  if (fFE == myDigi->GetFE())
72  if (fCol == myDigi->GetPixelColumn())
73  if (fRow == myDigi->GetPixelRow())
74  return true;
75  }
76  return false;
77  }
Int_t GetPixelRow() const
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t fSensorID
Definition: PndSdsDigi.h:112
Int_t GetPixelColumn() const
Int_t GetFE() const
Definition: PndSdsDigi.h:57
Int_t fFE
Definition: PndSdsDigi.h:113
Data class to store the digi output of a pixel module.
Double_t PndSdsDigi::GetCharge ( ) const
inlineinherited
Int_t PndSdsDigi::GetDetID ( ) const
inlineinherited
Int_t PndSdsDigi::GetFE ( ) const
inlineinherited
UInt_t PndSdsDigiTopix4::GetFrameCount ( ) const
inline

Definition at line 45 of file PndSdsDigiTopix4.h.

References fFrameCount.

Referenced by operator=().

45 { return fFrameCount;}
UInt_t PndSdsDigiTopix4::GetHitCountCorrect ( ) const
inline

Definition at line 48 of file PndSdsDigiTopix4.h.

References fHitCountCorrect.

Referenced by operator=().

48 {return fHitCountCorrect;}
UInt_t PndSdsDigiTopix4::GetHitCountIndependent ( ) const
inline

Definition at line 47 of file PndSdsDigiTopix4.h.

References fHitCountIndependent.

Referenced by operator=().

47 {return fHitCountIndependent;}
Int_t PndSdsDigi::GetIndex ( int  i = 0) const
inlineinherited
std::vector<Int_t> PndSdsDigi::GetIndices ( ) const
inlineinherited

Definition at line 62 of file PndSdsDigi.h.

References PndSdsDigi::fIndex.

Referenced by PndSdsDigiStrip::Print(), and PndCATracking::WriteMVDHits().

62 { return fIndex;}
std::vector< Int_t > fIndex
Definition: PndSdsDigi.h:110
UInt_t PndSdsDigiTopix4::GetLeadingEdge ( ) const
inline
Int_t PndSdsDigi::GetNIndices ( ) const
inlineinherited
Int_t PndSdsDigiPixel::GetPixelColumn ( ) const
inlineinherited
Int_t PndSdsDigiPixel::GetPixelRow ( ) const
inlineinherited
Int_t PndSdsDigi::GetSensorID ( ) const
inlineinherited
Double_t PndSdsDigiTopix4::GetTimeStampIndependent ( ) const
inline

Definition at line 46 of file PndSdsDigiTopix4.h.

References fTimeStampIndependent.

Referenced by operator=().

46 { return fTimeStampIndependent;}
Double_t fTimeStampIndependent
UInt_t PndSdsDigiTopix4::GetTrailingEdge ( ) const
inline
virtual bool PndSdsDigiPixel::operator< ( const PndSdsDigiPixel myDigi) const
inlinevirtualinherited

Definition at line 79 of file PndSdsDigiPixel.h.

References PndSdsDigiPixel::fCol, PndSdsDigi::fDetID, PndSdsDigi::fFE, PndSdsDigiPixel::fRow, PndSdsDigi::fSensorID, PndSdsDigi::GetDetID(), PndSdsDigi::GetFE(), PndSdsDigiPixel::GetPixelColumn(), PndSdsDigiPixel::GetPixelRow(), and PndSdsDigi::GetSensorID().

79  {
80  if (fDetID < myDigi.GetDetID()) return true; else if(fDetID > myDigi.GetDetID()) return false;
81  if (fSensorID < myDigi.GetSensorID()) return true; else if (fSensorID > myDigi.GetSensorID()) return false;
82  if (fFE < myDigi.GetFE()) return true; else if (fFE > myDigi.GetFE()) return false;
83  if (fCol < myDigi.GetPixelColumn()) return true; else if (fCol > myDigi.GetPixelColumn()) return false;
84  if (fRow < myDigi.GetPixelRow()) return true; else if (fRow > myDigi.GetPixelRow()) return false;
85  return false;
86  }
Int_t GetPixelRow() const
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t fSensorID
Definition: PndSdsDigi.h:112
Int_t GetPixelColumn() const
Int_t GetFE() const
Definition: PndSdsDigi.h:57
Int_t fDetID
Definition: PndSdsDigi.h:111
Int_t fFE
Definition: PndSdsDigi.h:113
Int_t GetDetID() const
Definition: PndSdsDigi.h:61
virtual bool PndSdsDigi::operator< ( const PndSdsDigi myDigi) const
inlinevirtualinherited

Definition at line 80 of file PndSdsDigi.h.

References PndSdsDigi::fDetID, PndSdsDigi::fFE, PndSdsDigi::fSensorID, PndSdsDigi::GetDetID(), PndSdsDigi::GetFE(), and PndSdsDigi::GetSensorID().

80  {
81  if (fDetID < myDigi.GetDetID()) return true; else if(fDetID > myDigi.GetDetID()) return false;
82  if (fSensorID < myDigi.GetSensorID()) return true; else if (fSensorID > myDigi.GetSensorID()) return false;
83  if (fFE < myDigi.GetFE()) return true; else if (fFE > myDigi.GetFE()) return false;
84  return false;
85  }
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t fSensorID
Definition: PndSdsDigi.h:112
Int_t GetFE() const
Definition: PndSdsDigi.h:57
Int_t fDetID
Definition: PndSdsDigi.h:111
Int_t fFE
Definition: PndSdsDigi.h:113
Int_t GetDetID() const
Definition: PndSdsDigi.h:61
PndSdsDigiTopix4& PndSdsDigiTopix4::operator= ( const PndSdsDigiTopix4 pix)
inline

Definition at line 64 of file PndSdsDigiTopix4.h.

References GetFrameCount(), GetHitCountCorrect(), GetHitCountIndependent(), GetLeadingEdge(), GetTimeStampIndependent(), GetTrailingEdge(), PndSdsDigiPixel::operator=(), SetFrameCount(), SetHitCountCorrect(), SetHitCountIndependent(), SetLeadingEdge(), SetTimeStampIndependent(), and SetTrailingEdge().

64  {
65  if (this != &pix){
66  this->PndSdsDigiPixel::operator=(pix);
67  }
74  return *this;
75  }
void SetTrailingEdge(UInt_t te)
PndSdsDigiPixel & operator=(const PndSdsDigiPixel &pix)
void SetLeadingEdge(UInt_t le)
UInt_t GetFrameCount() const
UInt_t GetLeadingEdge() const
UInt_t GetTrailingEdge() const
void SetFrameCount(UInt_t fc)
UInt_t GetHitCountIndependent() const
void SetHitCountCorrect(UInt_t hcc)
Double_t GetTimeStampIndependent() const
void SetHitCountIndependent(UInt_t hci)
void SetTimeStampIndependent(Double_t tsi)
UInt_t GetHitCountCorrect() const
bool PndSdsDigiPixel::operator== ( PndSdsDigiPixel myDigi)
inlineinherited

Definition at line 58 of file PndSdsDigiPixel.h.

References PndSdsDigiPixel::fCol, PndSdsDigi::fFE, PndSdsDigiPixel::fRow, PndSdsDigi::fSensorID, PndSdsDigi::GetFE(), PndSdsDigiPixel::GetPixelColumn(), PndSdsDigiPixel::GetPixelRow(), and PndSdsDigi::GetSensorID().

58  {
59  if (fSensorID == myDigi.GetSensorID())
60  if (fFE == myDigi.GetFE())
61  if (fCol == myDigi.GetPixelColumn())
62  if (fRow == myDigi.GetPixelRow())
63  return true;
64  return false;
65  }
Int_t GetPixelRow() const
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t fSensorID
Definition: PndSdsDigi.h:112
Int_t GetPixelColumn() const
Int_t GetFE() const
Definition: PndSdsDigi.h:57
Int_t fFE
Definition: PndSdsDigi.h:113
virtual bool PndSdsDigiPixel::operator> ( const PndSdsDigiPixel myDigi) const
inlinevirtualinherited

Definition at line 88 of file PndSdsDigiPixel.h.

References PndSdsDigiPixel::fCol, PndSdsDigi::fDetID, PndSdsDigi::fFE, PndSdsDigiPixel::fRow, PndSdsDigi::fSensorID, PndSdsDigi::GetDetID(), PndSdsDigi::GetFE(), PndSdsDigiPixel::GetPixelColumn(), PndSdsDigiPixel::GetPixelRow(), and PndSdsDigi::GetSensorID().

88  {
89  if (fDetID > myDigi.GetDetID()) return true; else if(fDetID < myDigi.GetDetID()) return false;
90  if (fSensorID > myDigi.GetSensorID()) return true; else if (fSensorID < myDigi.GetSensorID()) return false;
91  if (fFE > myDigi.GetFE()) return true; else if (fFE < myDigi.GetFE()) return false;
92  if (fCol > myDigi.GetPixelColumn()) return true; else if (fCol < myDigi.GetPixelColumn()) return false;
93  if (fRow > myDigi.GetPixelRow()) return true; else if (fRow < myDigi.GetPixelRow()) return false;
94  return false;
95  }
Int_t GetPixelRow() const
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t fSensorID
Definition: PndSdsDigi.h:112
Int_t GetPixelColumn() const
Int_t GetFE() const
Definition: PndSdsDigi.h:57
Int_t fDetID
Definition: PndSdsDigi.h:111
Int_t fFE
Definition: PndSdsDigi.h:113
Int_t GetDetID() const
Definition: PndSdsDigi.h:61
void PndSdsDigiTopix4::Print ( )
inlinevirtual

Reimplemented from PndSdsDigiPixel.

Definition at line 59 of file PndSdsDigiTopix4.h.

59  {
60  std::cout << *this;
61  }
template<class Archive >
void PndSdsDigiTopix4::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

Definition at line 78 of file PndSdsDigiTopix4.h.

References fFrameCount, fLeadingEdge, and fTrailingEdge.

79  {
80  ar & boost::serialization::base_object<PndSdsDigiPixel>(*this);
81  ar & fLeadingEdge;
82  ar & fTrailingEdge;
83  ar & fFrameCount;
84  }
void PndSdsDigi::SetCharge ( double  charge)
inlineinherited

Definition at line 77 of file PndSdsDigi.h.

References PndSdsDigi::fCharge.

Referenced by PndSdsDigiTopix4().

77 {fCharge = charge;}
Double_t fCharge
Definition: PndSdsDigi.h:114
void PndSdsDigiTopix4::SetFrameCount ( UInt_t  fc)
inline

Definition at line 52 of file PndSdsDigiTopix4.h.

References fFrameCount.

Referenced by operator=().

52 { fFrameCount = fc;}
void PndSdsDigiTopix4::SetHitCountCorrect ( UInt_t  hcc)
inline

Definition at line 55 of file PndSdsDigiTopix4.h.

References fHitCountCorrect.

Referenced by operator=().

55 { fHitCountCorrect = hcc;}
void PndSdsDigiTopix4::SetHitCountIndependent ( UInt_t  hci)
inline

Definition at line 53 of file PndSdsDigiTopix4.h.

References fHitCountIndependent.

Referenced by operator=().

53 { fHitCountIndependent = hci;}
void PndSdsDigiTopix4::SetLeadingEdge ( UInt_t  le)
inline

Definition at line 50 of file PndSdsDigiTopix4.h.

References fLeadingEdge.

Referenced by operator=().

50 { fLeadingEdge = le;}
void PndSdsDigiPixel::SetPixelColumn ( Int_t  col)
inlineinherited

Definition at line 55 of file PndSdsDigiPixel.h.

References col, and PndSdsDigiPixel::fCol.

55 { fCol = col;}
int col
Definition: anaLmdDigi.C:67
void PndSdsDigiPixel::SetPixelRow ( Int_t  row)
inlineinherited

Definition at line 56 of file PndSdsDigiPixel.h.

References PndSdsDigiPixel::fRow, and row.

56 { fRow = row;}
int row
Definition: anaLmdDigi.C:67
void PndSdsDigiTopix4::SetTimeStampIndependent ( Double_t  tsi)
inline

Definition at line 54 of file PndSdsDigiTopix4.h.

References fTimeStampIndependent.

Referenced by operator=().

54 {fTimeStampIndependent = tsi;}
Double_t fTimeStampIndependent
void PndSdsDigiTopix4::SetTrailingEdge ( UInt_t  te)
inline

Definition at line 51 of file PndSdsDigiTopix4.h.

References fTrailingEdge.

Referenced by operator=().

51 { fTrailingEdge = te;}

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 88 of file PndSdsDigiTopix4.h.

std::ostream& operator<< ( std::ostream out,
PndSdsDigiTopix4 digi 
)
friend

Definition at line 27 of file PndSdsDigiTopix4.h.

27  {
28  out << "PndSdsDigiTopix4 in Sensor: " << digi.GetSensorID() << " FE: "
29  << digi.GetFE() << " Col/Row " << digi.GetPixelColumn() << "/" << digi.GetPixelRow()
30  << " charge " << digi.GetCharge() << " e"
31  << " timestamp "<< digi.GetTimeStamp()
32  << " leadingEdge " << digi.GetLeadingEdge() << " trailingEdge " << digi.GetTrailingEdge()
33  << " frameCount " << digi.GetFrameCount() << std::endl;
34 
35  //out << std::endl;
36 
37  return out;
38  }
Int_t GetPixelRow() const
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t GetPixelColumn() const
Double_t GetCharge() const
Definition: PndSdsDigi.h:60
Int_t GetFE() const
Definition: PndSdsDigi.h:57
UInt_t GetFrameCount() const
UInt_t GetLeadingEdge() const
UInt_t GetTrailingEdge() const
TFile * out
Definition: reco_muo.C:20

Member Data Documentation

Double_t PndSdsDigi::fCharge
protectedinherited
Int_t PndSdsDigi::fDetID
protectedinherited
Int_t PndSdsDigi::fFE
protectedinherited
UInt_t PndSdsDigiTopix4::fFrameCount
private

Definition at line 93 of file PndSdsDigiTopix4.h.

Referenced by GetFrameCount(), serialize(), and SetFrameCount().

UInt_t PndSdsDigiTopix4::fHitCountCorrect
private

Definition at line 94 of file PndSdsDigiTopix4.h.

Referenced by GetHitCountCorrect(), and SetHitCountCorrect().

UInt_t PndSdsDigiTopix4::fHitCountIndependent
private

Definition at line 95 of file PndSdsDigiTopix4.h.

Referenced by GetHitCountIndependent(), and SetHitCountIndependent().

std::vector<Int_t> PndSdsDigi::fIndex
protectedinherited
UInt_t PndSdsDigiTopix4::fLeadingEdge
private

Definition at line 91 of file PndSdsDigiTopix4.h.

Referenced by GetLeadingEdge(), serialize(), and SetLeadingEdge().

Int_t PndSdsDigi::fSensorID
protectedinherited
Double_t PndSdsDigiTopix4::fTimeStampIndependent
private

Definition at line 96 of file PndSdsDigiTopix4.h.

Referenced by GetTimeStampIndependent(), and SetTimeStampIndependent().

UInt_t PndSdsDigiTopix4::fTrailingEdge
private

Definition at line 92 of file PndSdsDigiTopix4.h.

Referenced by GetTrailingEdge(), serialize(), and SetTrailingEdge().


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