13 #ifndef PNDSDSCALCPIXEL_H 14 #define PNDSDSCALCPIXEL_H 17 #include "FairGeoVector.h" 45 PndSdsCalcPixel(Double_t w, Double_t l, Double_t threshold = 0, Double_t noise = 0);
48 std::vector<PndSdsPixel>
GetPixels(Double_t inx, Double_t iny, Double_t outx, Double_t outy, Double_t energy);
50 Int_t
GetPixelsAlternative(Double_t inx, Double_t iny, Double_t outx, Double_t outy, Double_t energy, std::vector<Int_t> &cols, std::vector<Int_t> &rows,
51 std::vector<Double_t> &charges);
56 std::vector<PndSdsPixel> fPixels;
58 Double_t fPixelLength;
64 typedef enum { kQuadUNDEF, kUR, kUL, kDL, kDR } EQuadrantType;
65 typedef enum { kPixelUNDEF, kU, kD, kL, kR } ENextPixelType;
68 ENextPixelType fNextPixel;
81 void ApplyConMatrix();
83 void CalcCperL(Double_t Energy);
84 void CalcStartPixel();
88 Double_t SmearCharge(Double_t charge);
std::ostream & operator<<(std::ostream &out)
std::vector< PndSdsPixel > GetPixels(Double_t inx, Double_t iny, Double_t outx, Double_t outy, Double_t energy)
Main function to calculate the vector<PndSdsPixel> of fired pixel.
void SetVerboseLevel(Int_t level)
Calculates the pixels (digis) fired from a particle hitting the sensor.
Int_t GetPixelsAlternative(Double_t inx, Double_t iny, Double_t outx, Double_t outy, Double_t energy, std::vector< Int_t > &cols, std::vector< Int_t > &rows, std::vector< Double_t > &charges)
PndSdsCalcPixel()
Default constructor.