13 #ifndef PndSdsPixel_HH 14 #define PndSdsPixel_HH 23 PndSdsPixel() : fFe(-1), fCol(-1), fRow(-1), fCharge(-1.0), fSensorID(-1), fMCIndex(), fAddNoise(0.){};
25 PndSdsPixel(Int_t sensorID, Int_t fe, Int_t col, Int_t row, Double_t charge,
int index = -1)
26 : fFe(fe), fCol(col), fRow(row), fCharge(charge), fSensorID(sensorID), fMCIndex(), fAddNoise(0.)
29 fMCIndex.push_back(index);
32 void SetCol(Int_t col) { fCol = col; };
33 void SetRow(Int_t row) { fRow = row; };
34 void SetCharge(Double_t charge) { fCharge = charge; };
36 void SetFE(Int_t fe) { fFe = fe; };
37 void SetAddNoise(Double_t addnoise) { fAddNoise = addnoise; };
39 Int_t
GetCol()
const {
return fCol; };
40 Int_t
GetRow()
const {
return fRow; };
43 Int_t
GetFE()
const {
return fFe; };
47 if (fMCIndex.size() > 0)
53 void AddCharge(Double_t charge) { fCharge += charge; };
69 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