/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/EmcRec/EmcRec-01-02-57/test/main.cxx

Go to the documentation of this file.
00001 
00002 #include "EmcRec/EmcRecNeighbor.h"
00003 
00004 int main()
00005 {
00006    EmcRecID id;
00007    unsigned int module,theta,phi;
00008    module=EmcID::getENDCAP_WEST();
00009    theta=2;
00010    phi=24;
00011    
00012    id=EmcID::crystal_id(module,theta,phi);
00013    cout<<id<<"\t"
00014      <<EmcID::barrel_ec(id)<<"\t"
00015      <<EmcID::theta_module(id)<<"\t"
00016      <<EmcID::phi_module(id)<<endl;
00017    cout<<endl;
00018 //   cout<<"aaaaaaaaaaaaaa"<<endl;
00019    
00020    EmcRecIDVector neighbor=EmcRecNeighbor::GetNeighbors(id);
00021 //   cout<<"bbbbbbbbbbbbbb"<<endl;
00022    
00023    EmcRecIDVector nextNeighbor=EmcRecNeighbor::GetNextNeighbors(id);
00024 //   cout<<"cccccccccccccc"<<endl;
00025    
00026    EmcRecIDVector::iterator iN;
00027    for(iN=neighbor.begin();
00028        iN!=neighbor.end();
00029        ++iN) {
00030       cout<<*iN<<"\t"
00031         <<EmcID::barrel_ec(*iN)<<"\t"
00032         <<EmcID::theta_module(*iN)<<"\t"
00033         <<EmcID::phi_module(*iN)<<endl;
00034       
00035    }
00036    cout<<endl;
00037    
00038    for(iN=nextNeighbor.begin();
00039        iN!=nextNeighbor.end();
00040        ++iN) {
00041        cout<<*iN<<"\t"
00042         <<EmcID::barrel_ec(*iN)<<"\t"
00043         <<EmcID::theta_module(*iN)<<"\t"
00044         <<EmcID::phi_module(*iN)<<endl;
00045       //cout<<*iN<<endl;
00046    }
00047    cout<<endl;
00048 }
00049 

Generated on Tue Nov 29 22:57:57 2016 for BOSS_7.0.2 by  doxygen 1.4.7