BOSS
7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRawEvent/EmcRawEvent-00-02-06/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-06/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:16
source
Emc
EmcRawEvent
EmcRawEvent-00-02-06
test
main.cxx
Generated by
1.9.6