|
qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
|
Renders a digitizer's analog/digital/thresholded views as ROOT TH2D histograms (libqupidVis). More...
#include </home/runner/work/qupid/qupid/vis/include/QPGraphFactory.hpp>
Public Member Functions | |
| QPGraphFactory (QPDigitizerBase *digitizer, std::string name) | |
| TH2D * | AnalogSignal (int ndiv=100) |
| ndiv×ndiv sampling of GetAnalogSignal over the matrix. | |
| TH2D * | DigitalSignal () |
| One bin per pixel, filled with the pixel's integrated digital signal (electrons). | |
| TH2D * | DigitizedSignal (double threshold=0.1) |
Binary fired-pixel map: 1 where the digital signal exceeds threshold, 0 elsewhere. | |
| void | DrawDigitalSignalText (TH2D *h=nullptr) |
| Draws each pixel's digital value as a TText on the current pad. | |
| void | DrawPixelLinse (TH2D *h=nullptr) |
| Not implemented; the body is empty. | |
| QPDigitizerBase * | GetDigitizer () const |
Renders a digitizer's analog/digital/thresholded views as ROOT TH2D histograms (libqupidVis).
Friend of the digitizer classes. Every histogram is heap-allocated and owned by the caller (subject to the usual ROOT directory ownership rules).
Definition at line 17 of file QPGraphFactory.hpp.
| QPGraphFactory::QPGraphFactory | ( | QPDigitizerBase * | digitizer, |
| std::string | name = "fac1" |
||
| ) |
| digitizer | digitizer to render; not owned |
| name | tag used in the histogram names (hfact_<name>_an / _dl / _dd) |
Definition at line 8 of file QPGraphFactory.cpp.
| TH2D * QPGraphFactory::AnalogSignal | ( | int | ndiv = 100 | ) |
ndiv×ndiv sampling of GetAnalogSignal over the matrix.
| ndiv | bins per axis |
Definition at line 12 of file QPGraphFactory.cpp.
References QPDigitizerBase::GetAnalogSignal(), GetDigitizer(), and QPDigitizerBase::GetSizeY().
| TH2D * QPGraphFactory::DigitalSignal | ( | ) |
One bin per pixel, filled with the pixel's integrated digital signal (electrons).
Definition at line 31 of file QPGraphFactory.cpp.
References QPPixelBase::GetDigitalSignal(), GetDigitizer(), QPDigitizerBase::GetNPixelX(), QPDigitizerBase::GetNPixelY(), QPDigitizerBase::GetPixel(), and QPDigitizerBase::GetSizeY().
| TH2D * QPGraphFactory::DigitizedSignal | ( | double | threshold = 0.1 | ) |
Binary fired-pixel map: 1 where the digital signal exceeds threshold, 0 elsewhere.
| threshold | firing threshold, electrons |
Definition at line 48 of file QPGraphFactory.cpp.
References QPPixelBase::GetDigitalSignal(), GetDigitizer(), QPDigitizerBase::GetNPixelX(), QPDigitizerBase::GetNPixelY(), QPDigitizerBase::GetPixel(), and QPDigitizerBase::GetSizeY().
| void QPGraphFactory::DrawDigitalSignalText | ( | TH2D * | h = nullptr | ) |
Draws each pixel's digital value as a TText on the current pad.
The text objects are left to the pad.
| h | histogram whose bin centers position the labels; when nullptr the positions are computed from the digitizer geometry |
Definition at line 69 of file QPGraphFactory.cpp.
References QPPixelBase::GetDigitalSignal(), GetDigitizer(), QPDigitizerBase::GetNPixelX(), QPDigitizerBase::GetPixel(), QPDigitizerBase::GetSizeX(), and QPDigitizerBase::GetSizeY().
| void QPGraphFactory::DrawPixelLinse | ( | TH2D * | h = nullptr | ) |
Not implemented; the body is empty.
| h | unused |
Definition at line 107 of file QPGraphFactory.cpp.
|
inline |
Definition at line 49 of file QPGraphFactory.hpp.
Referenced by AnalogSignal(), DigitalSignal(), DigitizedSignal(), and DrawDigitalSignalText().