BOSS 8.0.0
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
 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/3]

EmcRecBarrelGeo::EmcRecBarrelGeo ( )

Definition at line 11 of file EmcRecBarrelGeo.cxx.

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

◆ ~EmcRecBarrelGeo() [1/3]

EmcRecBarrelGeo::~EmcRecBarrelGeo ( )

Definition at line 18 of file EmcRecBarrelGeo.cxx.

18 {
19 fStandard.clear();
20 fCCenter.clear();
21 fCFrontCenter.clear();
22}

◆ EmcRecBarrelGeo() [2/3]

EmcRecBarrelGeo::EmcRecBarrelGeo ( )

◆ ~EmcRecBarrelGeo() [2/3]

EmcRecBarrelGeo::~EmcRecBarrelGeo ( )

◆ EmcRecBarrelGeo() [3/3]

EmcRecBarrelGeo::EmcRecBarrelGeo ( )

◆ ~EmcRecBarrelGeo() [3/3]

EmcRecBarrelGeo::~EmcRecBarrelGeo ( )

Member Function Documentation

◆ GetBarrelh1() [1/3]

double EmcRecBarrelGeo::GetBarrelh1 ( ) const
inline

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

56{ return fBarrelh1; }

◆ GetBarrelh1() [2/3]

double EmcRecBarrelGeo::GetBarrelh1 ( ) const
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

56{ return fBarrelh1; }

◆ GetBarrelh1() [3/3]

double EmcRecBarrelGeo::GetBarrelh1 ( ) const
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

56{ return fBarrelh1; }

◆ GetBarrelh2() [1/3]

double EmcRecBarrelGeo::GetBarrelh2 ( ) const
inline

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

57{ return fBarrelh2; }

◆ GetBarrelh2() [2/3]

double EmcRecBarrelGeo::GetBarrelh2 ( ) const
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

57{ return fBarrelh2; }

◆ GetBarrelh2() [3/3]

double EmcRecBarrelGeo::GetBarrelh2 ( ) const
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

57{ return fBarrelh2; }

◆ GetBarrelh3() [1/3]

double EmcRecBarrelGeo::GetBarrelh3 ( ) const
inline

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

58{ return fBarrelh3; }

◆ GetBarrelh3() [2/3]

double EmcRecBarrelGeo::GetBarrelh3 ( ) const
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

58{ return fBarrelh3; }

◆ GetBarrelh3() [3/3]

double EmcRecBarrelGeo::GetBarrelh3 ( ) const
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

58{ return fBarrelh3; }

◆ GetBarrelL() [1/3]

double EmcRecBarrelGeo::GetBarrelL ( ) const
inline

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

59{ return fBarrelL; }

◆ GetBarrelL() [2/3]

double EmcRecBarrelGeo::GetBarrelL ( ) const
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

59{ return fBarrelL; }

◆ GetBarrelL() [3/3]

double EmcRecBarrelGeo::GetBarrelL ( ) const
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

59{ return fBarrelL; }

◆ GetBarrelNPhiMax() [1/3]

int EmcRecBarrelGeo::GetBarrelNPhiMax ( ) const
inline

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

60{ return fBarrelNPhiMax; }

◆ GetBarrelNPhiMax() [2/3]

int EmcRecBarrelGeo::GetBarrelNPhiMax ( ) const
inline

Definition at line 60 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

60{ return fBarrelNPhiMax; }

◆ GetBarrelNPhiMax() [3/3]

int EmcRecBarrelGeo::GetBarrelNPhiMax ( ) const
inline

Definition at line 60 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

60{ return fBarrelNPhiMax; }

◆ GetBarrelNThetaMax() [1/3]

int EmcRecBarrelGeo::GetBarrelNThetaMax ( ) const
inline

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

61{ return fBarrelNThetaMax; }

◆ GetBarrelNThetaMax() [2/3]

int EmcRecBarrelGeo::GetBarrelNThetaMax ( ) const
inline

Definition at line 61 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

61{ return fBarrelNThetaMax; }

◆ GetBarrelNThetaMax() [3/3]

int EmcRecBarrelGeo::GetBarrelNThetaMax ( ) const
inline

Definition at line 61 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

61{ return fBarrelNThetaMax; }

◆ GetBarrelOffset1() [1/3]

double EmcRecBarrelGeo::GetBarrelOffset1 ( ) const
inline

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

54{ return fBarrelOffset1; }

◆ GetBarrelOffset1() [2/3]

double EmcRecBarrelGeo::GetBarrelOffset1 ( ) const
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

54{ return fBarrelOffset1; }

◆ GetBarrelOffset1() [3/3]

double EmcRecBarrelGeo::GetBarrelOffset1 ( ) const
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

54{ return fBarrelOffset1; }

◆ GetBarrelOffset2() [1/3]

double EmcRecBarrelGeo::GetBarrelOffset2 ( ) const
inline

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

55{ return fBarrelOffset2; }

◆ GetBarrelOffset2() [2/3]

double EmcRecBarrelGeo::GetBarrelOffset2 ( ) const
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

55{ return fBarrelOffset2; }

◆ GetBarrelOffset2() [3/3]

double EmcRecBarrelGeo::GetBarrelOffset2 ( ) const
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

55{ return fBarrelOffset2; }

◆ GetBarrelR() [1/3]

double EmcRecBarrelGeo::GetBarrelR ( ) const
inline

Definition at line 53 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

53{ return fBarrelR; }

◆ GetBarrelR() [2/3]

double EmcRecBarrelGeo::GetBarrelR ( ) const
inline

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

53{ return fBarrelR; }

◆ GetBarrelR() [3/3]

double EmcRecBarrelGeo::GetBarrelR ( ) const
inline

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecBarrelGeo.h.

53{ return fBarrelR; }

◆ GetCCenter() [1/3]

HepPoint3D EmcRecBarrelGeo::GetCCenter ( const Identifier & id) const

Definition at line 298 of file EmcRecBarrelGeo.cxx.

298 {
299 unsigned int theta = EmcID::theta_module( id );
300 unsigned int phi = EmcID::phi_module( id );
301
302 return fCCenter[theta * fBarrelNPhiMax + phi];
303}
static unsigned int theta_module(const Identifier &id)
Definition EmcID.cxx:41
static unsigned int phi_module(const Identifier &id)
Definition EmcID.cxx:46

Referenced by main().

◆ GetCCenter() [2/3]

HepPoint3D EmcRecBarrelGeo::GetCCenter ( const Identifier & id) const

◆ GetCCenter() [3/3]

HepPoint3D EmcRecBarrelGeo::GetCCenter ( const Identifier & id) const

◆ GetCFrontCenter() [1/3]

HepPoint3D EmcRecBarrelGeo::GetCFrontCenter ( const Identifier & id) const

Definition at line 305 of file EmcRecBarrelGeo.cxx.

305 {
306 unsigned int theta = EmcID::theta_module( id );
307 unsigned int phi = EmcID::phi_module( id );
308
309 return fCFrontCenter[theta * fBarrelNPhiMax + phi];
310}

Referenced by main().

◆ GetCFrontCenter() [2/3]

HepPoint3D EmcRecBarrelGeo::GetCFrontCenter ( const Identifier & id) const

◆ GetCFrontCenter() [3/3]

HepPoint3D EmcRecBarrelGeo::GetCFrontCenter ( const Identifier & id) const

◆ GetCrystal() [1/3]

EmcRecCrystal EmcRecBarrelGeo::GetCrystal ( const Identifier & id) const

Definition at line 279 of file EmcRecBarrelGeo.cxx.

279 {
280 EmcRecCrystal cry;
281 unsigned int theta = EmcID::theta_module( id );
282 unsigned int phi = EmcID::phi_module( id );
283
284 double dphi = phi * fBarrelAlpha;
285
286 if ( (int)theta >= fBarrelNThetaMax )
287 {
288 cry = fStandard[theta - fBarrelNThetaMax];
289 for ( int m = 0; m < 8; ++m ) { cry.SetZ( m, -cry.Get( m ).z() ); }
290 }
291 else { cry = fStandard[fBarrelNThetaMax - theta - 1]; }
292
293 for ( int m = 0; m < 8; ++m ) { cry.Set( m, cry.Get( m ).rotateZ( dphi ) ); }
294
295 return cry;
296}
void Set(int index, const HepPoint3D &aPoint)

Referenced by main().

◆ GetCrystal() [2/3]

EmcRecCrystal EmcRecBarrelGeo::GetCrystal ( const Identifier & id) const

◆ GetCrystal() [3/3]

EmcRecCrystal EmcRecBarrelGeo::GetCrystal ( const Identifier & id) const

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