BOSS
6.6.4.p01
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
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
g
h
i
m
n
p
r
s
t
v
w
Enumerations
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File 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
l
m
n
o
p
q
r
s
t
u
v
w
x
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
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
Emc/EmcRawEvent/EmcRawEvent-00-02-05/test/main.cxx
Go to the documentation of this file.
1
#include "
EmcRawEvent/EmcDigi.h
"
2
#include "
Identifier/Identifier.h
"
3
#include "
Identifier/EmcID.h
"
4
#include <iostream>
5
using namespace
std
;
6
7
int
main
()
8
{
9
Identifier
id;
10
id
=
EmcID::crystal_id
(1,3,5);
11
EmcDigi
digi1(
id
,25,1000,1);
12
EmcDigi
digi2(
id
,25,1000,2);
13
cout <<
"digi1: "
<< digi1 << endl;
14
cout <<
"digi2: "
<< digi2 << endl;
15
digi1 += digi2;
16
cout <<
"digi sum: "
<< digi1 << endl;
17
18
id
=
EmcID::crystal_id
(0,2,4);
19
EmcDigi
digi3(
id
,25,1000);
20
EmcDigi
digi4(
id
,35,2000);
21
cout <<
"digi3: "
<< digi3 << endl;
22
cout <<
"digi4: "
<< digi4 << endl;
23
digi3 += digi4;
24
cout <<
"digi sum: "
<< digi3 << endl;
25
26
id
=
EmcID::crystal_id
(2,2,4);
27
EmcDigi
digi5(
id
,25,1000);
28
id
=
EmcID::crystal_id
(2,3,4);
29
EmcDigi
digi6(
id
,35,2000);
30
cout <<
"digi5: "
<< digi5 << endl;
31
cout <<
"digi6: "
<< digi6 << endl;
32
digi5 += digi6;
33
cout <<
"digi sum: "
<< digi5 << endl;
34
}
EmcDigi.h
EmcID.h
main
int main()
Definition:
Emc/EmcRawEvent/EmcRawEvent-00-02-05/test/main.cxx:7
Identifier.h
EmcDigi
Definition:
EmcDigi.h:15
EmcID::crystal_id
static Identifier crystal_id(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
For a single crystal.
Definition:
EmcID.cxx:71
Identifier
Definition:
Identifier.h:20
std
Definition:
RootEventData_rootcint.cxx:15
source
Emc
EmcRawEvent
EmcRawEvent-00-02-05
test
main.cxx
Generated by
1.9.6