FairRoot/PandaRoot
PndSdsCalcPixelDif.h
Go to the documentation of this file.
1 #ifndef PNDSDSCALCPIXELDIF_H
2 #define PNDSDSCALCPIXELDIF_H
3 
4 #include "PndSdsPixel.h"
5 #include "FairGeoVector.h"
6 #include <iostream>
7 #include <vector>
8 //#include <XYVector.h>
9 //#include "CLHEP/Vector/TwoVector.h"
11 
25 class PndSdsPixelDigiPar;
26 
28  {
29  public:
32 
39  PndSdsCalcPixelDif(Double_t w, Double_t l, Double_t qspread = 0, Double_t threshold = 0, Double_t noise = 0,Double_t nrows=10, Double_t ncols=10);
40  PndSdsCalcPixelDif(const PndSdsPixelDigiPar& digi_par);
41 
43  std::vector<PndSdsPixel> GetPixels (Double_t inx, Double_t iny,
44  Double_t outx, Double_t outy,
46 
47  Int_t GetPixelsAlternative(Double_t inx, Double_t iny,
48  Double_t outx, Double_t outy,
49  Double_t energy, std::vector<Int_t>& cols, std::vector<Int_t>& rows,
50  std::vector<Double_t>& charges);
51 
52  void SetVerboseLevel(Int_t level){ fVerboseLevel = level;};
54 
55  private:
56  Double_t ChargeFromEloss(Double_t eloss) const {return eloss/(3.61e-9);}
57  void InjectPixelCharge(Int_t col, Int_t row, Double_t charge);
58 
59  std::vector<PndSdsPixel> fPixels;
61 
70 
72 
73  };
74 
75 #endif
int row
Definition: anaLmdDigi.C:67
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 of fired pixel.
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)
void SetVerboseLevel(Int_t level)
int col
Definition: anaLmdDigi.C:67
double eloss
Definition: anaLmdSim.C:34
Double_t ChargeFromEloss(Double_t eloss) const
Double_t
int cols[10]
Definition: evaltrig.C:69
TFile * out
Definition: reco_muo.C:20
double threshold
std::ostream & operator<<(std::ostream &out)
PndSdsCalcPixelDif()
Default constructor.
double noise
void InjectPixelCharge(Int_t col, Int_t row, Double_t charge)
std::vector< PndSdsPixel > fPixels
Double_t energy
Definition: plot_dirc.C:15
Digitization Parameter Class for SDS-Pixel part.