Belle II Software
release-05-01-25
read_svd_ignored_map.cc
1
#include <stdio.h>
2
#include <svd/online/SVDIgnoredStripsMap.h>
3
#include <vxd/dataobjects/VxdID.h>
4
#include <set>
5
6
7
int
8
main
(
int
argc,
char
** argv)
9
{
10
if
(argc != 2) {
11
printf(
"Hello!\n"
);
12
printf(
"Usage: %s filename.xml\n read filename.xml\n"
, argv[0]);
13
return
0;
14
}
15
16
Belle2::SVDIgnoredStripsMap
test(argv[1]);
17
for
(
int
plane = 3; plane < 7; ++ plane) {
18
Belle2::VxdID
sensorID(plane, 1, plane);
19
printf(
"Plane %i, side v:\n"
, plane);
20
for
(
unsigned
short
ignored : test.getIgnoredStrips(sensorID))
21
printf(
"Ignored: %i\n"
, ignored);
22
sensorID.setSegmentNumber(1);
23
printf(
"Plane %i, side u:\n"
, plane);
24
for
(
unsigned
short
ignored : test.getIgnoredStrips(sensorID))
25
printf(
"Ignored: %i\n"
, ignored);
26
}
27
}
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition:
VxdID.h:43
Belle2::SVDIgnoredStripsMap
This class provides a list of ignored (=cold, hot or otherwise deffective) strips for the use in SVD ...
Definition:
SVDIgnoredStripsMap.h:38
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:77
svd
online
tools
read_svd_ignored_map.cc
Generated on Fri Nov 5 2021 03:58:30 for Belle II Software by
1.8.17