23 for( std::vector<edm::ParameterSet>::const_iterator iter = theConstConf.begin(); iter < theConstConf.end(); ++iter ) {
25 if( iter->getParameter<std::string>(
"PSetName" ) ==
"BeamsplitterKinks" )
FillBsKinks( *iter );
26 else if( iter->getParameter<std::string>(
"PSetName" ) ==
"Radii" )
FillRadii( *iter );
27 else if( iter->getParameter<std::string>(
"PSetName" ) ==
"ZPositions" )
FillZPositions( *iter );
29 std::cerr <<
" [] ** WARNING: Cannot process unknown parameter set named: " << iter->getParameter<std::string>(
"PSetName" ) <<
"." << std::endl;
58 if( ! ( ( det == 0 || det == 1 ) && ( ring == 0 || ring == 1 ) && ( beam < 8U ) ) ) {
59 throw cms::Exception(
" [LASConstants::GetEndcapBsKink]" ) <<
" ** ERROR: no such element: det " << det <<
", ring " << ring <<
", beam " << beam <<
"." << std::endl;
76 throw cms::Exception(
" [LASConstants::GetAlignmentTubeBsKink]" ) <<
" ** ERROR: no such beam: " << beam <<
"." << std::endl;
93 throw cms::Exception(
" [LASConstants::GetTecRadius]" ) <<
" ** ERROR: no such ring: " << ring <<
"." << std::endl;
122 if( ( det > 1 ) || ( disk > 8 ) ) {
123 throw cms::Exception(
" [LASConstants::GetTecZPosition]" ) <<
" ** ERROR: no such element: det " << det <<
", disk " << disk <<
"." << std::endl;
141 throw cms::Exception(
" [LASConstants::GetTibZPosition]" ) <<
" ** ERROR: no such position: " << pos <<
"." << std::endl;
158 throw cms::Exception(
" [LASConstants::GetTobZPosition]" ) <<
" ** ERROR: no such position: " << pos <<
"." << std::endl;
203 for(
int det = 0; det < 2; ++det ) {
238 for(
unsigned int beam = 0; beam < 8; ++beam ) {
249 for(
unsigned int beam = 0; beam < 8; ++beam ) {
T getParameter(std::string const &) const
double GetTobZPosition(unsigned int pos) const
double GetAtBsZPosition(void) const
double GetTecRadius(unsigned int ring) const
void FillRadii(edm::ParameterSet const &)
double GetAlignmentTubeBsKink(unsigned int beam) const
void FillZPositions(edm::ParameterSet const &)
std::vector< double > tecZPositions
double GetTibZPosition(unsigned int pos) const
std::vector< double > tecRadii
double GetEndcapBsKink(unsigned int det, unsigned int ring, unsigned int beam) const
double GetTecZPosition(unsigned int det, unsigned int disk) const
double GetTecBsZPosition(unsigned int det) const
std::vector< std::vector< std::vector< double > > > endcapBsKinks
std::vector< double > tobZPositions
double GetAtRadius(void) const
void InitContainers(void)
std::vector< double > alignmentTubeBsKinks
std::vector< double > tibZPositions
void FillBsKinks(edm::ParameterSet const &)