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

strip noise map More...

#include <SVDStripNoiseMap.h>

Collaboration diagram for SVDStripNoiseMap:

Public Member Functions

 SVDStripNoiseMap (SVDOnlineToOfflineMap *onl2offl_map_ptr=nullptr)
 Constructor.
 
 SVDStripNoiseMap (SVDOnlineToOfflineMap *onl2offl_map_ptr, const std::string &noisefilename)
 Constructor including map initialization.
 
 ~SVDStripNoiseMap ()
 Destructor.
 
int initializeMap (const std::string &noisefilename="")
 Initialize maps with input noisefile.
 
float getPedestal (VxdID id, bool is_u, short strip)
 Get pedestal, noise, and threshold values. More...
 
float getNoise (VxdID id, bool is_u, short strip)
 Get pedestal, noise, and threshold values. More...
 
float getThreshold (VxdID id, bool is_u, short strip)
 Get pedestal, noise, and threshold values. More...
 
bool isGood (VxdID id, bool is_u, short strip)
 Check whether the strip is available or not. More...
 

Private Attributes

SVDOnlineToOfflineMapm_onl2offl_map_ptr
 Pointer to SVDOnlineToOfflineMap. More...
 
float m_pedestalMap [SVDPar::nSensorID][SVDPar::maxStrip]
 Pedestal map for all strips in ladders.
 
float m_noiseMap [SVDPar::nSensorID][SVDPar::maxStrip]
 noise map for all strips in ladders.
 
float m_thresholdMap [SVDPar::nSensorID][SVDPar::maxStrip]
 threshold map for all strips in ladders.
 
bool m_goodStripMap [SVDPar::nSensorID][SVDPar::maxStrip]
 Good strip map.
 

Detailed Description

strip noise map

Definition at line 30 of file SVDStripNoiseMap.h.

Member Function Documentation

◆ getNoise()

float getNoise ( VxdID  id,
bool  is_u,
short  strip 
)

Get pedestal, noise, and threshold values.

Parameters
idVxdID of the required sensor, with segment number 0 for v, 1 for u
is_utrue: u-side (p-side), false: v-side (n-side)
stripStrip number
Returns
noise value

Definition at line 158 of file SVDStripNoiseMap.cc.

159 {
160 
161  if (strip < 0 || SVDPar::maxStrip <= strip) {
162  B2ERROR("Invalid strip number: " << LogVar("strip number", strip));
163  return -9999.0;
164  }
165 
166  short sensor_id = SVDPar::getSVDSensorID(id, is_u);
167  if (sensor_id < 0 || SVDPar::nSensorID <= sensor_id) {
168  B2ERROR("Invalid SVDSensorID: " << LogVar("SVDSensorID", sensor_id));
169  return -9999.0;
170  }
171 
172  return m_noiseMap[sensor_id][strip];
173 }
float m_noiseMap[SVDPar::nSensorID][SVDPar::maxStrip]
noise map for all strips in ladders.
Class to store variables with their name which were sent to the logging service.

◆ getPedestal()

float getPedestal ( VxdID  id,
bool  is_u,
short  strip 
)

Get pedestal, noise, and threshold values.

Parameters
idVxdID of the required sensor, with segment number 0 for v, 1 for u
is_utrue: u-side (p-side), false: v-side (n-side)
stripStrip number
Returns
pedestal value

Definition at line 141 of file SVDStripNoiseMap.cc.

◆ getThreshold()

float getThreshold ( VxdID  id,
bool  is_u,
short  strip 
)

Get pedestal, noise, and threshold values.

Parameters
idVxdID of the required sensor, with segment number 0 for v, 1 for u
is_utrue: u-side (p-side), false: v-side (n-side)
stripStrip number
Returns
threshold value

Definition at line 175 of file SVDStripNoiseMap.cc.

◆ isGood()

bool isGood ( VxdID  id,
bool  is_u,
short  strip 
)

Check whether the strip is available or not.

Parameters
idVxdID of the required sensor, with segment number 0 for v, 1 for u
is_utrue: u-side (p-side), false: v-side (n-side)
stripStrip number
Returns
true if the strip is available, otherwise false

Definition at line 192 of file SVDStripNoiseMap.cc.

Member Data Documentation

◆ m_onl2offl_map_ptr

SVDOnlineToOfflineMap* m_onl2offl_map_ptr
private

Pointer to SVDOnlineToOfflineMap.

This map represents relationship between ADC+APV and Layer+Ladder+Sensor and it is necessary to convert the noise file to pedestal, noise, and threshold maps with initializeMap() function.

Definition at line 86 of file SVDStripNoiseMap.h.


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