PandaRoot
PndSdsCalcPixel Class Reference

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< PndSdsPixelGetPixels (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)
 

Detailed Description

Calculates the pixels (digis) fired from a particle hitting the sensor.

Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de This class gets as an input the point where the particle enters the sensor, where it leaves the sensor and the deposited energy. It calculates the track of the particle between these two points and determines the pixels lying on the track. The total energy of the particle is then distributed acording to the pathlength to the pixels. The output is a vector<PndSdsPixel> of the fired sensor pixels with the energy deposited in the pixels. If a noise value is given a gausian distributed energy with a sigma of (noise) is added (or substracted) to the energy deposited in one pixel. If a threshold value is given all pixels with energies below threshold are ignored

Definition at line 23 of file PndSdsCalcPixel.h.

Constructor & Destructor Documentation

◆ PndSdsCalcPixel() [1/2]

PndSdsCalcPixel::PndSdsCalcPixel ( )

Default constructor.

◆ PndSdsCalcPixel() [2/2]

PndSdsCalcPixel::PndSdsCalcPixel ( Double_t  w,
Double_t  l,
Double_t  threshold = 0,
Double_t  noise = 0 
)

Main constructor

Parameters
wwidth of sensor pixel [cm]
llength of sensor pixel [cm]
thresholddiscriminator threshold of pixel [e]
noisetotal noise of pixel [e]

Member Function Documentation

◆ GetPixels()

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.

◆ 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 
)

◆ operator<<()

std::ostream& PndSdsCalcPixel::operator<< ( std::ostream &  out)

Referenced by SetVerboseLevel().

◆ SetVerboseLevel()

void PndSdsCalcPixel::SetVerboseLevel ( Int_t  level)
inline

Definition at line 40 of file PndSdsCalcPixel.h.

References operator<<().

40 { fVerboseLevel = level; };

The documentation for this class was generated from the following file: