1 #ifndef PNDSDSCALCPIXEL_H 2 #define PNDSDSCALCPIXEL_H 5 #include "FairGeoVector.h" 33 PndSdsCalcPixel(Double_t w, Double_t l, Double_t threshold = 0, Double_t noise = 0);
36 std::vector<PndSdsPixel>
GetPixels(Double_t inx, Double_t iny, Double_t outx, Double_t outy, Double_t energy);
38 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,
39 std::vector<Double_t> &charges);
44 std::vector<PndSdsPixel> fPixels;
46 Double_t fPixelLength;
52 typedef enum { kQuadUNDEF, kUR, kUL, kDL, kDR } EQuadrantType;
53 typedef enum { kPixelUNDEF, kU, kD, kL, kR } ENextPixelType;
56 ENextPixelType fNextPixel;
69 void ApplyConMatrix();
71 void CalcCperL(Double_t Energy);
72 void CalcStartPixel();
76 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.