Belle II Software  release-05-02-19
SVDStripNoiseMap Class Reference

strip noise map More...

#include <SVDStripNoiseMap.h>

Collaboration diagram for SVDStripNoiseMap:

Public Member Functions

 SVDStripNoiseMap (SVDOnlineToOfflineMap *onl2offl_map_ptr=NULL)
 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 40 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 160 of file SVDStripNoiseMap.cc.

161 {
162 
163  if (strip < 0 || SVDPar::maxStrip <= strip) {
164  B2ERROR("Invalid strip number: " << strip);
165  return -9999.0;
166  }
167 
168  short sensor_id = SVDPar::getSVDSensorID(id, is_u);
169  if (sensor_id < 0 || SVDPar::nSensorID <= sensor_id) {
170  B2ERROR("Invalid SVDSensorID: " << sensor_id);
171  return -9999.0;
172  }
173 
174  return m_noiseMap[sensor_id][strip];
175 }

◆ 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 143 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 177 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 194 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 96 of file SVDStripNoiseMap.h.


The documentation for this class was generated from the following files:
Belle2::SVDStripNoiseMap::m_noiseMap
float m_noiseMap[SVDPar::nSensorID][SVDPar::maxStrip]
noise map for all strips in ladders.
Definition: SVDStripNoiseMap.h:104