qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
Loading...
Searching...
No Matches
QPPixel Class Reference

Rectangular pixel cell $ [x_0, x_1] \times [y_0, y_1] $ (µm) with grid indices (i, j). More...

#include <QPPixel.hpp>

Inheritance diagram for QPPixel:
QPPixelBase

Public Member Functions

 QPPixel (const double &x0, const double &y0, const double &x1, const double &y1, QPDigitizerBase *digitizer=nullptr, const int &i=0, const int &j=0)
 
virtual ~QPPixel ()
 Trivial; the pixel owns nothing.
 
virtual void Delete ()
 Cleanup hook; currently a no-op.
 
virtual double GetDigitalSignalOne (QPSignalBase *signal)
 Charge collected from one signal: its Integral over this cell.
 
int GetPixX () const
 
int GetPixY () const
 
int GetPixelSizeX () const
 Cell extent along x.
 
int GetPixelSizeY () const
 Cell extent along y.
 
- Public Member Functions inherited from QPPixelBase
virtual ~QPPixelBase ()
 Trivial; the digitizer back-pointer is not owned.
 
double GetDigitalSignal ()
 Total collected charge of the pixel: GetDigitalSignalOne summed over every signal injected into the digitizer.
 
QPDigitizerBase * GetDigitizer () const
 

Additional Inherited Members

- Protected Member Functions inherited from QPPixelBase
 QPPixelBase (QPDigitizerBase *digitizer)
 

Detailed Description

Rectangular pixel cell $ [x_0, x_1] \times [y_0, y_1] $ (µm) with grid indices (i, j).

Definition at line 11 of file QPPixel.hpp.

Constructor & Destructor Documentation

◆ QPPixel()

QPPixel::QPPixel ( const double &  x0,
const double &  y0,
const double &  x1,
const double &  y1,
QPDigitizerBase *  digitizer = nullptr,
const int &  i = 0,
const int &  j = 0 
)
Parameters
x0lower cell corner x, µm
y0lower cell corner y, µm
x1upper cell corner x, µm
y1upper cell corner y, µm
digitizerdigitizer this pixel belongs to; not owned
ipixel index along x
jpixel index along y

Definition at line 5 of file QPPixel.cpp.

◆ ~QPPixel()

QPPixel::~QPPixel ( )
virtual

Trivial; the pixel owns nothing.

Definition at line 14 of file QPPixel.cpp.

Member Function Documentation

◆ Delete()

void QPPixel::Delete ( )
virtual

Cleanup hook; currently a no-op.

Reimplemented from QPPixelBase.

Definition at line 16 of file QPPixel.cpp.

◆ GetDigitalSignalOne()

double QPPixel::GetDigitalSignalOne ( QPSignalBase *  signal)
virtual

Charge collected from one signal: its Integral over this cell.

Parameters
signalsignal to integrate; not owned
Returns
integrated charge, electrons

Reimplemented from QPPixelBase.

Definition at line 18 of file QPPixel.cpp.

References QPSignalBase::Integral().

◆ GetPixX()

int QPPixel::GetPixX ( ) const
inline
Returns
pixel index along x

Definition at line 34 of file QPPixel.hpp.

◆ GetPixY()

int QPPixel::GetPixY ( ) const
inline
Returns
pixel index along y

Definition at line 36 of file QPPixel.hpp.

◆ GetPixelSizeX()

int QPPixel::GetPixelSizeX ( ) const
inline

Cell extent along x.

Warning
Declared int: the double extent $ x_1 - x_0 $ is truncated (the ALPIDE-like pitch 29.24 µm comes back as 29).
Returns
truncated cell width, µm

Definition at line 41 of file QPPixel.hpp.

◆ GetPixelSizeY()

int QPPixel::GetPixelSizeY ( ) const
inline

Cell extent along y.

Warning
Same truncation as GetPixelSizeX (26.88 µm comes back as 26).
Returns
truncated cell height, µm

Definition at line 46 of file QPPixel.hpp.


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