Fluorescence Detector Pixel Simulated Data. More...
#include <PixelSimData.h>
Public Member Functions | |
void | ClearPhotonTraces () |
Clear all light components' photon traces. More... | |
void | ClearPhotonWeightSquareTraces () |
Clear all light components' photon-weight-square-traces. More... | |
int | GetFltDuration () const |
int | GetFltTime () const |
int | GetMaxBoxcarsum () const |
double | GetMean () const |
Get the ADC baseline. More... | |
double | GetMeanBgPhotonFlux () const |
Get mean bg photon flux. More... | |
double | GetMeanBoxcarsum () const |
int | GetNumSamples () const |
Get the no. of samples for running sums. More... | |
utl::TraceD & | GetPhotonTrace (const FdConstants::LightSource source=FdConstants::eTotal) |
Simulated Photon Trace. More... | |
const utl::TraceD & | GetPhotonTrace (const FdConstants::LightSource source=FdConstants::eTotal) const |
utl::TraceD & | GetPhotonWeightSquareTrace (const FdConstants::LightSource source=FdConstants::eTotal) |
Trace of the sums of squares of simulated photon weights. More... | |
const utl::TraceD & | GetPhotonWeightSquareTrace (const FdConstants::LightSource source=FdConstants::eTotal) const |
double | GetRMS () const |
Get the ADC variance. More... | |
double | GetRmsBoxcarsum () const |
int | GetThreshold () const |
Get the simulated trigger threshold of the pixel. More... | |
bool | HasPhotonTrace (const FdConstants::LightSource source) const |
Check that trace for source /par source is present. More... | |
bool | HasPhotonWeightSquareTrace (const FdConstants::LightSource source) const |
Check that trace of sums of squares of weights of simulated photons for source /par source is present. More... | |
void | MakePhotonTrace (unsigned int size, double binning, const FdConstants::LightSource source=FdConstants::eTotal) |
void | MakePhotonTrace (const utl::TraceD &t, const FdConstants::LightSource source=FdConstants::eTotal) |
void | MakePhotonWeightSquareTrace (unsigned int size, double binning, const FdConstants::LightSource source=FdConstants::eTotal) |
void | MakePhotonWeightSquareTrace (const utl::TraceD &t, const FdConstants::LightSource source=FdConstants::eTotal) |
PhotonTraceIterator | PhotonTracesBegin () |
First std::pair<int source, TraceD * trace> More... | |
ConstPhotonTraceIterator | PhotonTracesBegin () const |
PhotonTraceIterator | PhotonTracesEnd () |
Last std::pair<int source, TraceD * trace> More... | |
ConstPhotonTraceIterator | PhotonTracesEnd () const |
PhotonWeightSquareTraceIterator | PhotonWeightSquareTracesBegin () |
First std::pair<int source, TraceD * trace> More... | |
ConstPhotonWeightSquareTraceIterator | PhotonWeightSquareTracesBegin () const |
PhotonWeightSquareTraceIterator | PhotonWeightSquareTracesEnd () |
Last std::pair<int source, TraceD * trace> More... | |
ConstPhotonWeightSquareTraceIterator | PhotonWeightSquareTracesEnd () const |
void | SetFltDuration (int v) |
void | SetFltTime (int v) |
void | SetMaxBoxcarsum (int v) |
void | SetMean (const double mean) |
Set the ADC baseline. More... | |
void | SetMeanBgPhotonFlux (const double mean) |
Set mean bg photon flux. More... | |
void | SetMeanBoxcarsum (double v) |
void | SetNumSamples (const int nSamp) |
Set the no. of samples for running sums. More... | |
void | SetRMS (const double rms) |
Set the ADC variance. More... | |
void | SetRmsBoxcarsum (double v) |
void | SetThreshold (const int thr) |
Set the simulated trigger threshold of the pixel. More... | |
Private Member Functions | |
PixelSimData () | |
~PixelSimData () | |
Private Attributes | |
int | fBoxcarsumMax |
double | fBoxcarsumMean |
double | fBoxcarsumRms |
int | fFltDuration |
int | fFltTime |
double | fMean |
double | fMeanBgPhotonFlux |
int | fNumSamples |
utl::InitializedShadowPtr < utl::MultiTraceD > | fPhotonTrace |
utl::InitializedShadowPtr < utl::MultiTraceD > | fPhotonWeightSquareTrace |
double | fRMS |
int | fThreshold |
Friends | |
class | Pixel |
class | utl::ShadowPtr< PixelSimData > |
Fluorescence Detector Pixel Simulated Data.
Definition at line 28 of file PixelSimData.h.
Definition at line 57 of file PixelSimData.h.
Definition at line 99 of file PixelSimData.h.
An iterator over the available Photon trace sources. Returns a pair<int,TraceD *> when dereferenced
Definition at line 56 of file PixelSimData.h.
An iterator over the available Photon weight square trace sources. Returns a pair<int,TraceD *> when dereferenced
Definition at line 98 of file PixelSimData.h.
|
private |
Definition at line 12 of file PixelSimData.cc.
|
private |
Definition at line 25 of file PixelSimData.cc.
|
inline |
Clear all light components' photon traces.
Definition at line 48 of file PixelSimData.h.
References fPhotonTrace.
|
inline |
Clear all light components' photon-weight-square-traces.
Definition at line 94 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
|
inline |
Definition at line 143 of file PixelSimData.h.
References fFltDuration.
Referenced by FdEventLoggerGS::FdEventLogger::Run().
|
inline |
Definition at line 142 of file PixelSimData.h.
References fFltTime.
Referenced by FdEventLoggerGS::FdEventLogger::Run().
|
inline |
Definition at line 139 of file PixelSimData.h.
References fBoxcarsumMax.
Referenced by FdEventLoggerGS::FdEventLogger::Run().
|
inline |
Get the ADC baseline.
Definition at line 122 of file PixelSimData.h.
References fMean.
Referenced by FdElectronicsSimulatorOG::FdElectronicsSimulator::ElecSim(), and FdTriggerSimulatorOG::FdTriggerSimulator::MakeMirrorEvent().
|
inline |
Get mean bg photon flux.
Definition at line 137 of file PixelSimData.h.
References fMeanBgPhotonFlux.
Referenced by FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), and ThresholdCalculatorKG::ThresholdCalculator::Run().
|
inline |
Definition at line 140 of file PixelSimData.h.
References fBoxcarsumMean.
Referenced by FdEventLoggerGS::FdEventLogger::Run().
|
inline |
Get the no. of samples for running sums.
Definition at line 117 of file PixelSimData.h.
References fNumSamples.
Referenced by FdTriggerSimulatorOG::FdTriggerSimulator::FLTSim().
|
inline |
Simulated Photon Trace.
By default , the trace corresponding to total signal is returned Use GetPhotonTrace(fevt::FdConstants::LightSource source) to get other sources , if added with MakePhotonTrace(source) /example GetPhotonTrace(fevt::FdConstants::eCerenkov)
Definition at line 37 of file PixelSimData.h.
References fPhotonTrace.
Referenced by FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculatePixelTraceSum(), DrumPhotonGeneratorOG::DrumPhotonGenerator::CalibrateTelescope(), testFEventImpl::checkPixelSimDataValues(), FdElectronicsSimulatorOG::FdElectronicsSimulator::ElecSim(), TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), FdTriggerSimulatorOG::FdTriggerSimulator::FLTSim(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), UserModule::PlotCamera(), UserModule::PlotLightOnCamera(), UserModule::PlotPhotonTraces(), TelescopeSimulatorKG::TelescopeSimulator::Run(), TelescopeSimulatorKG2::TelescopeSimulator::Run(), and testFEventImpl::setPixelSimDataValues().
|
inline |
Definition at line 39 of file PixelSimData.h.
References fPhotonTrace.
|
inline |
Trace of the sums of squares of simulated photon weights.
By default , the trace corresponding to total signal is returned Use GetPhotonWeightSquareTrace(fevt::FdConstants::LightSource source) to get other sources , if added with MakePhotonWeightSquareTrace(source) /example GetPhotonWeightSquareTrace(fevt::FdConstants::eCerenkov)
Definition at line 78 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
Referenced by FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculatePixelTraceSum(), TelescopeSimulatorKG::TelescopeSimulator::Run(), and TelescopeSimulatorKG2::TelescopeSimulator::Run().
|
inline |
Definition at line 80 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
|
inline |
Get the ADC variance.
Definition at line 127 of file PixelSimData.h.
References fRMS.
Referenced by FdTriggerSimulatorOG::FdTriggerSimulator::MakeMirrorEvent().
|
inline |
Definition at line 141 of file PixelSimData.h.
References fBoxcarsumRms.
Referenced by FdEventLoggerGS::FdEventLogger::Run().
|
inline |
Get the simulated trigger threshold of the pixel.
Definition at line 132 of file PixelSimData.h.
References fThreshold.
Referenced by testFEventImpl::checkPixelSimDataValues(), FdTriggerSimulatorOG::FdTriggerSimulator::FLTSim(), FdTriggerSimulatorOG::FdTriggerSimulator::MakeMirrorEvent(), and FdEventLoggerGS::FdEventLogger::Run().
|
inline |
Check that trace for source /par source is present.
Definition at line 51 of file PixelSimData.h.
References fPhotonTrace.
Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackground(), FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackgroundFromVariance(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculatePixelTraceSum(), testFEventImpl::checkPixelSimDataValues(), FdElectronicsSimulatorOG::FdElectronicsSimulator::ElecSim(), TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), FdTriggerSimulatorOG::FdTriggerSimulator::FLTSim(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), MakePhotonTrace(), UserModule::PlotCamera(), UserModule::PlotLightOnCamera(), UserModule::PlotPhotonTraces(), FdEventLoggerGS::FdEventLogger::Run(), TelescopeSimulatorKG::TelescopeSimulator::Run(), and TelescopeSimulatorKG2::TelescopeSimulator::Run().
|
inline |
Check that trace of sums of squares of weights of simulated photons for source /par source is present.
Definition at line 91 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
Referenced by MakePhotonWeightSquareTrace(), TelescopeSimulatorKG::TelescopeSimulator::Run(), and TelescopeSimulatorKG2::TelescopeSimulator::Run().
void PixelSimData::MakePhotonTrace | ( | unsigned int | size, |
double | binning, | ||
const FdConstants::LightSource | source = FdConstants::eTotal |
||
) |
Add a trace for source of type fevt::FdConstants::LightSource /example MakePhotonTrace(fevt::FdConstants::eDirect);
Definition at line 31 of file PixelSimData.cc.
References ERROR, fPhotonTrace, and HasPhotonTrace().
Referenced by TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), io::PixelSimData_ROOT::operator>>(), TelescopeSimulatorKG::TelescopeSimulator::Run(), TelescopeSimulatorKG2::TelescopeSimulator::Run(), and testFEventImpl::setPixelSimDataValues().
void PixelSimData::MakePhotonTrace | ( | const utl::TraceD & | t, |
const FdConstants::LightSource | source = FdConstants::eTotal |
||
) |
Definition at line 42 of file PixelSimData.cc.
References ERROR, fPhotonTrace, and HasPhotonTrace().
void PixelSimData::MakePhotonWeightSquareTrace | ( | unsigned int | size, |
double | binning, | ||
const FdConstants::LightSource | source = FdConstants::eTotal |
||
) |
Add a trace of sums of squares of simulated photon weights for source of Type fevt::FdConstants::LightSource /example AddSource(Telescope::eDirect);
Definition at line 54 of file PixelSimData.cc.
References ERROR, fPhotonWeightSquareTrace, and HasPhotonWeightSquareTrace().
Referenced by TelescopeSimulatorKG::TelescopeSimulator::Run(), and TelescopeSimulatorKG2::TelescopeSimulator::Run().
void PixelSimData::MakePhotonWeightSquareTrace | ( | const utl::TraceD & | t, |
const FdConstants::LightSource | source = FdConstants::eTotal |
||
) |
Definition at line 66 of file PixelSimData.cc.
References ERROR, fPhotonWeightSquareTrace, and HasPhotonWeightSquareTrace().
|
inline |
First std::pair<int source, TraceD * trace>
Definition at line 60 of file PixelSimData.h.
References fPhotonTrace.
Referenced by testFEventImpl::checkPixelSimDataValues(), and otoa::FD2ADST::FillRecPixel().
|
inline |
Definition at line 62 of file PixelSimData.h.
References fPhotonTrace.
|
inline |
Last std::pair<int source, TraceD * trace>
Definition at line 66 of file PixelSimData.h.
References fPhotonTrace.
Referenced by testFEventImpl::checkPixelSimDataValues(), and otoa::FD2ADST::FillRecPixel().
|
inline |
Definition at line 68 of file PixelSimData.h.
References fPhotonTrace.
|
inline |
First std::pair<int source, TraceD * trace>
Definition at line 102 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
|
inline |
Definition at line 104 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
|
inline |
Last std::pair<int source, TraceD * trace>
Definition at line 108 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
|
inline |
Definition at line 110 of file PixelSimData.h.
References fPhotonWeightSquareTrace.
|
inline |
Definition at line 149 of file PixelSimData.h.
References fFltDuration.
Referenced by io::PixelSimData_ROOT::operator>>(), and FdTriggerSimulatorOG::FdTriggerSimulator::T1Trigger().
|
inline |
Definition at line 148 of file PixelSimData.h.
References fFltTime.
Referenced by io::PixelSimData_ROOT::operator>>(), and FdTriggerSimulatorOG::FdTriggerSimulator::T1Trigger().
|
inline |
Definition at line 145 of file PixelSimData.h.
References fBoxcarsumMax.
Referenced by io::PixelSimData_ROOT::operator>>(), and FdTriggerSimulatorOG::FdTriggerSimulator::T1Trigger().
|
inline |
Set the ADC baseline.
Definition at line 120 of file PixelSimData.h.
References fMean.
Referenced by FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), and io::PixelSimData_ROOT::operator>>().
|
inline |
Set mean bg photon flux.
Definition at line 135 of file PixelSimData.h.
References fMeanBgPhotonFlux.
Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackground(), FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackgroundFromVariance(), io::PixelSimData_ROOT::operator>>(), and MeanNpeFillerKG::MeanNpeFiller::Run().
|
inline |
Definition at line 146 of file PixelSimData.h.
References fBoxcarsumMean.
Referenced by io::PixelSimData_ROOT::operator>>(), and FdTriggerSimulatorOG::FdTriggerSimulator::T1Trigger().
|
inline |
Set the no. of samples for running sums.
Definition at line 115 of file PixelSimData.h.
References fNumSamples.
Referenced by FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), and io::PixelSimData_ROOT::operator>>().
|
inline |
Set the ADC variance.
Definition at line 125 of file PixelSimData.h.
References fRMS.
Referenced by FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), and io::PixelSimData_ROOT::operator>>().
|
inline |
Definition at line 147 of file PixelSimData.h.
References fBoxcarsumRms.
Referenced by io::PixelSimData_ROOT::operator>>(), and FdTriggerSimulatorOG::FdTriggerSimulator::T1Trigger().
|
inline |
Set the simulated trigger threshold of the pixel.
Definition at line 130 of file PixelSimData.h.
References fThreshold.
Referenced by FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), io::PixelSimData_ROOT::operator>>(), and testFEventImpl::setPixelSimDataValues().
|
friend |
Definition at line 169 of file PixelSimData.h.
|
friend |
Definition at line 170 of file PixelSimData.h.
|
private |
Definition at line 163 of file PixelSimData.h.
Referenced by GetMaxBoxcarsum(), and SetMaxBoxcarsum().
|
private |
Definition at line 164 of file PixelSimData.h.
Referenced by GetMeanBoxcarsum(), and SetMeanBoxcarsum().
|
private |
Definition at line 165 of file PixelSimData.h.
Referenced by GetRmsBoxcarsum(), and SetRmsBoxcarsum().
|
private |
Definition at line 167 of file PixelSimData.h.
Referenced by GetFltDuration(), and SetFltDuration().
|
private |
Definition at line 166 of file PixelSimData.h.
Referenced by GetFltTime(), and SetFltTime().
|
private |
Definition at line 156 of file PixelSimData.h.
|
private |
Definition at line 159 of file PixelSimData.h.
Referenced by GetMeanBgPhotonFlux(), and SetMeanBgPhotonFlux().
|
private |
Definition at line 155 of file PixelSimData.h.
Referenced by GetNumSamples(), and SetNumSamples().
|
private |
Definition at line 160 of file PixelSimData.h.
Referenced by ClearPhotonTraces(), GetPhotonTrace(), HasPhotonTrace(), MakePhotonTrace(), PhotonTracesBegin(), and PhotonTracesEnd().
|
private |
Definition at line 161 of file PixelSimData.h.
Referenced by ClearPhotonWeightSquareTraces(), GetPhotonWeightSquareTrace(), HasPhotonWeightSquareTrace(), MakePhotonWeightSquareTrace(), PhotonWeightSquareTracesBegin(), and PhotonWeightSquareTracesEnd().
|
private |
Definition at line 157 of file PixelSimData.h.
|
private |
Definition at line 158 of file PixelSimData.h.
Referenced by GetThreshold(), and SetThreshold().