#include <RecEmcFraction.h>
Inheritance diagram for RecEmcFraction:
|
|
|
|
|
00025 {
00026 //nothing to do
00027 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00082 { 00083 fCellId=CellId; 00084 return fCellId; 00085 }
|
|
00024 { return CLID_RecEmcHit; }
|
|
00024 { return CLID_RecEmcHit; }
|
|
00023 { return RecEmcHit::classID();}
|
|
00023 { return RecEmcHit::classID();}
|
|
|
|
00067 { 00068 unsigned int tht,phi; 00069 unsigned int tht2,phi2; 00070 unsigned int dtht,dphi; 00071 double dist; 00072 00073 tht=EmcID::theta_module(fCellId); 00074 phi=EmcID::phi_module(fCellId); 00075 tht2=EmcID::theta_module(id); 00076 phi2=EmcID::phi_module(id); 00077 00078 dtht=tht>tht2 ? tht-tht2 : tht2-tht; 00079 dphi=phi>phi2 ? phi-phi2 : phi2-phi; 00080 if(dphi>(EmcID::getPHI_BARREL_MAX()+1)/2) 00081 { 00082 dphi=EmcID::getPHI_BARREL_MAX()+1-dphi; 00083 } 00084 dist=sqrt(double(dtht*dtht+dphi*dphi)); 00085 00086 return dist; 00087 }
|
|
Reimplemented from RecEmcHit. |
|
Reimplemented from RecEmcHit. 00091 { 00092 cout<<"Fraction: "; 00093 00094 cout<<fCellId<<", "; 00095 00096 cout.width(12); 00097 cout.setf(ios::right); 00098 cout<<fEnergy<<", "; 00099 00100 cout.width(12); 00101 cout.setf(ios::right); 00102 cout<<fTime<<", "; 00103 00104 cout.width(12); 00105 cout.setf(ios::right); 00106 cout<<fFraction; 00107 00108 cout<<endl; 00109 }
|
|
|
|
00088 { 00089 fEnergy=Energy; 00090 return fEnergy; 00091 }
|
|
|
|
00060 { 00061 fFraction=Fraction; 00062 return fFraction; 00063 }
|
|
00047 { return fCellId; }
|
|
00047 { return fCellId; }
|
|
|
|
00058 { 00059 IEmcRecGeoSvc* iGeoSvc; 00060 ISvcLocator* svcLocator = Gaudi::svcLocator(); 00061 StatusCode sc = svcLocator->service("EmcRecGeoSvc",iGeoSvc); 00062 if(sc!=StatusCode::SUCCESS) { 00063 cout<<"Error: Can't get EmcRecGeoSvc"<<endl; 00064 } 00065 00066 return iGeoSvc->GetCCenter(fCellId); 00067 }
|
|
00048 { return fEnergy; }
|
|
00048 { return fEnergy; }
|
|
|
|
00055 {
00056 return fFraction;
00057 }
|
|
|
|
00070 { 00071 IEmcRecGeoSvc* iGeoSvc; 00072 ISvcLocator* svcLocator = Gaudi::svcLocator(); 00073 StatusCode sc = svcLocator->service("EmcRecGeoSvc",iGeoSvc); 00074 if(sc!=StatusCode::SUCCESS) { 00075 cout<<"Error: Can't get EmcRecGeoSvc"<<endl; 00076 } 00077 00078 return iGeoSvc->GetCFrontCenter(fCellId); 00079 }
|
|
00049 { return fTime; }
|
|
00049 { return fTime; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00094 { 00095 fTime=Time; 00096 return fTime; 00097 }
|
|
|
|
|
|
|
|
|