Belle II Software development
read_svd_ignored_map.cc
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#include <stdio.h>
9#include <svd/online/SVDIgnoredStripsMap.h>
10#include <vxd/dataobjects/VxdID.h>
11#include <set>
12
13
14int
15main(int argc, char** argv)
16{
17 if (argc != 2) {
18 printf("Hello!\n");
19 printf("Usage: %s filename.xml\n read filename.xml\n", argv[0]);
20 return 0;
21 }
22
23 Belle2::SVDIgnoredStripsMap test(argv[1]);
24 for (int plane = 3; plane < 7; ++ plane) {
25 Belle2::VxdID sensorID(plane, 1, plane);
26 printf("Plane %i, side v:\n", plane);
27 for (unsigned short ignored : test.getIgnoredStrips(sensorID))
28 printf("Ignored: %i\n", ignored);
29 sensorID.setSegmentNumber(1);
30 printf("Plane %i, side u:\n", plane);
31 for (unsigned short ignored : test.getIgnoredStrips(sensorID))
32 printf("Ignored: %i\n", ignored);
33 }
34}
This class provides a list of ignored (=cold, hot or otherwise deffective) strips for the use in SVD ...
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33