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 9 of file PndSdsPixel.h.

Constructor & Destructor Documentation

◆ PndSdsPixel() [1/2]

PndSdsPixel::PndSdsPixel ( )
inline

Definition at line 11 of file PndSdsPixel.h.

11 : 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 13 of file PndSdsPixel.h.

14  : fFe(fe), fCol(col), fRow(row), fCharge(charge), fSensorID(sensorID), fMCIndex(), fAddNoise(0.)
15  {
16  if (index >= 0)
17  fMCIndex.push_back(index);
18  };

Member Function Documentation

◆ AddCharge()

void PndSdsPixel::AddCharge ( Double_t  charge)
inline

Definition at line 41 of file PndSdsPixel.h.

41 { fCharge += charge; };

◆ AddMCIndex()

void PndSdsPixel::AddMCIndex ( int  i)
inline

Definition at line 42 of file PndSdsPixel.h.

42 { fMCIndex.push_back(i); };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetAddNoise()

Double_t PndSdsPixel::GetAddNoise ( ) const
inline

Definition at line 39 of file PndSdsPixel.h.

39 { return fAddNoise; };

◆ GetCharge()

Double_t PndSdsPixel::GetCharge ( ) const
inline

Definition at line 29 of file PndSdsPixel.h.

29 { return fCharge; };

◆ GetCol()

Int_t PndSdsPixel::GetCol ( ) const
inline

Definition at line 27 of file PndSdsPixel.h.

27 { return fCol; };

◆ GetFE()

Int_t PndSdsPixel::GetFE ( ) const
inline

Definition at line 31 of file PndSdsPixel.h.

31 { return fFe; };

◆ GetFirstMCIndex()

int PndSdsPixel::GetFirstMCIndex ( )
inline

Definition at line 33 of file PndSdsPixel.h.

34  {
35  if (fMCIndex.size() > 0)
36  return fMCIndex[0];
37  return -2;
38  };

◆ GetMCIndex()

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

Definition at line 32 of file PndSdsPixel.h.

32 { return fMCIndex; };

◆ GetRow()

Int_t PndSdsPixel::GetRow ( ) const
inline

Definition at line 28 of file PndSdsPixel.h.

28 { return fRow; };

◆ GetSensorID()

Int_t PndSdsPixel::GetSensorID ( ) const
inline

Definition at line 30 of file PndSdsPixel.h.

30 { return fSensorID; };

◆ SetAddNoise()

void PndSdsPixel::SetAddNoise ( Double_t  addnoise)
inline

Definition at line 25 of file PndSdsPixel.h.

25 { fAddNoise = addnoise; };

◆ SetCharge()

void PndSdsPixel::SetCharge ( Double_t  charge)
inline

Definition at line 22 of file PndSdsPixel.h.

22 { fCharge = charge; };

◆ SetCol()

void PndSdsPixel::SetCol ( Int_t  col)
inline

Definition at line 20 of file PndSdsPixel.h.

20 { fCol = col; };

◆ SetFE()

void PndSdsPixel::SetFE ( Int_t  fe)
inline

Definition at line 24 of file PndSdsPixel.h.

24 { fFe = fe; };

◆ SetRow()

void PndSdsPixel::SetRow ( Int_t  row)
inline

Definition at line 21 of file PndSdsPixel.h.

21 { fRow = row; };

◆ SetSensorID()

void PndSdsPixel::SetSensorID ( Int_t  sensorID)
inline

Definition at line 23 of file PndSdsPixel.h.

23 { fSensorID = sensorID; };

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 44 of file PndSdsPixel.h.

45  {
46  out << "Detector: " << pixel.GetSensorID() << " FE: " << pixel.GetFE() << " Pixel (C/R): " << pixel.GetCol() << " " << pixel.GetRow() << " Charge: " << pixel.GetCharge()
47  << " from MCHit: " << pixel.GetFirstMCIndex();
48  return out;
49  };
Double_t GetCharge() const
Definition: PndSdsPixel.h:29
Int_t GetRow() const
Definition: PndSdsPixel.h:28
int GetFirstMCIndex()
Definition: PndSdsPixel.h:33
Int_t GetFE() const
Definition: PndSdsPixel.h:31
Int_t GetCol() const
Definition: PndSdsPixel.h:27
Int_t GetSensorID() const
Definition: PndSdsPixel.h:30

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