Belle II Software
release-08-00-10
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
read_svd_online_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/SVDOnlineToOfflineMap.h>
10
#include <svd/dataobjects/SVDShaperDigit.h>
11
#include <vxd/dataobjects/VxdID.h>
12
13
int
14
main
(
int
argc,
char
** argv)
15
{
16
if
(argc != 2) {
17
printf(
"Hello! Hello!\n"
);
18
printf(
"Usage: %s filename.xml\n read filename.xml\n"
, argv[0]);
19
return
0;
20
}
21
22
Belle2::SVDOnlineToOfflineMap
test(argv[1]);
23
short
sample[6] = {0, 0, 0, 10000, 0, 0};
24
Belle2::SVDShaperDigit
* digit = test.NewShaperDigit(129, 6, 119, sample, 100);
25
printf(
"Layer/Ladder/Sensor: %i/%i/%i "
,
26
digit->
getSensorID
().
getLayerNumber
(),
27
digit->
getSensorID
().
getLadderNumber
(),
28
digit->
getSensorID
().
getSensorNumber
());
29
printf(
"%s"
, digit->
isUStrip
() ?
"u"
:
"v"
);
30
printf(
"-strip: %i "
, digit->
getCellID
());
31
printf(
"MaxCharge: %f "
,
double
(digit->
getMaxADCCounts
()));
32
//printf("Time: %i ", digit->getIndex());
33
printf(
"\n"
);
34
35
printf(
"Find (layer, ladder, sensor, side, strip) for (FADC, APV, channel)\n"
);
36
auto
info = test.getSensorInfo(129, 6);
37
short
strip = test.getStripNumber(119, info);
38
printf(
"Layer/Ladder/Sensor: %i/%i/%i "
,
39
info.m_sensorID.getLayerNumber(),
40
info.m_sensorID.getLadderNumber(),
41
info.m_sensorID.getSensorNumber()
42
);
43
printf(
"%s"
, info.m_uSide ?
"u"
:
"v"
);
44
printf(
"-strip: %i "
, strip);
45
printf(
"\n"
);
46
47
}
Belle2::SVDOnlineToOfflineMap
This class implements the methods to map raw SVD hits to basf2 SVD hits.
Definition:
SVDOnlineToOfflineMap.h:30
Belle2::SVDShaperDigit
The SVD ShaperDigit class.
Definition:
SVDShaperDigit.h:32
Belle2::SVDShaperDigit::getSensorID
VxdID getSensorID() const
Get the sensor ID.
Definition:
SVDShaperDigit.h:98
Belle2::SVDShaperDigit::getCellID
short int getCellID() const
Get strip ID.
Definition:
SVDShaperDigit.h:114
Belle2::SVDShaperDigit::isUStrip
bool isUStrip() const
Get strip direction.
Definition:
SVDShaperDigit.h:109
Belle2::SVDShaperDigit::getMaxADCCounts
int getMaxADCCounts() const
Get the ADC counts corresponding to the higher sample amplitude.
Definition:
SVDShaperDigit.h:144
Belle2::VxdID::getSensorNumber
baseType getSensorNumber() const
Get the sensor id.
Definition:
VxdID.h:100
Belle2::VxdID::getLadderNumber
baseType getLadderNumber() const
Get the ladder id.
Definition:
VxdID.h:98
Belle2::VxdID::getLayerNumber
baseType getLayerNumber() const
Get the layer id.
Definition:
VxdID.h:96
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
svd
online
tools
read_svd_online_map.cc
Generated on Fri Aug 9 2024 01:02:59 for Belle II Software by
1.9.1