Belle II Software
release-08-01-10
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
14
int
15
main
(
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
}
Belle2::SVDIgnoredStripsMap
This class provides a list of ignored (=cold, hot or otherwise deffective) strips for the use in SVD ...
Definition:
SVDIgnoredStripsMap.h:28
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition:
VxdID.h:33
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
svd
online
tools
read_svd_ignored_map.cc
Generated on Mon Sep 23 2024 14:04:17 for Belle II Software by
1.9.1