26 for(
int i = 0;
i < 2; ++
i ) {
36 for(
int i = 0;
i < 8; ++
i ) {
37 beamParameters.push_back( std::vector<std::pair<double,double> >( 2 ) );
55 if( aSubdetector < 0 || aSubdetector > 5 ) {
56 throw cms::Exception(
"Laser Alignment" ) <<
" [LASBarrelAlignmentParameterSet::GetParameter] ERROR ** Illegal subdetector index: " << aSubdetector <<
"." << std::endl;
59 if( aDisk < 0 || aDisk > 1 ) {
60 throw cms::Exception(
"Laser Alignment" ) <<
" [LASBarrelAlignmentParameterSet::GetParameter] ERROR ** Illegal endface index: " << aDisk <<
"." << std::endl;
63 if( aParameter < 0 || aParameter > 2 ) {
64 throw cms::Exception(
"Laser Alignment" ) <<
" [LASBarrelAlignmentParameterSet::GetParameter] ERROR ** Illegal parameter index: " << aParameter <<
"." << std::endl;
71 else if( aSubdetector == 2 )
return tibPlusParameters.at( aDisk ).at( aParameter );
73 else if( aSubdetector == 4 )
return tobPlusParameters.at( aDisk ).at( aParameter );
89 if( aBeam < 0 || aBeam > 7 ) {
90 throw cms::Exception(
"Laser Alignment" ) <<
" [LASBarrelAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal beam index: " << aBeam <<
"." << std::endl;
93 if( aParameter < 0 || aParameter > 1 ) {
94 throw cms::Exception(
"Laser Alignment" ) <<
" [LASBarrelAlignmentParameterSet::GetBeamParameter] ERROR ** Illegal beam parameter index: " << aParameter <<
"." << std::endl;
110 std::cout << std::endl <<
" [LASBarrelAlignmentParameterSet::Print] -- Parameter list [rad/mm]: " << std::endl;
112 const std::string subdetNames[6] = {
" TEC+ ",
" TEC- ",
" TIB+ ",
" TIB- ",
" TOB+ ",
" TOB- " };
114 std::cout <<
" Detector parameters: " << std::endl;
115 std::cout <<
" --------------------" << std::endl;
116 std::cout <<
" Values: PHI1 X1 Y1 PHI2 X2 Y2 " << std::endl;
117 for(
int subdet = 0; subdet < 6; ++subdet ) {
119 for(
int par = 0; par < 3; ++par )
std::cout << std::right << std::setw( 12 ) << std::setprecision( 6 ) << std::fixed <<
GetParameter( subdet, 0, par ).first;
120 for(
int par = 0; par < 3; ++par )
std::cout << std::right << std::setw( 12 ) << std::setprecision( 6 ) << std::fixed <<
GetParameter( subdet, 1, par ).first;
124 std::cout <<
" Errors: PHI1 X1 Y1 PHI2 X2 Y2 " << std::endl;
125 for(
int subdet = 0; subdet < 6; ++subdet ) {
127 for(
int par = 0; par < 3; ++par )
std::cout << std::right << std::setw( 12 ) << std::setprecision( 6 ) << std::fixed <<
GetParameter( subdet, 0, par ).second;
128 for(
int par = 0; par < 3; ++par )
std::cout << std::right << std::setw( 12 ) << std::setprecision( 6 ) << std::fixed <<
GetParameter( subdet, 1, par ).second;
133 std::cout <<
" Beam parameters: " << std::endl;
134 std::cout <<
" ----------------" << std::endl;
135 std::cout <<
" Values: PHI1 PHI2" << std::endl;
136 for(
int beam = 0; beam < 8; ++beam ) {
138 for(
int par = 0; par < 2; ++par )
std::cout << std::right << std::setw( 12 ) << std::setprecision( 6 ) << std::fixed <<
GetBeamParameter( beam, par ).first;
142 std::cout <<
" Errors: PHI1 PHI2" << std::endl;
143 for(
int beam = 0; beam < 8; ++beam ) {
145 for(
int par = 0; par < 2; ++par )
std::cout << std::right << std::setw( 12 ) << std::setprecision( 6 ) << std::fixed <<
GetBeamParameter( beam, par ).second;
149 std::cout <<
" [LASBarrelAlignmentParameterSet::Print] -- End parameter list." << std::endl;
std::pair< double, double > & GetParameter(int aSubdetector, int aDisk, int aParameter)
LASBarrelAlignmentParameterSet()
std::vector< std::vector< std::pair< double, double > > > tecPlusParameters
std::vector< std::vector< std::pair< double, double > > > tobPlusParameters
std::vector< std::vector< std::pair< double, double > > > tobMinusParameters
std::vector< std::vector< std::pair< double, double > > > tibMinusParameters
std::pair< double, double > & GetBeamParameter(int aBeam, int aParameter)
std::vector< std::vector< std::pair< double, double > > > beamParameters
std::vector< std::vector< std::pair< double, double > > > tecMinusParameters
std::vector< std::vector< std::pair< double, double > > > tibPlusParameters