BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
MucGeoMgr.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------|
2// [File ]: MucGeoMgr.h |
3// [Brief ]: Header file of MUC geometry manager class |
4// [Author]: Xie Yuguang, <[email protected]> |
5// [Date ]: Mar 28, 2006 |
6//------------------------------------------------------------------------------|
7
8#ifndef MUC_GEO_MGR_ALG_H
9#define MUC_GEO_MGR_ALG_H
10
11#include<iostream>
12#include<string>
13
14#include "GaudiKernel/MsgStream.h"
15#include "GaudiKernel/StatusCode.h"
16#include "GaudiKernel/IMessageSvc.h"
17
30
31/*
32#include "TH1F.h"
33#include "TGeometry.h"
34#include "TGeoManager.h"
35#include "TGeoVolume.h"
36#include "TGeoMaterial.h"
37#include "TGeoMedium.h"
38#include "TGeoBBox.h"
39#include "TCanvas.h"
40*/
41
42using namespace std;
43
44const unsigned int ENTITY_NUM = 9;
45
47{
48 public:
49 MucGeoMgr( const std::string createFlag, bool alignFlag, const std::string alignFile );
50 ~MucGeoMgr();
51
52 StatusCode CreateEntities();
53 StatusCode CreateRootGeo();
54 StatusCode CreateOnlineStripGeo();
55
56 MucAbsorber *GetAbsorber( int part, int segment, int layer, int id );
57 MucGap *GetGap( int part, int segment, int layer, int id );
58 MucBox *GetBox( int part, int segment, int layer, int id );
59 MucStripPlane *GetStripPlane( int part, int segment, int layer, int id );
60 MucStrip *GetStrip( int part, int segment, int layer, int id );
61 MucRpc *GetRpc( int part, int segment, int layer, int upDown, int id );
62 MucGas *GetGas( int part, int segment, int layer, int upDown, int rpcId, int id );
63 MucBakelite *GetBakelite( int part, int segment, int layer, int upDown, int rpcId, int id );
64 MucBoxCover *GetBoxCover( int part, int segment, int layer, int upDown, int id );
65
66 IMessageSvc *msgSvc;
67
68 protected:
69
70 StatusCode CreateAbsorber();
71 StatusCode CreateGap();
72 StatusCode CreateBox();
73 StatusCode CreateStripPlane();
74 StatusCode CreateStrip();
75 StatusCode CreateRpc();
76 StatusCode CreateGas();
77 StatusCode CreateBakelite();
78 StatusCode CreateBoxCover();
79
80 StatusCode InitOffset();
81 bool CheckBoxOffset( int part, int segment, int layer, int axis, double offset);
82 bool CheckStripPlaneOffset( int part, int segment, int layer, int axis, double offset);
83
84 private:
85
86 bool m_AlignFlag;
87 std::string m_CreateFlag;
88 std::string m_AlignFile;
89 double m_BoxOffset[PART_MAX][B_SEG_NUM][B_LAY_NUM][3];
90 double m_StripPlaneOffset[PART_MAX][B_SEG_NUM][B_LAY_NUM][3];
91
92 MucIdTransform* m_IdTr;
93
94 MucAbsorber *m_MucAbsorber;
95 MucGap *m_MucGap;
96 MucBox *m_MucBox;
97 MucStripPlane *m_MucStripPlane;
98 MucStrip *m_MucStrip;
99 MucRpc *m_MucRpc;
100 MucBoxCover *m_MucBoxCover;
101 MucBakelite *m_MucBakelite;
102 MucGas *m_MucGas;
103
104 //TGeoManager *geoMgr;
105
106};
107
108#endif
const unsigned int ENTITY_NUM
Definition: MucGeoMgr.h:44
Definition: MucBox.h:21
Definition: MucGap.h:19
Definition: MucGas.h:19
bool CheckStripPlaneOffset(int part, int segment, int layer, int axis, double offset)
Definition: MucGeoMgr.cxx:202
MucGap * GetGap(int part, int segment, int layer, int id)
Definition: MucGeoMgr.cxx:1893
StatusCode CreateRpc()
Definition: MucGeoMgr.cxx:1325
MucAbsorber * GetAbsorber(int part, int segment, int layer, int id)
Definition: MucGeoMgr.cxx:1886
StatusCode CreateGas()
Definition: MucGeoMgr.cxx:1456
MucStripPlane * GetStripPlane(int part, int segment, int layer, int id)
Definition: MucGeoMgr.cxx:1907
MucGas * GetGas(int part, int segment, int layer, int upDown, int rpcId, int id)
Definition: MucGeoMgr.cxx:1928
StatusCode InitOffset()
Definition: MucGeoMgr.cxx:56
IMessageSvc * msgSvc
Definition: MucGeoMgr.h:66
StatusCode CreateGap()
Definition: MucGeoMgr.cxx:589
StatusCode CreateAbsorber()
Definition: MucGeoMgr.cxx:453
StatusCode CreateOnlineStripGeo()
Definition: MucGeoMgr.cxx:336
StatusCode CreateBoxCover()
Definition: MucGeoMgr.cxx:1726
MucBoxCover * GetBoxCover(int part, int segment, int layer, int upDown, int id)
Definition: MucGeoMgr.cxx:1942
MucBakelite * GetBakelite(int part, int segment, int layer, int upDown, int rpcId, int id)
Definition: MucGeoMgr.cxx:1935
StatusCode CreateBakelite()
Definition: MucGeoMgr.cxx:1586
StatusCode CreateStripPlane()
Definition: MucGeoMgr.cxx:949
MucStrip * GetStrip(int part, int segment, int layer, int id)
Definition: MucGeoMgr.cxx:1914
StatusCode CreateStrip()
Definition: MucGeoMgr.cxx:1200
MucBox * GetBox(int part, int segment, int layer, int id)
Definition: MucGeoMgr.cxx:1900
bool CheckBoxOffset(int part, int segment, int layer, int axis, double offset)
Definition: MucGeoMgr.cxx:143
StatusCode CreateBox()
Definition: MucGeoMgr.cxx:739
StatusCode CreateEntities()
Definition: MucGeoMgr.cxx:222
StatusCode CreateRootGeo()
Definition: MucGeoMgr.cxx:325
MucRpc * GetRpc(int part, int segment, int layer, int upDown, int id)
Definition: MucGeoMgr.cxx:1921
Definition: MucRpc.h:21