BOSS 7.0.2
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
 
 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

Constructor & Destructor Documentation

◆ EmcRecBarrelGeo() [1/2]

EmcRecBarrelGeo::EmcRecBarrelGeo ( )

Definition at line 11 of file EmcRecBarrelGeo.cxx.

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

◆ ~EmcRecBarrelGeo() [1/2]

EmcRecBarrelGeo::~EmcRecBarrelGeo ( )

Definition at line 19 of file EmcRecBarrelGeo.cxx.

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

◆ EmcRecBarrelGeo() [2/2]

EmcRecBarrelGeo::EmcRecBarrelGeo ( )

◆ ~EmcRecBarrelGeo() [2/2]

EmcRecBarrelGeo::~EmcRecBarrelGeo ( )

Member Function Documentation

◆ GetBarrelh1() [1/2]

double EmcRecBarrelGeo::GetBarrelh1 ( ) const
inline

Definition at line 57 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

57{ return fBarrelh1; }

Referenced by EmcRecGeoSvc::GetBarrelh1().

◆ GetBarrelh1() [2/2]

double EmcRecBarrelGeo::GetBarrelh1 ( ) const
inline

Definition at line 57 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

57{ return fBarrelh1; }

◆ GetBarrelh2() [1/2]

double EmcRecBarrelGeo::GetBarrelh2 ( ) const
inline

Definition at line 58 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

58{ return fBarrelh2; }

Referenced by EmcRecGeoSvc::GetBarrelh2().

◆ GetBarrelh2() [2/2]

double EmcRecBarrelGeo::GetBarrelh2 ( ) const
inline

Definition at line 58 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

58{ return fBarrelh2; }

◆ GetBarrelh3() [1/2]

double EmcRecBarrelGeo::GetBarrelh3 ( ) const
inline

Definition at line 59 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

59{ return fBarrelh3; }

Referenced by EmcRecGeoSvc::GetBarrelh3().

◆ GetBarrelh3() [2/2]

double EmcRecBarrelGeo::GetBarrelh3 ( ) const
inline

Definition at line 59 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

59{ return fBarrelh3; }

◆ GetBarrelL() [1/2]

double EmcRecBarrelGeo::GetBarrelL ( ) const
inline

Definition at line 60 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

60{ return fBarrelL; }

Referenced by EmcRecGeoSvc::GetBarrelL().

◆ GetBarrelL() [2/2]

double EmcRecBarrelGeo::GetBarrelL ( ) const
inline

Definition at line 60 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

60{ return fBarrelL; }

◆ GetBarrelNPhiMax() [1/2]

int EmcRecBarrelGeo::GetBarrelNPhiMax ( ) const
inline

Definition at line 61 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

61{ return fBarrelNPhiMax; }

Referenced by EmcRecGeoSvc::GetBarrelNPhiMax().

◆ GetBarrelNPhiMax() [2/2]

int EmcRecBarrelGeo::GetBarrelNPhiMax ( ) const
inline

Definition at line 61 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

61{ return fBarrelNPhiMax; }

◆ GetBarrelNThetaMax() [1/2]

int EmcRecBarrelGeo::GetBarrelNThetaMax ( ) const
inline

Definition at line 62 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

62{ return fBarrelNThetaMax; }

Referenced by EmcRecGeoSvc::GetBarrelNThetaMax().

◆ GetBarrelNThetaMax() [2/2]

int EmcRecBarrelGeo::GetBarrelNThetaMax ( ) const
inline

Definition at line 62 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

62{ return fBarrelNThetaMax; }

◆ GetBarrelOffset1() [1/2]

double EmcRecBarrelGeo::GetBarrelOffset1 ( ) const
inline

Definition at line 55 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

55{ return fBarrelOffset1; }

Referenced by EmcRecGeoSvc::GetBarrelOffset1().

◆ GetBarrelOffset1() [2/2]

double EmcRecBarrelGeo::GetBarrelOffset1 ( ) const
inline

Definition at line 55 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

55{ return fBarrelOffset1; }

◆ GetBarrelOffset2() [1/2]

double EmcRecBarrelGeo::GetBarrelOffset2 ( ) const
inline

Definition at line 56 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

56{ return fBarrelOffset2; }

Referenced by EmcRecGeoSvc::GetBarrelOffset2().

◆ GetBarrelOffset2() [2/2]

double EmcRecBarrelGeo::GetBarrelOffset2 ( ) const
inline

Definition at line 56 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

56{ return fBarrelOffset2; }

◆ GetBarrelR() [1/2]

double EmcRecBarrelGeo::GetBarrelR ( ) const
inline

Definition at line 54 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecBarrelGeo.h.

54{ return fBarrelR; }

Referenced by EmcRecGeoSvc::GetBarrelR().

◆ GetBarrelR() [2/2]

double EmcRecBarrelGeo::GetBarrelR ( ) const
inline

Definition at line 54 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecBarrelGeo.h.

54{ return fBarrelR; }

◆ GetCCenter() [1/2]

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().

◆ GetCCenter() [2/2]

HepPoint3D EmcRecBarrelGeo::GetCCenter ( const Identifier id) const

◆ GetCFrontCenter() [1/2]

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().

◆ GetCFrontCenter() [2/2]

HepPoint3D EmcRecBarrelGeo::GetCFrontCenter ( const Identifier id) const

◆ GetCrystal() [1/2]

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}

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

◆ GetCrystal() [2/2]

EmcRecCrystal EmcRecBarrelGeo::GetCrystal ( const Identifier id) const

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