BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecBarrelGeo Class Reference

#include <EmcRecBarrelGeo.h>

Public Member Functions

 EmcRecBarrelGeo ()
 
 ~EmcRecBarrelGeo ()
 
EmcRecCrystal GetCrystal (const Identifier &id) const
 
HepPoint3D GetCCenter (const Identifier &id) const
 
HepPoint3D GetCFrontCenter (const Identifier &id) const
 
double GetBarrelR () const
 
double GetBarrelOffset1 () const
 
double GetBarrelOffset2 () const
 
double GetBarrelh1 () const
 
double GetBarrelh2 () const
 
double GetBarrelh3 () const
 
double GetBarrelL () const
 
int GetBarrelNPhiMax () const
 
int GetBarrelNThetaMax () const
 

Detailed Description

Definition at line 25 of file EmcRecBarrelGeo.h.

Constructor & Destructor Documentation

◆ EmcRecBarrelGeo()

EmcRecBarrelGeo::EmcRecBarrelGeo ( )

Definition at line 11 of file EmcRecBarrelGeo.cxx.

12{
13 ParameterInitialize();
14 CalculateStandardCrystal();
15 Transform2Column1();
16 FillCCenterVector();
17}

◆ ~EmcRecBarrelGeo()

EmcRecBarrelGeo::~EmcRecBarrelGeo ( )

Definition at line 19 of file EmcRecBarrelGeo.cxx.

20{
21 fStandard.clear();
22 fCCenter.clear();
23 fCFrontCenter.clear();
24}

Member Function Documentation

◆ GetBarrelh1()

double EmcRecBarrelGeo::GetBarrelh1 ( ) const
inline

Definition at line 57 of file EmcRecBarrelGeo.h.

57{ return fBarrelh1; }

Referenced by EmcRecGeoSvc::GetBarrelh1().

◆ GetBarrelh2()

double EmcRecBarrelGeo::GetBarrelh2 ( ) const
inline

Definition at line 58 of file EmcRecBarrelGeo.h.

58{ return fBarrelh2; }

Referenced by EmcRecGeoSvc::GetBarrelh2().

◆ GetBarrelh3()

double EmcRecBarrelGeo::GetBarrelh3 ( ) const
inline

Definition at line 59 of file EmcRecBarrelGeo.h.

59{ return fBarrelh3; }

Referenced by EmcRecGeoSvc::GetBarrelh3().

◆ GetBarrelL()

double EmcRecBarrelGeo::GetBarrelL ( ) const
inline

Definition at line 60 of file EmcRecBarrelGeo.h.

60{ return fBarrelL; }

Referenced by EmcRecGeoSvc::GetBarrelL().

◆ GetBarrelNPhiMax()

int EmcRecBarrelGeo::GetBarrelNPhiMax ( ) const
inline

Definition at line 61 of file EmcRecBarrelGeo.h.

61{ return fBarrelNPhiMax; }

Referenced by EmcRecGeoSvc::GetBarrelNPhiMax().

◆ GetBarrelNThetaMax()

int EmcRecBarrelGeo::GetBarrelNThetaMax ( ) const
inline

Definition at line 62 of file EmcRecBarrelGeo.h.

62{ return fBarrelNThetaMax; }

Referenced by EmcRecGeoSvc::GetBarrelNThetaMax().

◆ GetBarrelOffset1()

double EmcRecBarrelGeo::GetBarrelOffset1 ( ) const
inline

Definition at line 55 of file EmcRecBarrelGeo.h.

55{ return fBarrelOffset1; }

Referenced by EmcRecGeoSvc::GetBarrelOffset1().

◆ GetBarrelOffset2()

double EmcRecBarrelGeo::GetBarrelOffset2 ( ) const
inline

Definition at line 56 of file EmcRecBarrelGeo.h.

56{ return fBarrelOffset2; }

Referenced by EmcRecGeoSvc::GetBarrelOffset2().

◆ GetBarrelR()

double EmcRecBarrelGeo::GetBarrelR ( ) const
inline

Definition at line 54 of file EmcRecBarrelGeo.h.

54{ return fBarrelR; }

Referenced by EmcRecGeoSvc::GetBarrelR().

◆ GetCCenter()

HepPoint3D EmcRecBarrelGeo::GetCCenter ( const Identifier id) const

Definition at line 282 of file EmcRecBarrelGeo.cxx.

283{
284 unsigned int theta=EmcID::theta_module(id);
285 unsigned int phi=EmcID::phi_module(id);
286
287 return fCCenter[theta*fBarrelNPhiMax+phi];
288}
static unsigned int theta_module(const Identifier &id)
Definition: EmcID.cxx:43
static unsigned int phi_module(const Identifier &id)
Definition: EmcID.cxx:48

Referenced by EmcRecGeoSvc::GetCCenter(), and main().

◆ GetCFrontCenter()

HepPoint3D EmcRecBarrelGeo::GetCFrontCenter ( const Identifier id) const

Definition at line 290 of file EmcRecBarrelGeo.cxx.

291{
292 unsigned int theta=EmcID::theta_module(id);
293 unsigned int phi=EmcID::phi_module(id);
294
295 return fCFrontCenter[theta*fBarrelNPhiMax+phi];
296}

Referenced by EmcRecGeoSvc::GetCFrontCenter(), and main().

◆ GetCrystal()

EmcRecCrystal EmcRecBarrelGeo::GetCrystal ( const Identifier id) const

Definition at line 255 of file EmcRecBarrelGeo.cxx.

256{
257 EmcRecCrystal cry;
258 unsigned int theta=EmcID::theta_module(id);
259 unsigned int phi=EmcID::phi_module(id);
260
261 double dphi=phi*fBarrelAlpha;
262
263 if((int)theta>=fBarrelNThetaMax) {
264 cry=fStandard[theta-fBarrelNThetaMax];
265 for(int m=0;m<8;++m)
266 {
267 cry.SetZ(m,-cry.Get(m).z());
268 }
269 }
270 else {
271 cry=fStandard[fBarrelNThetaMax-theta-1];
272 }
273
274 for(int m=0;m<8;++m)
275 {
276 cry.Set(m,cry.Get(m).rotateZ(dphi));
277 }
278
279 return cry;
280}
HepPoint3D Get(int index) const
Definition: EmcRecCrystal.h:83
void SetZ(int index, double value)
void Set(int index, const HepPoint3D &aPoint)

Referenced by EmcRecGeoSvc::GetCrystal(), EmcRecGeoSvc::GetCrystalPoint(), and main().


The documentation for this class was generated from the following files: