Belle II Software development
|
This class provides a list of ignored (=cold, hot or otherwise deffective) strips for the use in SVD data reconstruction. More...
#include <SVDIgnoredStripsMap.h>
Public Types | |
typedef std::set< unsigned short > | IgnoredStripsSet |
A set of ignored strips. | |
Public Member Functions | |
SVDIgnoredStripsMap (const std::string &xml_filename) | |
Constructor. | |
SVDIgnoredStripsMap ()=delete | |
No default constructor. | |
const std::set< unsigned short > & | getIgnoredStrips (VxdID id) |
Get the set of ignored strips for a sensor. | |
bool | stripOK (VxdID id, unsigned short strip) |
Check whether a strip on a given sensor is OK or not. | |
Private Attributes | |
std::unordered_map< unsigned short, IgnoredStripsSet > | m_Map |
Structure holiding sets of ingored strips for all sensors. | |
IgnoredStripsSet | m_lastIgnored |
Set of ingored strips for the most currently queried sensor. | |
VxdID | m_lastSensorID |
The most currently queried sensor number. | |
This class provides a list of ignored (=cold, hot or otherwise deffective) strips for the use in SVD data reconstruction.
The class has non-intrusive behavior, that is, it will not interfere when queries on non-existent sensors are asked.
Definition at line 28 of file SVDIgnoredStripsMap.h.
typedef std::set<unsigned short> IgnoredStripsSet |
A set of ignored strips.
Definition at line 32 of file SVDIgnoredStripsMap.h.
|
explicit |
Constructor.
xml_filename | is the name of the xml file containing the map. |
Definition at line 19 of file SVDIgnoredStripsMap.cc.
const std::set< unsigned short > & getIgnoredStrips | ( | VxdID | id | ) |
Get the set of ignored strips for a sensor.
Use to save map searches.
id | VxdID of the required sensor, with segment number 0 for v, 1 for u |
Definition at line 97 of file SVDIgnoredStripsMap.cc.
bool stripOK | ( | VxdID | id, |
unsigned short | strip | ||
) |
Check whether a strip on a given sensor is OK or not.
id | VxdID of the sensor, with segment number 0 for v, 1 for u |
strip | Strip number |
Definition at line 113 of file SVDIgnoredStripsMap.cc.
|
private |
Set of ingored strips for the most currently queried sensor.
Definition at line 62 of file SVDIgnoredStripsMap.h.
|
private |
The most currently queried sensor number.
Definition at line 65 of file SVDIgnoredStripsMap.h.
|
private |
Structure holiding sets of ingored strips for all sensors.
Definition at line 59 of file SVDIgnoredStripsMap.h.