Belle II Software  release-08-01-10
SVDIgnoredStripsMap.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_IGNORED_STRIPS_MAP_H_
10 #define SVD_IGNORED_STRIPS_MAP_H_
11 
12 #include <vxd/dataobjects/VxdID.h>
13 #include <unordered_map>
14 #include <set>
15 
16 
17 namespace Belle2 {
29  public:
30 
32  typedef std::set<unsigned short> IgnoredStripsSet;
33 
37  explicit SVDIgnoredStripsMap(const std::string& xml_filename);
38 
40  SVDIgnoredStripsMap() = delete;
41 
47  const std::set<unsigned short>& getIgnoredStrips(VxdID id);
48 
54  bool stripOK(VxdID id, unsigned short strip);
55 
56  private:
57 
59  std::unordered_map<unsigned short, IgnoredStripsSet> m_Map;
60 
63 
66 
67  };
68 
70 } // namespace Belle2
71 #endif
72 
This class provides a list of ignored (=cold, hot or otherwise deffective) strips for the use in SVD ...
bool stripOK(VxdID id, unsigned short strip)
Check whether a strip on a given sensor is OK or not.
const std::set< unsigned short > & getIgnoredStrips(VxdID id)
Get the set of ignored strips for a sensor.
IgnoredStripsSet m_lastIgnored
Set of ingored strips for the most currently queried sensor.
VxdID m_lastSensorID
The most currently queried sensor number.
std::set< unsigned short > IgnoredStripsSet
A set of ignored strips.
SVDIgnoredStripsMap()=delete
No default constructor.
std::unordered_map< unsigned short, IgnoredStripsSet > m_Map
Structure holiding sets of ingored strips for all sensors.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Abstract base class for different kinds of events.