PandaRoot
PndSdsPixel Class Reference

#include <PndSdsPixel.h>

Public Member Functions

 PndSdsPixel ()
 
 PndSdsPixel (Int_t sensorID, Int_t fe, Int_t col, Int_t row, Double_t charge, int index=-1)
 
void SetCol (Int_t col)
 
void SetRow (Int_t row)
 
void SetCharge (Double_t charge)
 
void SetSensorID (Int_t sensorID)
 
void SetFE (Int_t fe)
 
void SetAddNoise (Double_t addnoise)
 
Int_t GetCol () const
 
Int_t GetRow () const
 
Double_t GetCharge () const
 
Int_t GetSensorID () const
 
Int_t GetFE () const
 
std::vector< int > GetMCIndex ()
 
int GetFirstMCIndex ()
 
Double_t GetAddNoise () const
 
void AddCharge (Double_t charge)
 
void AddMCIndex (int i)
 

Friends

std::ostream & operator<< (std::ostream &out, PndSdsPixel pixel)
 

Detailed Description

Definition at line 21 of file PndSdsPixel.h.

Constructor & Destructor Documentation

◆ PndSdsPixel() [1/2]

PndSdsPixel::PndSdsPixel ( )
inline

Definition at line 23 of file PndSdsPixel.h.

23 : fFe(-1), fCol(-1), fRow(-1), fCharge(-1.0), fSensorID(-1), fMCIndex(), fAddNoise(0.){};

◆ PndSdsPixel() [2/2]

PndSdsPixel::PndSdsPixel ( Int_t  sensorID,
Int_t  fe,
Int_t  col,
Int_t  row,
Double_t  charge,
int  index = -1 
)
inline

Definition at line 25 of file PndSdsPixel.h.

26  : fFe(fe), fCol(col), fRow(row), fCharge(charge), fSensorID(sensorID), fMCIndex(), fAddNoise(0.)
27  {
28  if (index >= 0)
29  fMCIndex.push_back(index);
30  };

Member Function Documentation

◆ AddCharge()

void PndSdsPixel::AddCharge ( Double_t  charge)
inline

Definition at line 53 of file PndSdsPixel.h.

53 { fCharge += charge; };

◆ AddMCIndex()

void PndSdsPixel::AddMCIndex ( int  i)
inline

Definition at line 54 of file PndSdsPixel.h.

54 { fMCIndex.push_back(i); };
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetAddNoise()

Double_t PndSdsPixel::GetAddNoise ( ) const
inline

Definition at line 51 of file PndSdsPixel.h.

51 { return fAddNoise; };

◆ GetCharge()

Double_t PndSdsPixel::GetCharge ( ) const
inline

Definition at line 41 of file PndSdsPixel.h.

41 { return fCharge; };

◆ GetCol()

Int_t PndSdsPixel::GetCol ( ) const
inline

Definition at line 39 of file PndSdsPixel.h.

39 { return fCol; };

◆ GetFE()

Int_t PndSdsPixel::GetFE ( ) const
inline

Definition at line 43 of file PndSdsPixel.h.

43 { return fFe; };

◆ GetFirstMCIndex()

int PndSdsPixel::GetFirstMCIndex ( )
inline

Definition at line 45 of file PndSdsPixel.h.

46  {
47  if (fMCIndex.size() > 0)
48  return fMCIndex[0];
49  return -2;
50  };

◆ GetMCIndex()

std::vector<int> PndSdsPixel::GetMCIndex ( )
inline

Definition at line 44 of file PndSdsPixel.h.

44 { return fMCIndex; };

◆ GetRow()

Int_t PndSdsPixel::GetRow ( ) const
inline

Definition at line 40 of file PndSdsPixel.h.

40 { return fRow; };

◆ GetSensorID()

Int_t PndSdsPixel::GetSensorID ( ) const
inline

Definition at line 42 of file PndSdsPixel.h.

42 { return fSensorID; };

◆ SetAddNoise()

void PndSdsPixel::SetAddNoise ( Double_t  addnoise)
inline

Definition at line 37 of file PndSdsPixel.h.

37 { fAddNoise = addnoise; };

◆ SetCharge()

void PndSdsPixel::SetCharge ( Double_t  charge)
inline

Definition at line 34 of file PndSdsPixel.h.

34 { fCharge = charge; };

◆ SetCol()

void PndSdsPixel::SetCol ( Int_t  col)
inline

Definition at line 32 of file PndSdsPixel.h.

32 { fCol = col; };

◆ SetFE()

void PndSdsPixel::SetFE ( Int_t  fe)
inline

Definition at line 36 of file PndSdsPixel.h.

36 { fFe = fe; };

◆ SetRow()

void PndSdsPixel::SetRow ( Int_t  row)
inline

Definition at line 33 of file PndSdsPixel.h.

33 { fRow = row; };

◆ SetSensorID()

void PndSdsPixel::SetSensorID ( Int_t  sensorID)
inline

Definition at line 35 of file PndSdsPixel.h.

35 { fSensorID = sensorID; };

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndSdsPixel  pixel 
)
friend

Definition at line 56 of file PndSdsPixel.h.

57  {
58  out << "Detector: " << pixel.GetSensorID() << " FE: " << pixel.GetFE() << " Pixel (C/R): " << pixel.GetCol() << " " << pixel.GetRow() << " Charge: " << pixel.GetCharge()
59  << " from MCHit: " << pixel.GetFirstMCIndex();
60  return out;
61  };
Double_t GetCharge() const
Definition: PndSdsPixel.h:41
Int_t GetRow() const
Definition: PndSdsPixel.h:40
int GetFirstMCIndex()
Definition: PndSdsPixel.h:45
Int_t GetFE() const
Definition: PndSdsPixel.h:43
Int_t GetCol() const
Definition: PndSdsPixel.h:39
Int_t GetSensorID() const
Definition: PndSdsPixel.h:42

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