#include "EmcRec/EmcRecNeighbor.h"
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 4 of file main.cxx.
References EmcID::barrel_ec(), EmcID::crystal_id(), EmcID::getENDCAP_WEST(), EmcRecNeighbor::GetNeighbors(), EmcRecNeighbor::GetNextNeighbors(), EmcID::phi_module(), and EmcID::theta_module().
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 }