Belle II Software  release-08-01-10
NoiseMap Class Reference

Base Class to represent pixel dependent Noise Map. More...

#include <NoiseMap.h>

Public Member Functions

 NoiseMap ()
 Constructor

 
virtual ~NoiseMap ()
 Destructor.
 
void setNoiseLevel (float noise)
 Set the noise level.
 
virtual void setSensorID (VxdID)
 Set the sensorID currently used. More...
 
float getSignificance (const Pixel &px) const
 Return the significance of a signal, that is signal divided by noise level.
 
virtual float getNoise (const Pixel &) const
 Return the noise value for a given pixel.
 
bool operator() (const Pixel &px, float significance) const
 Check wether a signal exceeds a given significance. More...
 
bool operator() (float signal, float significance) const
 Check wether a signal exceeds a given significance using the average noise level. More...
 

Protected Attributes

float m_noiseLevel
 Noise level.
 

Detailed Description

Base Class to represent pixel dependent Noise Map.

Currently there is no area dependence implemented.

Definition at line 25 of file NoiseMap.h.

Member Function Documentation

◆ operator()() [1/2]

bool operator() ( const Pixel px,
float  significance 
) const
inline

Check wether a signal exceeds a given significance.

Parameters
pxpixel to check
significanceminimum significance

Definition at line 50 of file NoiseMap.h.

50 { return getSignificance(px) >= significance; }
float getSignificance(const Pixel &px) const
Return the significance of a signal, that is signal divided by noise level.
Definition: NoiseMap.h:41

◆ operator()() [2/2]

bool operator() ( float  signal,
float  significance 
) const
inline

Check wether a signal exceeds a given significance using the average noise level.

Parameters
signalsignal to check
significanceminimum significance

Definition at line 56 of file NoiseMap.h.

◆ setSensorID()

virtual void setSensorID ( VxdID  )
inlinevirtual

Set the sensorID currently used.

Should be utilised later or in derived classes to obtain the correct noiseMap.

Definition at line 38 of file NoiseMap.h.


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