/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/test/old_main.cxx File Reference

#include "Identifier/Identifier.h"
#include "Identifier/EMCalID.h"
#include "EMCRecEnvironment/BesEMCRecCrystal.h"
#include "EMCRecEnvironment/BesEMCRecBarrelGeo.h"
#include "EMCRecEnvironment/BesEMCRecParameters.h"
#include "EMCRecEnvironment/BesEMCRecGeo.h"

Go to the source code of this file.

Functions

int main ()


Function Documentation

int main (  ) 

Definition at line 8 of file old_main.cxx.

00009 {
00010    Identifier id;
00011    BesEMCRecGeo& geo=BesEMCRecGeo::GetInstance();
00012    BesEMCRecCrystal acry;
00013    
00014    HepPoint3D aPoint;
00015 
00016    id=EMCalID::crystal_id(2,22,30);
00017    acry=geo.GetCrystal(id);
00018    aPoint=geo.GetCCenter(id);
00019    acry.Dump();
00020    cout<<aPoint<<endl;
00021    acry.Checkout();
00022    cout<<endl;
00023    
00024    id=EMCalID::crystal_id(2,22,31);
00025    acry=geo.GetCrystal(id);
00026    aPoint=geo.GetCCenter(id);
00027    acry.Dump();
00028    cout<<aPoint<<endl;
00029    acry.Checkout();
00030    cout<<endl;
00031 
00032    id=EMCalID::crystal_id(2,22,1);
00033    acry=geo.GetCrystal(id);
00034    aPoint=geo.GetCCenter(id);
00035    acry.Dump();
00036    cout<<aPoint<<endl;
00037    acry.Checkout();
00038    cout<<endl;
00039    
00040    id=EMCalID::crystal_id(2,22,60);
00041    acry=geo.GetCrystal(id);
00042    aPoint=geo.GetCCenter(id);
00043    acry.Dump();
00044    cout<<aPoint<<endl;
00045    acry.Checkout();
00046    cout<<endl;
00047 
00048 }


Generated on Tue Nov 29 23:15:01 2016 for BOSS_7.0.2 by  doxygen 1.4.7