List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
fevt::PixelSimData Class Reference

Fluorescence Detector Pixel Simulated Data. More...

#include <PixelSimData.h>

Public Types

typedef
utl::MultiTraceD::ConstIterator 
ConstPhotonTraceIterator
 
typedef
utl::MultiTraceD::ConstIterator 
ConstPhotonWeightSquareTraceIterator
 
typedef utl::MultiTraceD::Iterator PhotonTraceIterator
 
typedef utl::MultiTraceD::Iterator PhotonWeightSquareTraceIterator
 

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::TraceDGetPhotonTrace (const FdConstants::LightSource source=FdConstants::eTotal)
 Simulated Photon Trace. More...
 
const utl::TraceDGetPhotonTrace (const FdConstants::LightSource source=FdConstants::eTotal) const
 
utl::TraceDGetPhotonWeightSquareTrace (const FdConstants::LightSource source=FdConstants::eTotal)
 Trace of the sums of squares of simulated photon weights. More...
 
const utl::TraceDGetPhotonWeightSquareTrace (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 >
 

Detailed Description

Fluorescence Detector Pixel Simulated Data.

Author
Stefano Argiro'
Date
Jan 29, 2003

Definition at line 28 of file PixelSimData.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

PixelSimData::PixelSimData ( )
private

Definition at line 12 of file PixelSimData.cc.

PixelSimData::~PixelSimData ( )
private

Definition at line 25 of file PixelSimData.cc.

Member Function Documentation

void fevt::PixelSimData::ClearPhotonTraces ( )
inline

Clear all light components' photon traces.

Definition at line 48 of file PixelSimData.h.

References fPhotonTrace.

void fevt::PixelSimData::ClearPhotonWeightSquareTraces ( )
inline

Clear all light components' photon-weight-square-traces.

Definition at line 94 of file PixelSimData.h.

References fPhotonWeightSquareTrace.

int fevt::PixelSimData::GetFltDuration ( ) const
inline

Definition at line 143 of file PixelSimData.h.

References fFltDuration.

Referenced by FdEventLoggerGS::FdEventLogger::Run().

int fevt::PixelSimData::GetFltTime ( ) const
inline

Definition at line 142 of file PixelSimData.h.

References fFltTime.

Referenced by FdEventLoggerGS::FdEventLogger::Run().

int fevt::PixelSimData::GetMaxBoxcarsum ( ) const
inline

Definition at line 139 of file PixelSimData.h.

References fBoxcarsumMax.

Referenced by FdEventLoggerGS::FdEventLogger::Run().

double fevt::PixelSimData::GetMean ( ) const
inline
double fevt::PixelSimData::GetMeanBgPhotonFlux ( ) const
inline
double fevt::PixelSimData::GetMeanBoxcarsum ( ) const
inline

Definition at line 140 of file PixelSimData.h.

References fBoxcarsumMean.

Referenced by FdEventLoggerGS::FdEventLogger::Run().

int fevt::PixelSimData::GetNumSamples ( ) const
inline

Get the no. of samples for running sums.

Definition at line 117 of file PixelSimData.h.

References fNumSamples.

Referenced by FdTriggerSimulatorOG::FdTriggerSimulator::FLTSim().

utl::TraceD& fevt::PixelSimData::GetPhotonTrace ( const FdConstants::LightSource  source = FdConstants::eTotal)
inline
const utl::TraceD& fevt::PixelSimData::GetPhotonTrace ( const FdConstants::LightSource  source = FdConstants::eTotal) const
inline

Definition at line 39 of file PixelSimData.h.

References fPhotonTrace.

utl::TraceD& fevt::PixelSimData::GetPhotonWeightSquareTrace ( const FdConstants::LightSource  source = FdConstants::eTotal)
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().

const utl::TraceD& fevt::PixelSimData::GetPhotonWeightSquareTrace ( const FdConstants::LightSource  source = FdConstants::eTotal) const
inline

Definition at line 80 of file PixelSimData.h.

References fPhotonWeightSquareTrace.

double fevt::PixelSimData::GetRMS ( ) const
inline

Get the ADC variance.

Definition at line 127 of file PixelSimData.h.

References fRMS.

Referenced by FdTriggerSimulatorOG::FdTriggerSimulator::MakeMirrorEvent().

double fevt::PixelSimData::GetRmsBoxcarsum ( ) const
inline

Definition at line 141 of file PixelSimData.h.

References fBoxcarsumRms.

Referenced by FdEventLoggerGS::FdEventLogger::Run().

int fevt::PixelSimData::GetThreshold ( ) const
inline
bool fevt::PixelSimData::HasPhotonTrace ( const FdConstants::LightSource  source) const
inline
bool fevt::PixelSimData::HasPhotonWeightSquareTrace ( const FdConstants::LightSource  source) const
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 
)
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().

PhotonTraceIterator fevt::PixelSimData::PhotonTracesBegin ( )
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().

ConstPhotonTraceIterator fevt::PixelSimData::PhotonTracesBegin ( ) const
inline

Definition at line 62 of file PixelSimData.h.

References fPhotonTrace.

PhotonTraceIterator fevt::PixelSimData::PhotonTracesEnd ( )
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().

ConstPhotonTraceIterator fevt::PixelSimData::PhotonTracesEnd ( ) const
inline

Definition at line 68 of file PixelSimData.h.

References fPhotonTrace.

PhotonWeightSquareTraceIterator fevt::PixelSimData::PhotonWeightSquareTracesBegin ( )
inline

First std::pair<int source, TraceD * trace>

Definition at line 102 of file PixelSimData.h.

References fPhotonWeightSquareTrace.

ConstPhotonWeightSquareTraceIterator fevt::PixelSimData::PhotonWeightSquareTracesBegin ( ) const
inline

Definition at line 104 of file PixelSimData.h.

References fPhotonWeightSquareTrace.

PhotonWeightSquareTraceIterator fevt::PixelSimData::PhotonWeightSquareTracesEnd ( )
inline

Last std::pair<int source, TraceD * trace>

Definition at line 108 of file PixelSimData.h.

References fPhotonWeightSquareTrace.

ConstPhotonWeightSquareTraceIterator fevt::PixelSimData::PhotonWeightSquareTracesEnd ( ) const
inline

Definition at line 110 of file PixelSimData.h.

References fPhotonWeightSquareTrace.

void fevt::PixelSimData::SetFltDuration ( int  v)
inline
void fevt::PixelSimData::SetFltTime ( int  v)
inline
void fevt::PixelSimData::SetMaxBoxcarsum ( int  v)
inline
void fevt::PixelSimData::SetMean ( const double  mean)
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>>().

void fevt::PixelSimData::SetMeanBgPhotonFlux ( const double  mean)
inline
void fevt::PixelSimData::SetMeanBoxcarsum ( double  v)
inline
void fevt::PixelSimData::SetNumSamples ( const int  nSamp)
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>>().

void fevt::PixelSimData::SetRMS ( const double  rms)
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>>().

void fevt::PixelSimData::SetRmsBoxcarsum ( double  v)
inline
void fevt::PixelSimData::SetThreshold ( const int  thr)
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().

Friends And Related Function Documentation

friend class Pixel
friend

Definition at line 169 of file PixelSimData.h.

friend class utl::ShadowPtr< PixelSimData >
friend

Definition at line 170 of file PixelSimData.h.

Member Data Documentation

int fevt::PixelSimData::fBoxcarsumMax
private

Definition at line 163 of file PixelSimData.h.

Referenced by GetMaxBoxcarsum(), and SetMaxBoxcarsum().

double fevt::PixelSimData::fBoxcarsumMean
private

Definition at line 164 of file PixelSimData.h.

Referenced by GetMeanBoxcarsum(), and SetMeanBoxcarsum().

double fevt::PixelSimData::fBoxcarsumRms
private

Definition at line 165 of file PixelSimData.h.

Referenced by GetRmsBoxcarsum(), and SetRmsBoxcarsum().

int fevt::PixelSimData::fFltDuration
private

Definition at line 167 of file PixelSimData.h.

Referenced by GetFltDuration(), and SetFltDuration().

int fevt::PixelSimData::fFltTime
private

Definition at line 166 of file PixelSimData.h.

Referenced by GetFltTime(), and SetFltTime().

double fevt::PixelSimData::fMean
private

Definition at line 156 of file PixelSimData.h.

Referenced by GetMean(), and SetMean().

double fevt::PixelSimData::fMeanBgPhotonFlux
private

Definition at line 159 of file PixelSimData.h.

Referenced by GetMeanBgPhotonFlux(), and SetMeanBgPhotonFlux().

int fevt::PixelSimData::fNumSamples
private

Definition at line 155 of file PixelSimData.h.

Referenced by GetNumSamples(), and SetNumSamples().

utl::InitializedShadowPtr<utl::MultiTraceD> fevt::PixelSimData::fPhotonTrace
private
utl::InitializedShadowPtr<utl::MultiTraceD> fevt::PixelSimData::fPhotonWeightSquareTrace
private
double fevt::PixelSimData::fRMS
private

Definition at line 157 of file PixelSimData.h.

Referenced by GetRMS(), and SetRMS().

int fevt::PixelSimData::fThreshold
private

Definition at line 158 of file PixelSimData.h.

Referenced by GetThreshold(), and SetThreshold().


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

, generated on Tue Sep 26 2023.