15 for (
int i = 0;
i < 2; ++
i) {
25 for (
int i = 0;
i < 8; ++
i) {
26 beamParameters.push_back(std::vector<std::pair<double, double> >(2));
38 if (aSubdetector < 0 || aSubdetector > 5) {
40 <<
" [LASBarrelAlignmentParameterSet::GetParameter] ERROR ** Illegal subdetector index: " << aSubdetector <<
"." 44 if (aDisk < 0 || aDisk > 1) {
46 <<
" [LASBarrelAlignmentParameterSet::GetParameter] ERROR ** Illegal endface index: " << aDisk <<
"." 50 if (aParameter < 0 || aParameter > 2) {
52 <<
" [LASBarrelAlignmentParameterSet::GetParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." 57 if (aSubdetector == 0)
59 else if (aSubdetector == 1)
61 else if (aSubdetector == 2)
63 else if (aSubdetector == 3)
65 else if (aSubdetector == 4)
76 if (aBeam < 0 || aBeam > 7) {
78 <<
" [LASBarrelAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal beam index: " << aBeam <<
"." 82 if (aParameter < 0 || aParameter > 1) {
84 <<
" [LASBarrelAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal beam parameter index: " << aParameter
95 std::cout << std::endl <<
" [LASBarrelAlignmentParameterSet::Print] -- Parameter list [rad/mm]: " << std::endl;
99 std::cout <<
" Detector parameters: " << std::endl;
100 std::cout <<
" --------------------" << std::endl;
101 std::cout <<
" Values: PHI1 X1 Y1 PHI2 X2 Y2 " << std::endl;
102 for (
int subdet = 0; subdet < 6; ++subdet) {
104 for (
int par = 0; par < 3; ++par)
107 for (
int par = 0; par < 3; ++par)
113 std::cout <<
" Errors: PHI1 X1 Y1 PHI2 X2 Y2 " << std::endl;
114 for (
int subdet = 0; subdet < 6; ++subdet) {
116 for (
int par = 0; par < 3; ++par)
119 for (
int par = 0; par < 3; ++par)
126 std::cout <<
" Beam parameters: " << std::endl;
127 std::cout <<
" ----------------" << std::endl;
128 std::cout <<
" Values: PHI1 PHI2" << std::endl;
131 for (
int par = 0; par < 2; ++par)
137 std::cout <<
" Errors: PHI1 PHI2" << std::endl;
140 for (
int par = 0; par < 2; ++par)
146 std::cout <<
" [LASBarrelAlignmentParameterSet::Print] -- End parameter list." << std::endl;
std::pair< double, double > & GetParameter(int aSubdetector, int aDisk, int aParameter)
std::vector< std::vector< std::pair< double, double > > > beamParameters
std::vector< std::vector< std::pair< double, double > > > tobPlusParameters
std::vector< std::vector< std::pair< double, double > > > tecMinusParameters
LASBarrelAlignmentParameterSet()
std::vector< std::vector< std::pair< double, double > > > tibPlusParameters
std::vector< std::vector< std::pair< double, double > > > tecPlusParameters
std::pair< double, double > & GetBeamParameter(int aBeam, int aParameter)
std::vector< std::vector< std::pair< double, double > > > tobMinusParameters
std::vector< std::vector< std::pair< double, double > > > tibMinusParameters
static const char * subdetNames[]