ATLAS Offline Software
AFP_ConfigParams.cxx
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 */
5 
7 
8 //-------------------------------------------------------------------------------------------------------------
10 {
11  AFP_SIDCONFIGURATION defsidcfg;
12  defsidcfg.clear();
13  sidcfg[EAS_AFP00]=defsidcfg;
14  sidcfg[EAS_AFP01]=defsidcfg;
15  sidcfg[EAS_AFP02]=defsidcfg;
16  sidcfg[EAS_AFP03]=defsidcfg;
17 
18  AFP_TDCONFIGURATION deftofcfg;
19  deftofcfg.setDefault();
20  tdcfg[EAS_AFP00]=deftofcfg;
21  tdcfg[EAS_AFP01]=deftofcfg; // only stations 0 and 3 have ToF, so these shouldn't be needed
22  tdcfg[EAS_AFP02]=deftofcfg; // however, the code crashes without them
23  tdcfg[EAS_AFP03]=deftofcfg;
24 
27 
28  vecStatNominalZPos.resize(4);
33 }
34 
35 //-------------------------------------------------------------------------------------------------------------
37 {
39  windowPlateAngle = 90.0;
41  setMaterialToBeryllium = false;
42 }
43 
44 //-------------------------------------------------------------------------------------------------------------
46 {
51  bAddVacuumSensors=false;
52 
62 
63 
65 }
66 
67 //-------------------------------------------------------------------------------------------------------------
68 
70 {
71  nBarX1ID=4;
72  nBarX2ID=2;
74  fRadLength=56.78*CLHEP::mm;
76 }
77 
79 {
80  nBarX1ID=1;
81  nBarX2ID=1;
82  nTrainID=4;
84  fRadLength=50.0*CLHEP::mm;
85  fRadYDim=5.0*CLHEP::mm;
88 }
90 {
95  fPixelX1Dim=6.25;
96  fPixelX2Dim=6.25;
97  bApplyBottomCut=true;
98  bEmulateImmersion=true;
99  bEmulateGlue=true;
100 
101  fSkinReflectivity=0.0;
103 
104  mapBarDims.clear();
105 
108  fZPosInRPot=0.0;
109 
110  //setup train info
111  AFPTOF_TRAININFO ti;
112  mapTrainInfo.clear();
113 
115  ti.bUseTaper=true; ti.fTaperAngle=18.0*CLHEP::deg; ti.fTaperOffset=3.0*CLHEP::mm;
116  ti.fLength=-1.0*CLHEP::mm;
117  mapTrainInfo[1]=ti;
118 
120  ti.bUseTaper=true; ti.fTaperAngle=18.0*CLHEP::deg; ti.fTaperOffset=1.0*CLHEP::mm;
121  ti.fLength=-1.0*CLHEP::mm;
122  mapTrainInfo[2]=ti;
123 
125  ti.bUseTaper=false; ti.fTaperAngle=0.0*CLHEP::deg; ti.fTaperOffset=0.0*CLHEP::mm;
126  ti.fLength=-1.0*CLHEP::mm;
127  mapTrainInfo[3]=ti;
128 
130  ti.bUseTaper=false; ti.fTaperAngle=0.0*CLHEP::deg; ti.fTaperOffset=0.0*CLHEP::mm;
131  ti.fLength=-1.0*CLHEP::mm;
132  mapTrainInfo[4]=ti;
133 }
AFP_SIDCONFIGURATION
Definition: AFP_ConfigParams.h:105
AFP_SIDCONFIGURATION::fLayerSpacing
double fLayerSpacing
Definition: AFP_ConfigParams.h:108
EAS_AFP02
@ EAS_AFP02
Definition: AFP_ConfigParams.h:18
AFP_CONSTANTS::Stat_ShiftInYAxis
static constexpr double Stat_ShiftInYAxis
Definition: AFP_constants.h:88
AFP_CONSTANTS::Stat_InnerZDistance
static constexpr double Stat_InnerZDistance
Definition: AFP_constants.h:86
AFP_CONSTANTS::ToF_DistanceToFloor
static constexpr double ToF_DistanceToFloor
Definition: AFP_constants.h:77
ELBT_METALELBOW
@ ELBT_METALELBOW
Definition: AFP_ConfigParams.h:20
AFP_TDCONFIGURATION::fSkinReflectivity
double fSkinReflectivity
Definition: AFP_ConfigParams.h:92
AFP_TDCONFIGURATION::nX2PixCnt
int nX2PixCnt
Definition: AFP_ConfigParams.h:85
AFP_SIDCONFIGURATION::vecChipYLength
std::vector< double > vecChipYLength
Definition: AFP_ConfigParams.h:119
AFP_CONSTANTS::SiT_Chip_y
static constexpr double SiT_Chip_y
Definition: AFP_constants.h:53
AFPTOF_LBARREFDIMENSIONS::setDefaults
void setDefaults()
Definition: AFP_ConfigParams.cxx:69
AFPTOF_LBARREFDIMENSIONS::nBarX1ID
int nBarX1ID
Definition: AFP_ConfigParams.h:52
AFP_HBPCONFIGURATION::windowPlateThickness
double windowPlateThickness
Definition: AFP_ConfigParams.h:129
AFP_CONSTANTS::SiT_Chip_length_y
static constexpr double SiT_Chip_length_y
Definition: AFP_constants.h:49
AFP_TDCONFIGURATION::setDefault
void setDefault()
Definition: AFP_ConfigParams.cxx:89
AFP_CONFIGURATION::sidcfg
std::map< eAFPStation, AFP_SIDCONFIGURATION > sidcfg
Definition: AFP_ConfigParams.h:136
EAS_AFP00
@ EAS_AFP00
Definition: AFP_ConfigParams.h:18
AFP_ConfigParams.h
AFPTOF_LBARREFDIMENSIONS::nBarX2ID
int nBarX2ID
Definition: AFP_ConfigParams.h:53
AFP_TDCONFIGURATION
Definition: AFP_ConfigParams.h:81
AFPTOF_TRAININFO::fTaperAngle
double fTaperAngle
Definition: AFP_ConfigParams.h:40
EAS_AFP01
@ EAS_AFP01
Definition: AFP_ConfigParams.h:18
deg
#define deg
Definition: SbPolyhedron.cxx:17
AFP_TDCONFIGURATION::eType
eLBarType eType
Definition: AFP_ConfigParams.h:82
AFP_CONSTANTS::SiT_Pixel_x
static constexpr double SiT_Pixel_x
Definition: AFP_constants.h:64
AFP_CONSTANTS::SiT_Plate_zsep
static constexpr double SiT_Plate_zsep
Definition: AFP_constants.h:45
AFPTOF_LBARDIMENSIONS::fLBarThickness
double fLBarThickness
Definition: AFP_ConfigParams.h:70
AFP_CONSTANTS::SiT_Plate_amount
static constexpr double SiT_Plate_amount
Definition: AFP_constants.h:18
AFP_CONFIGURATION::vecRPotFloorDistance
std::vector< double > vecRPotFloorDistance
Definition: AFP_ConfigParams.h:139
AFP_CONSTANTS::SiT_Pixel_y
static constexpr double SiT_Pixel_y
Definition: AFP_constants.h:65
AFP_CONSTANTS::SiT_DistanceToFloor
static constexpr double SiT_DistanceToFloor
Definition: AFP_constants.h:19
AFP_CONSTANTS::SiT_Chip_length_x
static constexpr double SiT_Chip_length_x
Definition: AFP_constants.h:48
AFP_CONSTANTS::SiT_Chip_rot
static constexpr double SiT_Chip_rot
Definition: AFP_constants.h:54
AFP_CONSTANTS::ToF_TrainsCnt
static constexpr double ToF_TrainsCnt
Definition: AFP_constants.h:81
AFP_SIDCONFIGURATION::fLayerCount
double fLayerCount
Definition: AFP_ConfigParams.h:107
AFP_CONSTANTS::SiT_Plate_rot_xz
static constexpr double SiT_Plate_rot_xz
Definition: AFP_constants.h:46
AFP_CONSTANTS::Stat_OuterZDistance
static constexpr double Stat_OuterZDistance
Definition: AFP_constants.h:87
AFP_TDCONFIGURATION::fZPosInRPot
double fZPosInRPot
Definition: AFP_ConfigParams.h:100
AFPTOF_LBARDIMENSIONS::nBarX2ID
int nBarX2ID
Definition: AFP_ConfigParams.h:68
AFP_HBPCONFIGURATION::clear
void clear()
Definition: AFP_ConfigParams.cxx:36
AFP_SIDCONFIGURATION::vecSensorXPos
std::vector< double > vecSensorXPos
Definition: AFP_ConfigParams.h:120
AFP_TDCONFIGURATION::bEmulateImmersion
bool bEmulateImmersion
Definition: AFP_ConfigParams.h:89
AFPTOF_TRAININFO::fLength
double fLength
Definition: AFP_ConfigParams.h:41
AFP_SIDCONFIGURATION::vecSensorYPos
std::vector< double > vecSensorYPos
Definition: AFP_ConfigParams.h:121
AFPTOF_TRAININFO::bUseTaper
bool bUseTaper
Definition: AFP_ConfigParams.h:38
AFP_TDCONFIGURATION::bApplyBottomCut
bool bApplyBottomCut
Definition: AFP_ConfigParams.h:88
AFP_SIDCONFIGURATION::bAddVacuumSensors
bool bAddVacuumSensors
Definition: AFP_ConfigParams.h:110
AFP_TDCONFIGURATION::fYPosInRPot
double fYPosInRPot
Definition: AFP_ConfigParams.h:99
AFP_CONSTANTS::ToF_NominalSlope
static constexpr double ToF_NominalSlope
Definition: AFP_constants.h:83
AFP_SIDCONFIGURATION::vecChipYPos
std::vector< double > vecChipYPos
Definition: AFP_ConfigParams.h:116
AFP_CONFIGURATION::tdcfg
std::map< eAFPStation, AFP_TDCONFIGURATION > tdcfg
Definition: AFP_ConfigParams.h:137
AFP_SIDCONFIGURATION::vecXStaggering
std::vector< double > vecXStaggering
Definition: AFP_ConfigParams.h:112
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
AFP_CONSTANTS::Stat_RPotFloorDistance
static constexpr double Stat_RPotFloorDistance
Definition: AFP_constants.h:89
AFPTOF_TRAININFO::fLGuideWidth
double fLGuideWidth
Definition: AFP_ConfigParams.h:42
AFPTOF_TRAININFO::fTaperOffset
double fTaperOffset
Definition: AFP_ConfigParams.h:39
AFPTOF_LBARDIMENSIONS::fLGuideLength
double fLGuideLength
Definition: AFP_ConfigParams.h:74
AFP_CONFIGURATION::vecStatNominalZPos
std::vector< double > vecStatNominalZPos
Definition: AFP_ConfigParams.h:141
AFP_CONSTANTS::SiT_Chip_x
static constexpr double SiT_Chip_x
Definition: AFP_constants.h:52
EAS_AFP03
@ EAS_AFP03
Definition: AFP_ConfigParams.h:18
AFP_TDCONFIGURATION::mapTrainInfo
std::map< int, AFPTOF_TRAININFO > mapTrainInfo
Definition: AFP_ConfigParams.h:95
AFP_TDCONFIGURATION::bEmulateGlue
bool bEmulateGlue
Definition: AFP_ConfigParams.h:90
AFPTOF_LBARDIMENSIONS::nBarX1ID
int nBarX1ID
Definition: AFP_ConfigParams.h:67
AFP_TDCONFIGURATION::eSReflecMode
eSkinReflectivityMode eSReflecMode
Definition: AFP_ConfigParams.h:93
AFP_HBPCONFIGURATION::windowPlatesInsteadOfHB
bool windowPlatesInsteadOfHB
Definition: AFP_ConfigParams.h:130
AFPTOF_LBARREFDIMENSIONS::fLBarThickness
double fLBarThickness
Definition: AFP_ConfigParams.h:54
AFP_SIDCONFIGURATION::vecChipXLength
std::vector< double > vecChipXLength
Definition: AFP_ConfigParams.h:118
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
AFP_CONFIGURATION::clear
void clear()
Definition: AFP_ConfigParams.cxx:9
AFP_SIDCONFIGURATION::clear
void clear()
Definition: AFP_ConfigParams.cxx:45
AFP_CONSTANTS::ToF_ColumnsCnt
static constexpr double ToF_ColumnsCnt
Definition: AFP_constants.h:82
AFP_TDCONFIGURATION::nX1PixCnt
int nX1PixCnt
Definition: AFP_ConfigParams.h:84
AFPTOF_LBARREFDIMENSIONS::fLGuideLength
double fLGuideLength
Definition: AFP_ConfigParams.h:56
AFP_TDCONFIGURATION::mapBarDims
std::map< int, AFPTOF_LBARDIMENSIONS > mapBarDims
Definition: AFP_ConfigParams.h:94
AFP_HBPCONFIGURATION::setMaterialToBeryllium
bool setMaterialToBeryllium
Definition: AFP_ConfigParams.h:131
AFPTOF_LBARDIMENSIONS::fRadYDim
double fRadYDim
Definition: AFP_ConfigParams.h:72
AFP_TDCONFIGURATION::fXFloorDistance
double fXFloorDistance
Definition: AFP_ConfigParams.h:98
AFP_SIDCONFIGURATION::TransInStation
HepGeom::Transform3D TransInStation
Definition: AFP_ConfigParams.h:123
AFP_TDCONFIGURATION::fPixelX1Dim
double fPixelX1Dim
Definition: AFP_ConfigParams.h:86
AFP_TDCONFIGURATION::fPixelX2Dim
double fPixelX2Dim
Definition: AFP_ConfigParams.h:87
AFP_SIDCONFIGURATION::vecYStaggering
std::vector< double > vecYStaggering
Definition: AFP_ConfigParams.h:113
AFPTOF_TRAININFO::fPerpShiftInPixel
double fPerpShiftInPixel
Definition: AFP_ConfigParams.h:43
AFP_HBPCONFIGURATION::windowPlateAngle
double windowPlateAngle
Definition: AFP_ConfigParams.h:129
AFPTOF_LBARDIMENSIONS::nTrainID
int nTrainID
Definition: AFP_ConfigParams.h:69
AFPTOF_LBARDIMENSIONS::fLGuideWidth
double fLGuideWidth
Definition: AFP_ConfigParams.h:73
AFPTOF_LBARDIMENSIONS::fRadLength
double fRadLength
Definition: AFP_ConfigParams.h:71
AFPTOF_LBARREFDIMENSIONS::fRadLength
double fRadLength
Definition: AFP_ConfigParams.h:55
AFP_CONFIGURATION::vecRPotYPos
std::vector< double > vecRPotYPos
Definition: AFP_ConfigParams.h:140
AFP_CONSTANTS::SiT_ZDistanceInRPot
static constexpr double SiT_ZDistanceInRPot
Definition: AFP_constants.h:22
AFP_SIDCONFIGURATION::fSlope
double fSlope
Definition: AFP_ConfigParams.h:106
AFPTOF_LBARDIMENSIONS::setDefaults
void setDefaults()
Definition: AFP_ConfigParams.cxx:78
ESRM_SINGLE
@ ESRM_SINGLE
Definition: AFP_ConfigParams.h:21
AFP_SIDCONFIGURATION::vecChipRotAngle
std::vector< double > vecChipRotAngle
Definition: AFP_ConfigParams.h:117
AFP_TDCONFIGURATION::fAlpha
double fAlpha
Definition: AFP_ConfigParams.h:83
AFPTOF_TRAININFO::nPmtRow
int nPmtRow
Definition: AFP_ConfigParams.h:37
AFP_SIDCONFIGURATION::fZDistanceInRPot
double fZDistanceInRPot
Definition: AFP_ConfigParams.h:109
AFPTOF_TRAININFO
Definition: AFP_ConfigParams.h:25
AFP_SIDCONFIGURATION::vecChipXPos
std::vector< double > vecChipXPos
Definition: AFP_ConfigParams.h:115