Belle II Software  release-05-01-25
SVDStripNoiseMap.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Katsuro Nakamura *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef SVD_STRIP_NOISE_MAP_H_
12 #define SVD_STRIP_NOISE_MAP_H_
13 
14 #include <vxd/dataobjects/VxdID.h>
15 #include <svd/online/SVDPar.h>
16 #include <svd/online/SVDOnlineToOfflineMap.h>
17 
18 #include <string>
19 
20 namespace Belle2 {
25  /* This class provides a list of pedestal, noise and
26  * threshold values in SVD strips.
27  * This class uses arrays (not std::map) for the list
28  * in order to make accessing speed faster.
29  */
30 
32  class SVDStripNoiseMap {
33  public:
34 
36  SVDStripNoiseMap(SVDOnlineToOfflineMap* onl2offl_map_ptr = NULL);
38  SVDStripNoiseMap(SVDOnlineToOfflineMap* onl2offl_map_ptr,
39  const std::string& noisefilename);
40 
42  ~SVDStripNoiseMap() {};
43 
45  int initializeMap(const std::string& noisefilename = "");
46 
53  float getPedestal(VxdID id, bool is_u, short strip);
54 
61  float getNoise(VxdID id, bool is_u, short strip);
62 
69  float getThreshold(VxdID id, bool is_u, short strip);
70 
77  bool isGood(VxdID id, bool is_u, short strip);
78 
79  private:
80 
89 
92  float m_pedestalMap [SVDPar::nSensorID][SVDPar::maxStrip];
93 
96  float m_noiseMap [SVDPar::nSensorID][SVDPar::maxStrip];
97 
100  float m_thresholdMap[SVDPar::nSensorID][SVDPar::maxStrip];
101 
104  bool m_goodStripMap[SVDPar::nSensorID][SVDPar::maxStrip];
105 
106  };
107 
109 } // namespace Belle2
110 
111 #endif
Belle2::SVDStripNoiseMap::~SVDStripNoiseMap
~SVDStripNoiseMap()
Destructor.
Definition: SVDStripNoiseMap.h:50
Belle2::SVDStripNoiseMap::m_pedestalMap
float m_pedestalMap[SVDPar::nSensorID][SVDPar::maxStrip]
Pedestal map for all strips in ladders.
Definition: SVDStripNoiseMap.h:100
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
Belle2::SVDStripNoiseMap::getNoise
float getNoise(VxdID id, bool is_u, short strip)
Get pedestal, noise, and threshold values.
Definition: SVDStripNoiseMap.cc:160
Belle2::SVDStripNoiseMap::m_noiseMap
float m_noiseMap[SVDPar::nSensorID][SVDPar::maxStrip]
noise map for all strips in ladders.
Definition: SVDStripNoiseMap.h:104
Belle2::SVDStripNoiseMap::m_thresholdMap
float m_thresholdMap[SVDPar::nSensorID][SVDPar::maxStrip]
threshold map for all strips in ladders.
Definition: SVDStripNoiseMap.h:108
Belle2::SVDStripNoiseMap::getPedestal
float getPedestal(VxdID id, bool is_u, short strip)
Get pedestal, noise, and threshold values.
Definition: SVDStripNoiseMap.cc:143
Belle2::SVDStripNoiseMap::isGood
bool isGood(VxdID id, bool is_u, short strip)
Check whether the strip is available or not.
Definition: SVDStripNoiseMap.cc:194
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDStripNoiseMap::initializeMap
int initializeMap(const std::string &noisefilename="")
Initialize maps with input noisefile.
Definition: SVDStripNoiseMap.cc:38
Belle2::SVDStripNoiseMap::SVDStripNoiseMap
SVDStripNoiseMap(SVDOnlineToOfflineMap *onl2offl_map_ptr=NULL)
Constructor.
Definition: SVDStripNoiseMap.cc:20
Belle2::SVDStripNoiseMap::m_onl2offl_map_ptr
SVDOnlineToOfflineMap * m_onl2offl_map_ptr
Pointer to SVDOnlineToOfflineMap.
Definition: SVDStripNoiseMap.h:96
Belle2::SVDOnlineToOfflineMap
This class implements the methods to map raw SVD hits to BASF2 SVD hits.
Definition: SVDOnlineToOfflineMap.h:47
Belle2::SVDStripNoiseMap::m_goodStripMap
bool m_goodStripMap[SVDPar::nSensorID][SVDPar::maxStrip]
Good strip map.
Definition: SVDStripNoiseMap.h:112
Belle2::SVDStripNoiseMap::getThreshold
float getThreshold(VxdID id, bool is_u, short strip)
Get pedestal, noise, and threshold values.
Definition: SVDStripNoiseMap.cc:177