#ifndef MvdPixel_HH #define MvdPixel_HH #include #include class MvdPixel { public : MvdPixel(){ _col = -1; _row = -1; _charge = -1.0; _fe = -1; }; MvdPixel(std::string detName, int fe, int col, int row, double charge){ _detName = detName; _fe = fe; _col = col; _row = row; _charge = charge; }; void SetCol(int col) {_col = col;}; void SetRow(int row) {_row = row;}; void SetCharge(double charge) {_charge = charge;}; void SetDetName(std::string detName) {_detName = detName;}; void SetFE (int fe) {_fe = fe;}; int GetCol() {return _col;}; int GetRow() {return _row;}; double GetCharge() {return _charge;}; std::string GetDetName() {return _detName;}; int GetFE() {return _fe;}; friend std::ostream& operator<< (std::ostream& out, MvdPixel pixel) { out << "Detector: " << pixel.GetDetName() << " FE: " << pixel.GetFE() << " Pixel (C/R): " << pixel.GetCol() << " " << pixel.GetRow() << " Charge: " << pixel.GetCharge(); return out; }; private : int _fe; int _col; int _row; double _charge; std::string _detName; }; #endif