28 for(
unsigned int disk = 0; disk < 9; ++disk ) {
33 for(
unsigned int par = 0; par < 3; ++par ) {
41 for(
unsigned int par = 0; par < 6; ++par ) {
52 for(
unsigned int beam = 0; beam < 8; ++beam ) {
63 for(
unsigned int par = 0; par < 2; ++par ) {
87 if( aSubdetector < 0 || aSubdetector > 1 ) {
88 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetDiskParameter] ERROR ** Illegal subdetector index: " << aSubdetector <<
"." << std::endl;
91 if( aDisk < 0 || aDisk > 8 ) {
92 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetDiskParameter] ERROR ** Illegal disk index: " << aDisk <<
"." << std::endl;
95 if( aParameter < 0 || aParameter > 2 ) {
96 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetDiskParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." << std::endl;
119 if( aSubdetector < 0 || aSubdetector > 1 ) {
120 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetGlobalParameter] ERROR ** Illegal subdetector index: " << aSubdetector <<
"." << std::endl;
123 if( aParameter < 0 || aParameter > 5 ) {
124 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetGlobalParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." << std::endl;
145 if( aSubdetector < 0 || aSubdetector > 1 ) {
146 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal subdetector index: " << aSubdetector <<
"." << std::endl;
149 if( aRing < 0 || aRing > 1 ) {
150 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal ring index: " << aRing <<
"." << std::endl;
153 if( aBeam < 0 || aBeam > 7 ) {
154 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal beam index: " << aBeam <<
"." << std::endl;
157 if( aParameter < 0 || aParameter > 5 ) {
158 throw cms::Exception(
"Laser Alignment" ) <<
" [LASEndcapAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." << std::endl;
175 std::cout <<
" [LASEndcapAlignmentParameterSet::Print] -- Listing parameters:" << std::endl;
177 std::cout <<
" Disk parameters:" << std::endl;
178 std:: cout <<
" ----------------" << std::endl;
179 for(
int det = 0; det < 2; ++det ) {
180 std::cout <<
" " << (det==0 ?
"TEC+" :
"TEC-") <<
": dPHI \xb1 \bE dX \xb1 \bE dY \xb1 \bE (rad/mm): " << std::endl;
181 for(
int disk = 0; disk < 9; ++disk ) {
183 for(
int par = 0; par < 3; ++par )
std::cout << std::right << std::setw( 11 ) << std::fixed << std::setprecision( 6 ) <<
GetDiskParameter( det, disk, par ).first
184 <<
" \xb1 " << std::left << std::setw( 9 ) << std::fixed << std::setprecision( 6 ) <<
GetDiskParameter( det, disk, par ).second;
189 for(
int det = 0; det < 2; ++det ) {
190 std::cout <<
" " << (det==0 ?
"TEC+" :
"TEC-") <<
" global parameters in format: dPhi0\xb1 \be dPhiT\xb1 \be dX0\xb1 \be dXT\xb1 \be dY0\xb1 \be dYT\xb1 \be (rad/mm): " << std::endl;
191 for(
int par = 0; par < 6; ++par )
std::cout << std::setw( 11 ) << std::setprecision( 6 ) << std::right <<
GetGlobalParameter( det, par ).first
192 <<
" \xb1 " << std::setw( 9 ) << std::setprecision( 6 ) << std::left <<
GetGlobalParameter( det, par ).second;
196 for(
int det = 0; det < 2; ++det ) {
197 std::cout <<
" " << (det==0 ?
"TEC+" :
"TEC-") <<
" beam parameters in format: dPhi1\xb1 \be dPhi2\xb1 \be (rad): " << std::endl;
199 std::cout <<
" ring " << (
ring==0?
"4":
"6") <<
": " << std::endl;
200 for(
int beam = 0; beam < 8; ++beam ) {
202 for(
int par = 0; par < 2; ++par )
std::cout << std::setw( 11 ) << std::setprecision( 6 ) << std::right <<
GetBeamParameter( det, ring, beam, par ).first
203 <<
" \xb1 " << std::setw( 9 ) << std::setprecision( 6 ) << std::left <<
GetBeamParameter( det, ring, beam, par ).second;
209 std::cout <<
" [LASEndcapAlignmentParameterSet::Print] -- End of list." << std::endl << std::endl;
std::pair< double, double > & GetGlobalParameter(int aSubdetector, int aParameter)
std::vector< std::pair< double, double > > tecMinusGlobalParameters
std::vector< std::vector< std::vector< std::pair< double, double > > > > tecPlusBeamParameters
std::vector< std::pair< double, double > > tecPlusGlobalParameters
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 > > > tecMinusDiskParameters
std::vector< std::vector< std::pair< double, double > > > tecPlusDiskParameters
LASEndcapAlignmentParameterSet()
std::vector< std::vector< std::vector< std::pair< double, double > > > > tecMinusBeamParameters