FairRoot/PandaRoot
|
Calculates the pixels (digis) fired from a particle hitting the sensor. More...
#include <PndSdsCalcPixel.h>
Public Member Functions | |
PndSdsCalcPixel () | |
Default constructor. More... | |
PndSdsCalcPixel (Double_t w, Double_t l, Double_t threshold=0, Double_t noise=0) | |
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. More... | |
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) |
std::ostream & | operator<< (std::ostream &out) |
Private Types | |
enum | EQuadrantType { kQuadUNDEF, kUR, kUL, kDL, kDR } |
enum | ENextPixelType { kPixelUNDEF, kU, kD, kL, kR } |
Private Member Functions | |
void | CalcConMatrix () |
void | ApplyConMatrix () |
void | CalcQuadrant () |
void | CalcCperL (Double_t Energy) |
void | CalcStartPixel () |
void | CalcPixel () |
void | ConvertPixels () |
Double_t | SmearCharge (Double_t charge) |
Private Attributes | |
std::vector< PndSdsPixel > | fPixels |
Double_t | fPixelWidth |
Double_t | fPixelLength |
Double_t | fThreshold |
Double_t | fNoise |
Double_t | fEnergy |
Int_t | fVerboseLevel |
EQuadrantType | fQuad |
ENextPixelType | fNextPixel |
FairGeoVector | fIn |
FairGeoVector | fOut |
FairGeoVector | fDir |
FairGeoVector | fPos |
FairGeoVector | fCon |
PndSdsPixel | fActivePixel |
Double_t | fCperL |
bool | fStop |
Calculates the pixels (digis) fired from a particle hitting the sensor.
Definition at line 23 of file PndSdsCalcPixel.h.
|
private |
Enumerator | |
---|---|
kPixelUNDEF | |
kU | |
kD | |
kL | |
kR |
Definition at line 56 of file PndSdsCalcPixel.h.
|
private |
Enumerator | |
---|---|
kQuadUNDEF | |
kUR | |
kUL | |
kDL | |
kDR |
Definition at line 55 of file PndSdsCalcPixel.h.
PndSdsCalcPixel::PndSdsCalcPixel | ( | ) |
Default constructor.
Definition at line 6 of file PndSdsCalcPixel.cxx.
PndSdsCalcPixel::PndSdsCalcPixel | ( | Double_t | w, |
Double_t | l, | ||
Double_t | threshold = 0 , |
||
Double_t | noise = 0 |
||
) |
Main constructor
w | width of sensor pixel [cm] |
l | length of sensor pixel [cm] |
threshold | discriminator threshold of pixel [e] |
noise | total noise of pixel [e] |
Definition at line 27 of file PndSdsCalcPixel.cxx.
|
private |
|
private |
Definition at line 111 of file PndSdsCalcPixel.cxx.
|
private |
Definition at line 154 of file PndSdsCalcPixel.cxx.
References Double_t, fCperL, and fDir.
Referenced by GetPixels().
|
private |
Definition at line 168 of file PndSdsCalcPixel.cxx.
References Double_t, fabs(), fActivePixel, fCperL, fDir, fNextPixel, fOut, fPixelLength, fPixels, fPixelWidth, fPos, fQuad, fStop, fThreshold, fVerboseLevel, PndSdsPixel::GetCol(), PndSdsPixel::GetRow(), kD, kDL, kDR, kL, kQuadUNDEF, kR, kU, kUL, kUR, printf(), PndSdsPixel::SetCharge(), and SmearCharge().
Referenced by GetPixels().
|
private |
Definition at line 137 of file PndSdsCalcPixel.cxx.
References fDir, fQuad, fVerboseLevel, kDL, kDR, kUL, and kUR.
Referenced by GetPixels().
|
private |
Definition at line 160 of file PndSdsCalcPixel.cxx.
References col, fActivePixel, fIn, fPixelLength, fPixelWidth, row, PndSdsPixel::SetCol(), and PndSdsPixel::SetRow().
Referenced by GetPixels().
|
private |
std::vector< PndSdsPixel > PndSdsCalcPixel::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.
Definition at line 66 of file PndSdsCalcPixel.cxx.
References CalcCperL(), CalcPixel(), CalcQuadrant(), CalcStartPixel(), col, fActivePixel, fDir, fIn, fNextPixel, fOut, fPixels, fPos, fStop, fVerboseLevel, PndSdsPixel::GetCol(), PndSdsPixel::GetRow(), kD, kL, kPixelUNDEF, kR, kU, row, PndSdsPixel::SetCharge(), PndSdsPixel::SetCol(), and PndSdsPixel::SetRow().
Referenced by PndSdsHybridHitProducer::Exec(), and GetPixelsAlternative().
Int_t PndSdsCalcPixel::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 | ||
) |
Definition at line 47 of file PndSdsCalcPixel.cxx.
References fVerboseLevel, GetPixels(), and i.
std::ostream & PndSdsCalcPixel::operator<< | ( | std::ostream & | out | ) |
|
inline |
Definition at line 282 of file PndSdsCalcPixel.cxx.
References Double_t, fNoise, and fVerboseLevel.
Referenced by CalcPixel().
|
private |
Definition at line 68 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), CalcStartPixel(), and GetPixels().
|
private |
Definition at line 66 of file PndSdsCalcPixel.h.
Referenced by ApplyConMatrix(), CalcConMatrix(), and ConvertPixels().
|
private |
Definition at line 69 of file PndSdsCalcPixel.h.
Referenced by CalcCperL(), and CalcPixel().
|
private |
Definition at line 63 of file PndSdsCalcPixel.h.
Referenced by ApplyConMatrix(), CalcCperL(), CalcPixel(), CalcQuadrant(), and GetPixels().
|
private |
Definition at line 52 of file PndSdsCalcPixel.h.
|
private |
Definition at line 61 of file PndSdsCalcPixel.h.
Referenced by ApplyConMatrix(), CalcConMatrix(), CalcStartPixel(), and GetPixels().
|
private |
Definition at line 59 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), and GetPixels().
|
private |
Definition at line 51 of file PndSdsCalcPixel.h.
Referenced by SmearCharge().
|
private |
Definition at line 62 of file PndSdsCalcPixel.h.
Referenced by ApplyConMatrix(), CalcPixel(), and GetPixels().
|
private |
Definition at line 49 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), CalcStartPixel(), and operator<<().
|
private |
Definition at line 47 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), ConvertPixels(), and GetPixels().
|
private |
Definition at line 48 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), CalcStartPixel(), and operator<<().
|
private |
Definition at line 64 of file PndSdsCalcPixel.h.
Referenced by ApplyConMatrix(), CalcPixel(), and GetPixels().
|
private |
Definition at line 58 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), and CalcQuadrant().
|
private |
Definition at line 70 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), and GetPixels().
|
private |
Definition at line 50 of file PndSdsCalcPixel.h.
Referenced by CalcPixel().
|
private |
Definition at line 53 of file PndSdsCalcPixel.h.
Referenced by CalcPixel(), CalcQuadrant(), GetPixels(), GetPixelsAlternative(), SetVerboseLevel(), and SmearCharge().