16 for (
unsigned int disk = 0; disk < 9; ++disk) {
21 for (
unsigned int par = 0; par < 3; ++par) {
28 for (
unsigned int par = 0; par < 6; ++par) {
48 for (
unsigned int par = 0; par < 2; ++par) {
66 if (aSubdetector < 0 || aSubdetector > 1) {
68 <<
" [LASEndcapAlignmentParameterSet::GetDiskParameter] ERROR ** Illegal subdetector index: " << aSubdetector
72 if (aDisk < 0 || aDisk > 8) {
74 <<
" [LASEndcapAlignmentParameterSet::GetDiskParameter] ERROR ** Illegal disk index: " << aDisk <<
"." 78 if (aParameter < 0 || aParameter > 2) {
80 <<
" [LASEndcapAlignmentParameterSet::GetDiskParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." 84 if (aSubdetector == 0)
98 if (aSubdetector < 0 || aSubdetector > 1) {
100 <<
" [LASEndcapAlignmentParameterSet::GetGlobalParameter] ERROR ** Illegal subdetector index: " << aSubdetector
104 if (aParameter < 0 || aParameter > 5) {
106 <<
" [LASEndcapAlignmentParameterSet::GetGlobalParameter] ERROR ** Illegal parameter index: " << aParameter
110 if (aSubdetector == 0)
126 if (aSubdetector < 0 || aSubdetector > 1) {
128 <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal subdetector index: " << aSubdetector
132 if (aRing < 0 || aRing > 1) {
134 <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal ring index: " << aRing <<
"." 138 if (aBeam < 0 || aBeam > 7) {
140 <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal beam index: " << aBeam <<
"." 144 if (aParameter < 0 || aParameter > 5) {
146 <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." 150 if (aSubdetector == 0)
159 std::cout <<
" [LASEndcapAlignmentParameterSet::Print] -- Listing parameters:" << std::endl;
161 std::cout <<
" Disk parameters:" << std::endl;
162 std::cout <<
" ----------------" << std::endl;
163 for (
int det = 0; det < 2; ++det) {
165 <<
" " << (det == 0 ?
"TEC+" :
"TEC-")
166 <<
": dPHI \xb1 \bE dX \xb1 \bE dY \xb1 \bE (rad/mm): " 168 for (
int disk = 0; disk < 9; ++disk) {
170 for (
int par = 0; par < 3; ++par)
178 for (
int det = 0; det < 2; ++det) {
179 std::cout <<
" " << (det == 0 ?
"TEC+" :
"TEC-")
180 <<
" global parameters in format: dPhi0\xb1 \be dPhiT\xb1 \be dX0\xb1 \be dXT\xb1 \be dY0\xb1 \be " 181 "dYT\xb1 \be (rad/mm): " 183 for (
int par = 0; par < 6; ++par)
185 << std::setw(9) << std::setprecision(6) << std::left <<
GetGlobalParameter(det, par).second;
189 for (
int det = 0; det < 2; ++det) {
190 std::cout <<
" " << (det == 0 ?
"TEC+" :
"TEC-")
191 <<
" beam parameters in format: dPhi1\xb1 \be dPhi2\xb1 \be (rad): " << std::endl;
193 std::cout <<
" ring " << (
ring == 0 ?
"4" :
"6") <<
": " << std::endl;
196 for (
int par = 0; par < 2; ++par)
197 std::cout << std::setw(11) << std::setprecision(6) << std::right
198 <<
GetBeamParameter(det, ring, beam, par).first <<
" \xb1 " << std::setw(9) << std::setprecision(6)
205 std::cout <<
" [LASEndcapAlignmentParameterSet::Print] -- End of list." << std::endl << std::endl;
std::vector< std::pair< double, double > > tecMinusGlobalParameters
std::vector< std::pair< double, double > > tecPlusGlobalParameters
std::pair< double, double > & GetGlobalParameter(int aSubdetector, int aParameter)
std::pair< double, double > & GetDiskParameter(int aSubdetector, int aDisk, int aParameter)
std::pair< double, double > & GetBeamParameter(int aSubdetector, int aRing, int aBeam, int aParameter)
std::vector< std::vector< std::pair< double, double > > > tecPlusDiskParameters
std::vector< std::vector< std::vector< std::pair< double, double > > > > tecPlusBeamParameters
LASEndcapAlignmentParameterSet()
std::vector< std::vector< std::pair< double, double > > > tecMinusDiskParameters
std::vector< std::vector< std::vector< std::pair< double, double > > > > tecMinusBeamParameters