Belle II Software development
SVDStripNoiseMap.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef SVD_STRIP_NOISE_MAP_H_
10#define SVD_STRIP_NOISE_MAP_H_
11
12#include <vxd/dataobjects/VxdID.h>
13#include <svd/online/SVDPar.h>
14#include <svd/online/SVDOnlineToOfflineMap.h>
15
16#include <string>
17
18namespace Belle2 {
23 /* This class provides a list of pedestal, noise and
24 * threshold values in SVD strips.
25 * This class uses arrays (not std::map) for the list
26 * in order to make accessing speed faster.
27 */
28
31 public:
32
34 SVDStripNoiseMap(SVDOnlineToOfflineMap* onl2offl_map_ptr = nullptr);
37 const std::string& noisefilename);
38
41
43 int initializeMap(const std::string& noisefilename = "");
44
51 float getPedestal(VxdID id, bool is_u, short strip);
52
59 float getNoise(VxdID id, bool is_u, short strip);
60
67 float getThreshold(VxdID id, bool is_u, short strip);
68
75 bool isGood(VxdID id, bool is_u, short strip);
76
77 private:
78
87
90 float m_pedestalMap [SVDPar::nSensorID][SVDPar::maxStrip];
91
94 float m_noiseMap [SVDPar::nSensorID][SVDPar::maxStrip];
95
98 float m_thresholdMap[SVDPar::nSensorID][SVDPar::maxStrip];
99
102 bool m_goodStripMap[SVDPar::nSensorID][SVDPar::maxStrip];
103
104 };
105
107} // namespace Belle2
108
109#endif
This class implements the methods to map raw SVD hits to basf2 SVD hits.
bool isGood(VxdID id, bool is_u, short strip)
Check whether the strip is available or not.
float getThreshold(VxdID id, bool is_u, short strip)
Get pedestal, noise, and threshold values.
float getPedestal(VxdID id, bool is_u, short strip)
Get pedestal, noise, and threshold values.
int initializeMap(const std::string &noisefilename="")
Initialize maps with input noisefile.
SVDOnlineToOfflineMap * m_onl2offl_map_ptr
Pointer to SVDOnlineToOfflineMap.
bool m_goodStripMap[SVDPar::nSensorID][SVDPar::maxStrip]
Good strip map.
float m_pedestalMap[SVDPar::nSensorID][SVDPar::maxStrip]
Pedestal map for all strips in ladders.
float m_thresholdMap[SVDPar::nSensorID][SVDPar::maxStrip]
threshold map for all strips in ladders.
float m_noiseMap[SVDPar::nSensorID][SVDPar::maxStrip]
noise map for all strips in ladders.
float getNoise(VxdID id, bool is_u, short strip)
Get pedestal, noise, and threshold values.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Abstract base class for different kinds of events.