11 PndSdsPixel() : fFe(-1), fCol(-1), fRow(-1), fCharge(-1.0), fSensorID(-1), fMCIndex(), fAddNoise(0.){};
13 PndSdsPixel(Int_t sensorID, Int_t fe, Int_t col, Int_t row, Double_t charge,
int index = -1)
14 : fFe(fe), fCol(col), fRow(row), fCharge(charge), fSensorID(sensorID), fMCIndex(), fAddNoise(0.)
17 fMCIndex.push_back(index);
20 void SetCol(Int_t col) { fCol = col; };
21 void SetRow(Int_t row) { fRow = row; };
22 void SetCharge(Double_t charge) { fCharge = charge; };
24 void SetFE(Int_t fe) { fFe = fe; };
25 void SetAddNoise(Double_t addnoise) { fAddNoise = addnoise; };
27 Int_t
GetCol()
const {
return fCol; };
28 Int_t
GetRow()
const {
return fRow; };
31 Int_t
GetFE()
const {
return fFe; };
35 if (fMCIndex.size() > 0)
41 void AddCharge(Double_t charge) { fCharge += charge; };
57 std::vector<int> fMCIndex;
friend std::ostream & operator<<(std::ostream &out, PndSdsPixel pixel)
std::vector< int > GetMCIndex()
Double_t GetCharge() const
void SetCharge(Double_t charge)
void SetSensorID(Int_t sensorID)
void SetAddNoise(Double_t addnoise)
PndSdsPixel(Int_t sensorID, Int_t fe, Int_t col, Int_t row, Double_t charge, int index=-1)
void AddCharge(Double_t charge)
Int_t GetSensorID() const
Double_t GetAddNoise() const