BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRawEvent/EmcRawEvent-00-02-06/test/main.cxx File Reference
#include "EmcRawEvent/EmcDigi.h"
#include "Identifier/Identifier.h"
#include "Identifier/EmcID.h"
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 7 of file Emc/EmcRawEvent/EmcRawEvent-00-02-06/test/main.cxx.

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}
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