Belle II Software release-09-00-11
GeometryPar.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11/* KLM headers. */
12#include <klm/bklm/geometry/Module.h>
13#include <klm/dbobjects/bklm/BKLMGeometryPar.h>
14
15/* CLHEP headers. */
16#include <CLHEP/Vector/ThreeVector.h>
17
18/* C++ headers. */
19#include <map>
20#include <vector>
21
22namespace Belle2 {
28 class GearDir;
29
30 namespace bklm {
31
33
38
39 public:
40
42 static GeometryPar* instance(void);
43
45 static GeometryPar* instance(const GearDir&);
46
48 static GeometryPar* instance(const BKLMGeometryPar&);
49
51 bool doBeamBackgroundStudy(void) const
52 {
54 }
55
57 double getLayerInnerRadius(int layer) const;
58
60 double getLayerOuterRadius(int layer) const;
61
63 const CLHEP::Hep3Vector getGapHalfSize(int layer, bool hasChimney) const;
64
66 const CLHEP::Hep3Vector getModuleHalfSize(int layer, bool hasChimney) const;
67
69 const CLHEP::Hep3Vector getModuleInteriorHalfSize1(int layer, bool hasChimney) const;
70
72 const CLHEP::Hep3Vector getModuleInteriorHalfSize2(int layer, bool hasChimney) const;
73
75 const CLHEP::Hep3Vector getElectrodeHalfSize(int layer, bool hasChimney) const;
76
78 const CLHEP::Hep3Vector getGasHalfSize(int layer, bool hasChimney) const;
79
81 const CLHEP::Hep3Vector getAirHalfSize(int layer, bool hasChimney) const;
82
84 const CLHEP::Hep3Vector getScintEnvelopeHalfSize(int layer, bool hasChimney) const;
85
87 const CLHEP::Hep3Vector getScintEnvelopeOffset(int layer, bool hasChimney) const;
88
91 int getScintEnvelopeOffsetSign(int layer) const
92 {
93 return m_ScintEnvelopeOffsetSign[layer - 1];
94 }
95
97 double getPolystyreneOffsetX(void) const;
98
100 double getScintTiO2ThicknessTop(void) const
101 {
103 }
104
106 double getScintTiO2ThicknessSide(void) const
107 {
109 }
110
112 double getScintHalfHeight(void) const
113 {
114 return 0.5 * m_ScintHeight;
115 }
116
118 double getScintHalfWidth(void) const
119 {
120 return 0.5 * m_ScintWidth;
121 }
122
124 double getScintBoreRadius(void) const
125 {
126 return m_ScintBoreRadius;
127 }
128
130 double getScintFiberRadius(void) const
131 {
132 return m_ScintFiberRadius;
133 }
134
136 double getGapMiddleRadius(int layer) const;
137
139 double getModuleMiddleRadius(int layer) const;
140
142 double getActiveMiddleRadius(int section, int sector, int layer) const;
143
145 bool getModuleFlip(int section, int sector, int layer) const
146 {
147 return m_IsFlipped[section][sector - 1][layer - 1];
148 }
149
151 double getRotation(void) const
152 {
153 return m_Rotation;
154 }
155
157 double getOffsetZ(void) const
158 {
159 return m_OffsetZ;
160 }
161
163 double getPhi(void) const
164 {
165 return m_Phi;
166 }
167
169 double getSolenoidOuterRadius(void) const
170 {
172 }
173
175 int getNSector(void) const
176 {
177 return m_NSector;
178 }
179
181 double getHalfLength(void) const
182 {
183 return m_HalfLength;
184 }
185
187 double getOuterRadius(void) const
188 {
189 return m_OuterRadius;
190 }
191
193 int getNLayer(void) const
194 {
195 return m_NLayer;
196 }
197
199 double getIronNominalHeight(void) const
200 {
201 return m_IronNominalHeight;
202 }
203
205 double getIronActualHeight(void) const
206 {
207 return m_IronActualHeight;
208 }
209
211 double getGap1InnerRadius(void) const
212 {
213 return m_Gap1InnerRadius;
214 }
215
217 double getGap1NominalHeight(void) const
218 {
219 return m_Gap1NominalHeight;
220 }
221
223 double getGap1ActualHeight(void) const
224 {
225 return m_Gap1ActualHeight;
226 }
227
229 double getGap1IronWidth(void) const
230 {
231 return m_Gap1IronWidth;
232 }
233
235 double getGapLength(void) const
236 {
237 return m_GapLength;
238 }
239
241 double getGapNominalHeight(void) const
242 {
243 return m_GapNominalHeight;
244 }
245
247 double getGapActualHeight(void) const
248 {
249 return m_GapActualHeight;
250 }
251
253 double getGapIronWidth(void) const
254 {
255 return m_GapIronWidth;
256 }
257
259 double getGapInnerRadius(void) const
260 {
261 return m_GapInnerRadius;
262 }
263
265 int getNZStrips(bool isChimney) const
266 {
267 return (isChimney ? m_NZStripsChimney : m_NZStrips);
268 }
269
271 int getNPhiStrips(int layer) const;
272
274 int getNZScints(bool isChimney) const
275 {
276 return (isChimney ? m_NZScintsChimney : m_NZScints);
277 }
278
280 int getNPhiScints(int layer) const;
281
284 {
286 }
287
290 {
292 }
293
295 double getModuleLength(void) const
296 {
297 return m_ModuleLength;
298 }
299
301 double getModuleLengthChimney(void) const
302 {
304 }
305
307 double getModuleCoverHeight(void) const
308 {
309 return m_ModuleCoverHeight;
310 }
311
313 double getModuleCopperHeight(void) const
314 {
316 }
317
319 double getModuleFoamHeight(void) const
320 {
321 return m_ModuleFoamHeight;
322 }
323
325 double getModuleMylarHeight(void) const
326 {
327 return m_ModuleMylarHeight;
328 }
329
331 double getModuleGlassHeight(void) const
332 {
333 return m_ModuleGlassHeight;
334 }
335
337 double getModuleGasHeight(void) const
338 {
339 return m_ModuleGasHeight;
340 }
341
343 double getModuleHeight(void) const
344 {
345 return m_ModuleHeight;
346 }
347
349 double getModuleFrameWidth(void) const
350 {
351 return m_ModuleFrameWidth;
352 }
353
355 double getModuleFrameThickness(void) const
356 {
358 }
359
361 double getModuleGasSpacerWidth(void) const
362 {
364 }
365
367 double getModuleElectrodeBorder(void) const
368 {
370 }
371
373 const CLHEP::Hep3Vector getChimneyHalfSize(int layer) const;
374
376 const CLHEP::Hep3Vector getChimneyPosition(int layer) const;
377
379 double getChimneyCoverThickness(void) const
380 {
382 }
383
386 {
388 }
389
392 {
394 }
395
398 {
400 }
401
404 {
406 }
407
409 double getChimneyPipeInnerRadius(void) const
410 {
412 }
413
415 double getChimneyPipeOuterRadius(void) const
416 {
418 }
419
421 double getRibThickness(void) const
422 {
423 return m_RibThickness;
424 }
425
427 double getCablesWidth(void) const
428 {
429 return m_CablesWidth;
430 }
431
433 double getBraceWidth(void) const
434 {
435 return m_BraceWidth;
436 }
437
439 double getBraceWidthChimney(void) const
440 {
441 return m_BraceWidthChimney;
442 }
443
445 const CLHEP::Hep3Vector getSupportPlateHalfSize(bool) const;
446
448 double getBracketWidth(void) const
449 {
450 return m_BracketWidth;
451 }
452
454 double getBracketThickness(void) const
455 {
456 return m_BracketThickness;
457 }
458
460 double getBracketLength(void) const
461 {
462 return m_BracketLength;
463 }
464
466 double getBracketRibWidth(void) const
467 {
468 return m_BracketRibWidth;
469 }
470
472 double getBracketRibThickness(void) const
473 {
475 }
476
478 double getBracketInnerRadius(void) const
479 {
481 }
482
484 double getBracketZPosition(int, bool) const;
485
487 double getBracketCutoutDphi(void) const
488 {
489 return m_BracketCutoutDphi;
490 }
491
493 int getNReadoutStation(void) const
494 {
495 return m_NReadoutStation;
496 }
497
499 bool getReadoutStationIsPhi(int station) const
500 {
501 return m_ReadoutStationIsPhi[station - 1];
502 }
503
505 double getReadoutStationPosition(int station) const
506 {
507 return m_ReadoutStationPosition[station - 1];
508 }
509
511 const CLHEP::Hep3Vector getReadoutContainerHalfSize(void) const;
512
514 const CLHEP::Hep3Vector getReadoutCarrierHalfSize(void) const;
515
517 const CLHEP::Hep3Vector getReadoutPreamplifierHalfSize(void) const;
518
521 {
522 return m_ReadoutPreamplifierPosition.size();
523 }
524
526 double getReadoutPreamplifierPosition(int preamp) const
527 {
528 return m_ReadoutPreamplifierPosition[preamp - 1];
529 }
530
532 const CLHEP::Hep3Vector getReadoutConnectorsHalfSize(void) const;
533
536 {
538 }
539
541 double getMPPCHousingRadius(void) const
542 {
543 return m_MPPCHousingRadius;
544 }
545
547 double getMPPCHousingHalfLength(void) const
548 {
549 return 0.5 * m_MPPCHousingLength;
550 }
551
553 double getMPPCHalfLength(void) const
554 {
555 return 0.5 * m_MPPCLength;
556 }
557
559 double getMPPCHalfWidth(void) const
560 {
561 return 0.5 * m_MPPCWidth;
562 }
563
565 double getMPPCHalfHeight(void) const
566 {
567 return 0.5 * m_MPPCHeight;
568 }
569
571 bool hasRPCs(int layer) const;
572
574 const Module* findModule(int section, int sector, int layer) const;
575
577 const HepGeom::Transform3D getModuleAlignment(int section, int sector, int layer) const;
578
580 const HepGeom::Transform3D getModuleDisplacedGeo(int section, int sector, int layer) const;
581
587 double getBKLMLayerArea(int section, int sector, int layer) const;
588
589 private:
590
592 explicit GeometryPar(const GearDir&);
593
595 explicit GeometryPar(const Belle2::BKLMGeometryPar&);
596
599
602
604 ~GeometryPar();
605
607 void clear();
608
610 void read(const GearDir&);
611
613 void readFromDB(const BKLMGeometryPar&);
614
616 void calculate();
617
621 void readAlignmentFromDB();
622
626
631 HepGeom::Transform3D getTransformFromRigidBodyParams(double dU, double dV, double dW, double dAlpha, double dBeta, double dGamma);
632
635
638
641
643 double m_OffsetZ;
644
646 double m_Phi;
647
650
653
656
659
662
665
668
671
674
677
680
683
686
689
692
695
698
701
704
707
710
713
716
719
723
726
729
732
735
738
741
744
747
750
753
756
759
762
765
768
771
774
777
780
783
786
789
792
795
798
801
804
807
810
813
816
819
822
825
828
831
834
837
840
843
846
849
852
855
858
861
864
867
870
873
876
879
882
884 bool m_ReadoutStationIsPhi[NSTATION];
885
887 double m_ReadoutStationPosition[NSTATION];
888
891
894
897
900
903
906
909
912
915
917 std::vector<double> m_ReadoutPreamplifierPosition;
918
921
924
927
930
933
936
939
942
945
948
951
954
957
960
962 std::map<int, Module*> m_Modules;
963
965 std::map<int, HepGeom::Transform3D> m_Alignments;
966
968 std::map<int, HepGeom::Transform3D> m_Displacements;
969
972
973 };
974
975 } // end of namespace bklm
976
978} // end of namespace Belle2
static constexpr int getMaximalLayerNumber()
Get maximal layer number (1-based).
static constexpr int getMaximalSectorNumber()
Get maximal sector number (1-based).
The Class for BKLM geometry.
GearDir is the basic class used for accessing the parameter store.
Definition: GearDir.h:31
Provides BKLM geometry parameters for simulation, reconstruction etc (from Gearbox or DataBase)
Definition: GeometryPar.h:37
double getScintBoreRadius(void) const
Get the radius of the cylindrical central bore in a scintillator strip.
Definition: GeometryPar.h:124
bool doBeamBackgroundStudy(void) const
Get the beam background study flag.
Definition: GeometryPar.h:51
double m_LocalReconstructionShiftX[2][BKLMElementNumbers::getMaximalSectorNumber()][BKLMElementNumbers::getMaximalLayerNumber()]
Reconstruction dx in local system. displacement, not alignment.
Definition: GeometryPar.h:950
double m_GapInnerRadius
Radius of the inner tangent circle of virtual gap 0 (assuming equal-height layers)
Definition: GeometryPar.h:700
double m_BracketRibWidth
width of the innermost-module support plate's bracket's rib
Definition: GeometryPar.h:866
double m_ScintWidth
width of one scintillator strip (cm), including the TiO2 coating
Definition: GeometryPar.h:788
double m_LocalReconstructionShiftZ[2][BKLMElementNumbers::getMaximalSectorNumber()][BKLMElementNumbers::getMaximalLayerNumber()]
Reconstruction dz in local system. displacement, not alignment.
Definition: GeometryPar.h:956
int m_NZStripsChimney
number of z-measuring cathode strips in a chimney-sector RPC module
Definition: GeometryPar.h:712
double m_ReadoutConnectorsHeight
Height of the readout connectors pair.
Definition: GeometryPar.h:926
double getBracketThickness(void) const
Get the thickness of the layer-0 support plate's bracket.
Definition: GeometryPar.h:454
~GeometryPar()
Hidden destructor.
Definition: GeometryPar.cc:69
double m_SupportPlateLengthChimney
length of the innermost-module support plate in the chimney sector
Definition: GeometryPar.h:854
bool m_HasRPCs[BKLMElementNumbers::getMaximalLayerNumber()]
Flag to indicate whether layer contains RPCs (true) or scintillators (false)
Definition: GeometryPar.h:947
double getModuleFoamHeight(void) const
Get the height of the module's transmission-line foam (2 per module)
Definition: GeometryPar.h:319
double m_ChimneyPipeInnerRadius
inner radius of the chimney pipe
Definition: GeometryPar.h:827
double getBKLMLayerArea(int section, int sector, int layer) const
Get layer area for BKLM.
Definition: GeometryPar.cc:586
double m_BracketLength
length of the innermost-module support plate's bracket
Definition: GeometryPar.h:863
double getGapInnerRadius(void) const
Get the radius of the inner tangent circle of gap 1 (next-to-innermost)
Definition: GeometryPar.h:259
double m_MaximalZStripLength
maximal Z strip length (for scintillators).
Definition: GeometryPar.h:737
double m_ReadoutContainerHeight
Height of the readout station's container.
Definition: GeometryPar.h:896
double m_ReadoutCarrierHeight
Height of the readout carrier card.
Definition: GeometryPar.h:905
double m_ModuleLengthChimney
length along z of the module in the chimney sector
Definition: GeometryPar.h:743
double getModuleMylarHeight(void) const
Get the height of the module's insulating mylar (2 per module)
Definition: GeometryPar.h:325
const CLHEP::Hep3Vector getReadoutContainerHalfSize(void) const
Get the size (dx,dy,dz) of the readout container.
Definition: GeometryPar.cc:711
void readDisplacedGeoFromDB()
Initialize and Updates displacements parameters from DB for geometry constructor, registers itself fo...
Definition: GeometryPar.cc:801
double m_BracketInnerRadius
inner radius of the innermost-module support plate's bracket
Definition: GeometryPar.h:875
double m_BracketWidth
width of the innermost-module support plate's bracket
Definition: GeometryPar.h:857
double m_BraceWidthChimney
width of the central brace in the middle of the cable-services channel in the chimney sector
Definition: GeometryPar.h:842
int m_NPhiStrips[BKLMElementNumbers::getMaximalLayerNumber()]
Number of phi-readout RPC strips in each layer.
Definition: GeometryPar.h:703
double m_ReadoutContainerLength
Length of the readout station's container.
Definition: GeometryPar.h:890
double m_Gap1IronWidth
Width (at the outer radius) of the adjacent structural iron on either side of innermost gap.
Definition: GeometryPar.h:685
double getModuleFrameWidth(void) const
Get the width of the module's perimeter aluminum frame.
Definition: GeometryPar.h:349
double getMPPCHousingRadius(void) const
Get the MPPC housing radius.
Definition: GeometryPar.h:541
double getLayerOuterRadius(int layer) const
Get the outer radius of specified layer.
Definition: GeometryPar.cc:500
double getModuleLength(void) const
Get the length along z of the module.
Definition: GeometryPar.h:295
double getChimneyShieldInnerRadius(void) const
Get the inner radius of the chimney radiation shield.
Definition: GeometryPar.h:397
double getGapNominalHeight(void) const
Get the nominal height of the outer gaps.
Definition: GeometryPar.h:241
double getIronNominalHeight(void) const
Get the nominal height of a layer's structural iron.
Definition: GeometryPar.h:199
const CLHEP::Hep3Vector getModuleHalfSize(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the detector module of specified layer.
Definition: GeometryPar.cc:522
double getScintHalfHeight(void) const
Get the height of the entire volume of a scintillator strip (including TiO2 coating)
Definition: GeometryPar.h:112
int getNZStrips(bool isChimney) const
Get the number of z-measuring cathode strips in an RPC module.
Definition: GeometryPar.h:265
double m_IronActualHeight
Actual height of a layer's stuctural iron.
Definition: GeometryPar.h:667
double m_ZStripWidth[BKLMElementNumbers::getMaximalLayerNumber()]
Width of the z strips on each layer.
Definition: GeometryPar.h:728
double m_ReadoutPreamplifierWidth
Width of the preamplifier card.
Definition: GeometryPar.h:911
double m_IronNominalHeight
Nominal height of a layer's structural iron.
Definition: GeometryPar.h:664
const HepGeom::Transform3D getModuleAlignment(int section, int sector, int layer) const
Get the alignment transformation of a module.
Definition: GeometryPar.cc:757
const CLHEP::Hep3Vector getModuleInteriorHalfSize1(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the detector module's interior volume 1.
Definition: GeometryPar.cc:530
const Module * findModule(int section, int sector, int layer) const
Get the pointer to the definition of a module.
Definition: GeometryPar.cc:750
double getScintTiO2ThicknessTop(void) const
Get the thickness of the inactive TiO2-polystyrene coating on top (broad) surface of a scintillator s...
Definition: GeometryPar.h:100
double m_ScintHeight
height of one scintillator strip (cm), including the TiO2 coating
Definition: GeometryPar.h:791
int getNLayer(void) const
Get the number of modules in one sector.
Definition: GeometryPar.h:193
double m_ChimneyHousingInnerRadius
inner radius of the chimney housing
Definition: GeometryPar.h:815
double m_ModuleFoamHeight
height of a detector module's transmission-line foam
Definition: GeometryPar.h:752
std::map< int, Module * > m_Modules
map of <volumeIDs, pointers to defined modules>
Definition: GeometryPar.h:962
int m_ScintEnvelopeOffsetSign[BKLMElementNumbers::getMaximalLayerNumber()]
Sign (+/-1) of scintillator-envelope's shift along y axis within its enclosing module for MPPC placem...
Definition: GeometryPar.h:722
double m_BracketRibThickness
thickness of the innermost-module support plate's bracket's rib
Definition: GeometryPar.h:869
double m_Gap1NominalHeight
Nominal height of the innermost gap.
Definition: GeometryPar.h:673
int getNPhiScints(int layer) const
Get the number of phi-measuring scintillators in a scintillator module.
Definition: GeometryPar.cc:579
double getScintHalfWidth(void) const
Get the height of the entire volume of a scintillator strip (including TiO2 coating)
Definition: GeometryPar.h:118
const CLHEP::Hep3Vector getScintEnvelopeOffset(int layer, bool hasChimney) const
Get the shift (dx,dy,dz) of the scintillator detector module's scintillator envelope within its enclo...
Definition: GeometryPar.cc:662
bool hasRPCs(int layer) const
Determine if the sensitive detectors in a given layer are RPCs (=true) or scintillators (=false)
Definition: GeometryPar.cc:743
double getMPPCHousingHalfLength(void) const
Get the MPPC housing half-length.
Definition: GeometryPar.h:547
int getNReadoutPreamplifierPosition(void) const
Get the number of preamplifier positions along the length of the carrier card.
Definition: GeometryPar.h:520
double m_ScintFiberRadius
radius (cm) of the central WLS fiber in the scintillator strip
Definition: GeometryPar.h:797
double m_ZScintDLength[BKLMElementNumbers::getMaximalLayerNumber()][NZSCINT]
Shortening of the nominal length of the z scintillators.
Definition: GeometryPar.h:731
double m_MPPCLength
MPPC length.
Definition: GeometryPar.h:938
int getNReadoutStation(void) const
Get the number of preamplifier readout stations.
Definition: GeometryPar.h:493
double getGap1NominalHeight(void) const
Get the nominal height of the innermost gap.
Definition: GeometryPar.h:217
double getScintFiberRadius(void) const
Get the radius of the cylindrical central WLS fiber in a scintillator strip.
Definition: GeometryPar.h:130
double m_SupportPlateLength
length of the innermost-module support plate
Definition: GeometryPar.h:851
const CLHEP::Hep3Vector getScintEnvelopeHalfSize(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the scintillator detector module's scintillator envelope.
Definition: GeometryPar.cc:571
GeometryPar(GeometryPar &)
Hidden copy constructor.
double m_ModuleMylarHeight
height of a detector module's mylar insulation
Definition: GeometryPar.h:755
const CLHEP::Hep3Vector getChimneyPosition(int layer) const
Get the position of the chimney hole in the specified layer.
Definition: GeometryPar.cc:679
double getGapIronWidth(void) const
Get the width (at the outer radius) of the adjacent structural iron on either side of a gap.
Definition: GeometryPar.h:253
double m_ModuleFrameThickness
thickness of a detector module's frame ("C" shape - thickness of vertical leg)
Definition: GeometryPar.h:773
int m_NPhiScints[BKLMElementNumbers::getMaximalLayerNumber()]
Number of phi-readout scintillators in each layer.
Definition: GeometryPar.h:706
GeometryPar & operator=(const GeometryPar &)
Hidden copy assignment.
double getBracketWidth(void) const
Get the width of the layer-0 support plate's bracket.
Definition: GeometryPar.h:448
double m_ChimneyShieldInnerRadius
inner radius of the chimney shield
Definition: GeometryPar.h:821
double getGap1InnerRadius(void) const
Get the radius of the inner tangent circle of gap 0 (innermost)
Definition: GeometryPar.h:211
std::map< int, HepGeom::Transform3D > m_Displacements
map of <volumeIDs, displacement Transform3D>
Definition: GeometryPar.h:968
double getOuterRadius(void) const
Get the radius of the inscribed circle of the outer polygon.
Definition: GeometryPar.h:187
double getModuleGasHeight(void) const
Get the height of the module's gas gap (2 per module)
Definition: GeometryPar.h:337
double getOffsetZ(void) const
Get the global shift along a of the entire BKLM.
Definition: GeometryPar.h:157
double m_Rotation
Global rotation about z of the BKLM.
Definition: GeometryPar.h:637
int m_NReadoutStation
Number of preamplifier readout stations.
Definition: GeometryPar.h:881
double getBracketZPosition(int, bool) const
Get the position of a layer-0 support plate's bracket.
Definition: GeometryPar.cc:699
double m_ModulePolystyreneOuterHeight
height of the outer polystyrene-filler sheet
Definition: GeometryPar.h:785
double getReadoutConnectorsPosition(void) const
Get the position of the readout connectors pair along the length of the carrier card.
Definition: GeometryPar.h:535
double getChimneyPipeOuterRadius(void) const
Get the outer radius of the chimney pipe.
Definition: GeometryPar.h:415
bool getReadoutStationIsPhi(int station) const
Get the selector for phi (true) or z (false) readout station.
Definition: GeometryPar.h:499
const CLHEP::Hep3Vector getReadoutPreamplifierHalfSize(void) const
Get the size (dx,dy,dz) of the preamplifier card.
Definition: GeometryPar.cc:727
double getBracketLength(void) const
Get the length of the layer-0 support plate's bracket.
Definition: GeometryPar.h:460
int getNPhiStrips(int layer) const
Get the number of phi-measuring cathode strips in an RPC module.
int getNZScints(bool isChimney) const
Get the number of z-measuring scintillators in a scintillator module.
Definition: GeometryPar.h:274
double getGap1ActualHeight(void) const
Get the actual height of the innermost gap.
Definition: GeometryPar.h:223
double m_ChimneyLength
length along z of the chimney hole
Definition: GeometryPar.h:806
double getModuleLengthChimney(void) const
Get the length along z of the module.
Definition: GeometryPar.h:301
double getPolystyreneOffsetX(void) const
Get the radial offset of the scintillator detector module's active envelope due to difference in poly...
Definition: GeometryPar.cc:615
double m_ReadoutContainerWidth
Width of the readout station's container.
Definition: GeometryPar.h:893
double m_OffsetZ
Global offset along z of the BKLM.
Definition: GeometryPar.h:643
double getReadoutStationPosition(int station) const
Get the position of each readout station.
Definition: GeometryPar.h:505
double m_ModuleGasSpacerWidth
width of a detector module's spacer
Definition: GeometryPar.h:776
double m_PhiStripWidth[BKLMElementNumbers::getMaximalLayerNumber()]
Width of the phi strips on each layer.
Definition: GeometryPar.h:725
double getModuleCoverHeight(void) const
Get the height of the module's aluminum cover (2 per module)
Definition: GeometryPar.h:307
const CLHEP::Hep3Vector getReadoutConnectorsHalfSize(void) const
Get the size (dx,dy,dz) of the readout connectors pair.
Definition: GeometryPar.cc:735
double getRibThickness(void) const
Get the thickness of the radial rib that supports the solenoid / inner detectors.
Definition: GeometryPar.h:421
int getNSector(void) const
Get the number of sectors of the BKLM.
Definition: GeometryPar.h:175
bool getModuleFlip(int section, int sector, int layer) const
Get the flip (180-degrees about z axis) of a particular BKLM module.
Definition: GeometryPar.h:145
double m_OuterRadius
Radius of the circle tangent to the sides of the outer polygon.
Definition: GeometryPar.h:655
static GeometryPar * m_Instance
static pointer to the singleton instance of this class
Definition: GeometryPar.h:971
double m_BracketThickness
thickness of the innermost-module support plate's bracket
Definition: GeometryPar.h:860
double getModuleElectrodeBorder(void) const
Get the size of the border between a detector module's perimeter and electrode.
Definition: GeometryPar.h:367
double m_ModuleGlassHeight
height of a detector module's glass electrode
Definition: GeometryPar.h:761
const CLHEP::Hep3Vector getModuleInteriorHalfSize2(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the scintillator detector module's polystyrene filler.
Definition: GeometryPar.cc:539
double getRotation(void) const
Get the global rotation angle about z of the entire BKLM.
Definition: GeometryPar.h:151
double m_MaximalPhiStripLength
Maximal phi strip length (for scintillators).
Definition: GeometryPar.h:734
double m_RibThickness
thickness of the radial rib that supports the solenoid / inner detectors
Definition: GeometryPar.h:833
double m_ScintTiO2ThicknessTop
thickness (cm) of the TiO2 coating on the top (and bottom) of the scintillator strip
Definition: GeometryPar.h:800
double getHalfLength(void) const
Get the half-length along z of the BKLM.
Definition: GeometryPar.h:181
double m_ModuleReadoutHeight
height of a detector module's readout
Definition: GeometryPar.h:758
const CLHEP::Hep3Vector getGapHalfSize(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the gap [=slot] of specified layer.
Definition: GeometryPar.cc:505
double m_ModuleLength
length along z of the module
Definition: GeometryPar.h:740
double m_HalfLength
Half-length along z of the BKLM.
Definition: GeometryPar.h:658
double getBraceWidthChimney(void) const
Get the width of the brace in the middle of the cable-services channel in the chimney sector.
Definition: GeometryPar.h:439
double m_ReadoutPreamplifierHeight
Height of the preamplifier card.
Definition: GeometryPar.h:914
double getBracketRibThickness(void) const
Get the thickness of the layer-0 support plate's bracket's rib.
Definition: GeometryPar.h:472
double m_ChimneyWidth
width of the chimney hole
Definition: GeometryPar.h:809
double m_LayerHeight
Height of a layer: internal use only.
Definition: GeometryPar.h:682
double m_ChimneyShieldOuterRadius
outer radius of the chimney shield
Definition: GeometryPar.h:824
int m_NZScintsChimney
number of z-measuring scintillators in a chimney-sector scintillator module
Definition: GeometryPar.h:718
double getChimneyHousingInnerRadius(void) const
Get the inner radius of the chimney housing.
Definition: GeometryPar.h:385
double m_ReadoutConnectorsLength
Length of the readout connectors pair.
Definition: GeometryPar.h:920
double m_SupportPlateWidth
width of the innermost-module support plate
Definition: GeometryPar.h:845
double m_Layer1Height
Height of layer 0: internal use only.
Definition: GeometryPar.h:679
double m_MPPCHeight
MPPC height.
Definition: GeometryPar.h:944
std::map< int, HepGeom::Transform3D > m_Alignments
map of <volumeIDs, alignment Transform3D>
Definition: GeometryPar.h:965
void readAlignmentFromDB()
Initialize and Updates alignment parameters from DB for reconstruction, that is for Module constructi...
Definition: GeometryPar.cc:771
int m_NZStrips
number of z-measuring cathode strips in a standard RPC module
Definition: GeometryPar.h:709
double m_SectorRotation[2][BKLMElementNumbers::getMaximalSectorNumber()]
Global rotation angle of a sector.
Definition: GeometryPar.h:640
double m_BracketInset
distance from support plate's end of bracket
Definition: GeometryPar.h:872
double getMPPCHalfLength(void) const
Get the MPPC half-length.
Definition: GeometryPar.h:553
double getIronActualHeight(void) const
Get the actual height of a layer's structural iron.
Definition: GeometryPar.h:205
int m_NLayer
Number of layers in one sector.
Definition: GeometryPar.h:661
double getPhi(void) const
Get the starting angle of the BKLM's polygon shape.
Definition: GeometryPar.h:163
const CLHEP::Hep3Vector getSupportPlateHalfSize(bool) const
Get the size of the layer-0 support plate.
Definition: GeometryPar.cc:686
double m_GapLength
Length along z of each gap.
Definition: GeometryPar.h:688
double m_MPPCHousingRadius
MPPC housing radius.
Definition: GeometryPar.h:932
double m_MPPCHousingLength
MPPC housing length.
Definition: GeometryPar.h:935
double getMaximalZStripLength() const
Get maximal Z strip length (for scintillators).
Definition: GeometryPar.h:289
double m_CablesWidth
width of the cable-services channel at each end
Definition: GeometryPar.h:836
double getModuleGlassHeight(void) const
Get the height of the module's glass electrode (4 per module)
Definition: GeometryPar.h:331
double m_ScintBoreRadius
radius (cm) of the central bore in the scintillator strip
Definition: GeometryPar.h:794
double m_ReadoutCarrierLength
Length of the readout carrier card.
Definition: GeometryPar.h:899
double m_ReadoutConnectorsWidth
Width of the readout connectors pair.
Definition: GeometryPar.h:923
double getGap1IronWidth(void) const
Get the width (at the outer radius) of the adjacent structural iron on either side of innermost gap.
Definition: GeometryPar.h:229
double m_GapIronWidth
Width (at the outer radius) of the adjacent structural iron on either side of a gap.
Definition: GeometryPar.h:697
double getModuleCopperHeight(void) const
Get the height of the module's readout or ground copper plane (4 per module)
Definition: GeometryPar.h:313
double m_ReadoutStationPosition[NSTATION]
Position of each readout station along its relevant axis.
Definition: GeometryPar.h:887
double m_ReadoutPreamplifierLength
Length of the preamplifier card.
Definition: GeometryPar.h:908
double m_ModuleGasHeight
height of a detector module's gas gap
Definition: GeometryPar.h:764
double getActiveMiddleRadius(int section, int sector, int layer) const
Get the radial midpoint of the detector module's active volume of specified layer.
Definition: GeometryPar.cc:636
double m_BraceWidth
width of the central brace in the middle of the cable-services channel
Definition: GeometryPar.h:839
const CLHEP::Hep3Vector getChimneyHalfSize(int layer) const
Get the size of the chimney hole in the specified layer.
Definition: GeometryPar.cc:672
double m_ModuleFrameWidth
width of a detector module's frame ("C" shape - width of horizontal leg)
Definition: GeometryPar.h:770
double m_MPPCWidth
MPPC width.
Definition: GeometryPar.h:941
double m_ChimneyHousingOuterRadius
outer radius of the chimney housing
Definition: GeometryPar.h:818
double getCablesWidth(void) const
Get the width of the cable-services channel at each end.
Definition: GeometryPar.h:427
double getGapMiddleRadius(int layer) const
Get the radial midpoint of the gap of specified layer.
Definition: GeometryPar.cc:620
double m_GapNominalHeight
Nominal height of outer gaps.
Definition: GeometryPar.h:691
double getBracketCutoutDphi(void) const
Get the angular width of the layer-0 support plate's bracket's cutout.
Definition: GeometryPar.h:487
double m_ReadoutConnectorsPosition
Position of the readout connectors pair along the length of the carrier card.
Definition: GeometryPar.h:929
double m_ModulePolystyreneInnerHeight
height of the inner polystyrene-filler sheet
Definition: GeometryPar.h:782
double m_ChimneyCoverThickness
thickness of the chimney's iron cover plate
Definition: GeometryPar.h:812
void readFromDB(const BKLMGeometryPar &)
Get geometry parameters from Conditions Database.
Definition: GeometryPar.cc:259
double getChimneyShieldOuterRadius(void) const
Get the outer radius of the chimney radiation shield.
Definition: GeometryPar.h:403
double getChimneyCoverThickness(void) const
Get the thickness of the chimney cover plate.
Definition: GeometryPar.h:379
void clear()
Clear all geometry parameters.
Definition: GeometryPar.cc:74
double m_Phi
Starting angle of the polygon shape.
Definition: GeometryPar.h:646
double getReadoutPreamplifierPosition(int preamp) const
Get the position of a preamplifier along the length of the carrier card.
Definition: GeometryPar.h:526
double getBraceWidth(void) const
Get the width of the brace in the middle of the cable-services channel.
Definition: GeometryPar.h:433
double m_ModuleElectrodeBorder
size of the border between a detector module's perimeter and electrode
Definition: GeometryPar.h:779
double m_Gap1ActualHeight
Actual height of the innermost gap.
Definition: GeometryPar.h:676
std::vector< double > m_ReadoutPreamplifierPosition
Positions of the preamplifiers along the length of the carrier card.
Definition: GeometryPar.h:917
double m_ModuleHeight
height of a detector module
Definition: GeometryPar.h:767
const CLHEP::Hep3Vector getReadoutCarrierHalfSize(void) const
Get the size (dx,dy,dz) of the carrier card.
Definition: GeometryPar.cc:719
void read(const GearDir &)
Get geometry parameters from Gearbox.
Definition: GeometryPar.cc:84
double getModuleGasSpacerWidth(void) const
Get the width of the module's gas-gap's perimeter spacer.
Definition: GeometryPar.h:361
const CLHEP::Hep3Vector getGasHalfSize(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the detector module's gas gaps of specified layer.
Definition: GeometryPar.cc:555
double m_GapActualHeight
Actual height of outer gaps.
Definition: GeometryPar.h:694
const CLHEP::Hep3Vector getElectrodeHalfSize(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the detector module's electrode of specified layer.
Definition: GeometryPar.cc:548
double m_LocalReconstructionShiftY[2][BKLMElementNumbers::getMaximalSectorNumber()][BKLMElementNumbers::getMaximalLayerNumber()]
Reconstruction dy in local system. displacement, not alignment.
Definition: GeometryPar.h:953
static GeometryPar * instance(void)
Static method to get a reference to the singleton GeometryPar instance.
Definition: GeometryPar.cc:27
double m_ModuleCoverHeight
height of a detector module's aluminum cover
Definition: GeometryPar.h:746
double m_Gap1InnerRadius
Radius of the inner tangent circle of the innermost gap.
Definition: GeometryPar.h:670
int getScintEnvelopeOffsetSign(int layer) const
Get the sign (+/-1) of scintillator-envelope's shift along y axis within its enclosing module for MPP...
Definition: GeometryPar.h:91
double m_SolenoidOuterRadius
Outer radius of the solenoid.
Definition: GeometryPar.h:652
double getBracketRibWidth(void) const
Get the width of the layer-0 support plate's bracket's rib.
Definition: GeometryPar.h:466
double getModuleMiddleRadius(int layer) const
Get the radial midpoint of the detector module of specified layer.
Definition: GeometryPar.cc:628
double getMPPCHalfWidth(void) const
Get the MPPC half-width.
Definition: GeometryPar.h:559
double getMPPCHalfHeight(void) const
Get the MPPC half-height.
Definition: GeometryPar.h:565
double getGapLength(void) const
Get the length along z of the module gap.
Definition: GeometryPar.h:235
int m_NSector
Number of sectors (=8 : octagonal)
Definition: GeometryPar.h:649
bool m_DoBeamBackgroundStudy
Flag for enabling beam background study (=use bkg sensitive-detector function too)
Definition: GeometryPar.h:634
double m_ChimneyPipeOuterRadius
outer radius of the chimney pipe
Definition: GeometryPar.h:830
double getScintTiO2ThicknessSide(void) const
Get the thickness of the inactive TiO2-polystyrene coating on side (short) surface of a scintillator ...
Definition: GeometryPar.h:106
double getModuleFrameThickness(void) const
Get the thickness of the module's perimeter aluminum frame.
Definition: GeometryPar.h:355
double getSolenoidOuterRadius(void) const
Get the outer radius of the solenoid.
Definition: GeometryPar.h:169
double getChimneyPipeInnerRadius(void) const
Get the inner radius of the chimney pipe.
Definition: GeometryPar.h:409
double getModuleHeight(void) const
Get the height of the module.
Definition: GeometryPar.h:343
const HepGeom::Transform3D getModuleDisplacedGeo(int section, int sector, int layer) const
Get the displacement transformation of a module.
Definition: GeometryPar.cc:764
double getBracketInnerRadius(void) const
Get the inner radius of the layer-0 support plate's bracket.
Definition: GeometryPar.h:478
double getLayerInnerRadius(int layer) const
Get the inner radius of specified layer.
Definition: GeometryPar.cc:489
double getChimneyHousingOuterRadius(void) const
Get the outer radius of the chimney housing.
Definition: GeometryPar.h:391
bool m_ReadoutStationIsPhi[NSTATION]
Selector for phi (true) or z (false) readout station.
Definition: GeometryPar.h:884
double m_ReadoutCarrierWidth
Width of the readout carrier card.
Definition: GeometryPar.h:902
double getGapActualHeight(void) const
Get the actual height of the outer gaps.
Definition: GeometryPar.h:247
double m_SupportPlateHeight
height of the innermost-module support plate
Definition: GeometryPar.h:848
double m_ScintTiO2ThicknessSide
thickness (cm) of the TiO2 coating on the left (and right) side of the scintillator strip
Definition: GeometryPar.h:803
double m_ModuleCopperHeight
height of a detector module's copper readout or ground plane
Definition: GeometryPar.h:749
bool m_IsFlipped[2][BKLMElementNumbers::getMaximalSectorNumber()][BKLMElementNumbers::getMaximalLayerNumber()]
Flag to indicate whether a module is flipped (true) or not (false) by 180 degrees about the z axis.
Definition: GeometryPar.h:959
double m_BracketCutoutDphi
angular width of the innermost-module support plate's bracket's cutout
Definition: GeometryPar.h:878
HepGeom::Transform3D getTransformFromRigidBodyParams(double dU, double dV, double dW, double dAlpha, double dBeta, double dGamma)
Convert 6 rigid body params (alignment/displacement) to corresponding Transform3D Angles in radians,...
Definition: GeometryPar.cc:831
const CLHEP::Hep3Vector getAirHalfSize(int layer, bool hasChimney) const
Get the size (dx,dy,dz) of the scintillator detector module's air filler.
Definition: GeometryPar.cc:564
void calculate()
Calculate additional geometry parameters.
Definition: GeometryPar.cc:394
double getMaximalPhiStripLength() const
Get maximal phi strip length (for scintillators).
Definition: GeometryPar.h:283
int m_NZScints
number of z-measuring scintillators in a standard scintillator module
Definition: GeometryPar.h:715
Define the geometry of a BKLM module Each sector [octant] contains Modules.
Definition: Module.h:76
Abstract base class for different kinds of events.