BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/EmcRec/EmcRec-01-02-52/test/main.cxx File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 4 of file Reconstruction/EmcRec/EmcRec-01-02-52/test/main.cxx.

5{
6 EmcRecID id;
7 unsigned int module,theta,phi;
9 theta=2;
10 phi=24;
11
12 id=EmcID::crystal_id(module,theta,phi);
13 cout<<id<<"\t"
14 <<EmcID::barrel_ec(id)<<"\t"
15 <<EmcID::theta_module(id)<<"\t"
16 <<EmcID::phi_module(id)<<endl;
17 cout<<endl;
18// cout<<"aaaaaaaaaaaaaa"<<endl;
19
20 EmcRecIDVector neighbor=EmcRecNeighbor::GetNeighbors(id);
21// cout<<"bbbbbbbbbbbbbb"<<endl;
22
23 EmcRecIDVector nextNeighbor=EmcRecNeighbor::GetNextNeighbors(id);
24// cout<<"cccccccccccccc"<<endl;
25
26 EmcRecIDVector::iterator iN;
27 for(iN=neighbor.begin();
28 iN!=neighbor.end();
29 ++iN) {
30 cout<<*iN<<"\t"
31 <<EmcID::barrel_ec(*iN)<<"\t"
32 <<EmcID::theta_module(*iN)<<"\t"
33 <<EmcID::phi_module(*iN)<<endl;
34
35 }
36 cout<<endl;
37
38 for(iN=nextNeighbor.begin();
39 iN!=nextNeighbor.end();
40 ++iN) {
41 cout<<*iN<<"\t"
42 <<EmcID::barrel_ec(*iN)<<"\t"
43 <<EmcID::theta_module(*iN)<<"\t"
44 <<EmcID::phi_module(*iN)<<endl;
45 //cout<<*iN<<endl;
46 }
47 cout<<endl;
48}
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
static unsigned int getENDCAP_WEST()
Definition: EmcID.cxx:151
static unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
Definition: EmcID.cxx:38
static unsigned int theta_module(const Identifier &id)
Definition: EmcID.cxx:43
static unsigned int phi_module(const Identifier &id)
Definition: EmcID.cxx:48
RecEmcIDVector GetNeighbors(const Identifier &id)
RecEmcIDVector GetNextNeighbors(const Identifier &id)