CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CondFormats/RPCObjects/src/FebLocationSpec.cc

Go to the documentation of this file.
00001 #include "CondFormats/RPCObjects/interface/FebLocationSpec.h"
00002 #include <sstream>
00003 
00004 std::string FebLocationSpec::localEtaPartitionName() const
00005 {
00006   std::ostringstream str;
00007   static std::string localPartVal[7]={"Forward","Central","Backward","A","B","C","D"};
00008   str << localPartVal[localEtaPartition-1];
00009   return str.str();
00010 }
00011 
00012 std::string FebLocationSpec::print(int depth) const
00013 {
00014   std::ostringstream str;
00015   std::string cmsPartVal[6]={"1","2","3","A","B","C"};
00016   if(depth >= 0) {
00017   str << "FebLocationSpec: " << std::endl
00018             <<" local partition: "<<localEtaPartitionName()<<" ("<<int(positionInLocalEtaPartition) <<")"
00019             <<" cms partition: " <<cmsPartVal[cmsEtaPartition-1] <<" ("<<int(positionInCmsEtaPartition)<<")"
00020             << std::endl;
00021   }
00022   return str.str();
00023 }