Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:28

0001 #include "CondFormats/RPCObjects/interface/FebLocationSpec.h"
0002 #include <sstream>
0003 
0004 std::string FebLocationSpec::localEtaPartitionName() const {
0005   std::ostringstream str;
0006   const static std::string localPartVal[7] = {"Forward", "Central", "Backward", "A", "B", "C", "D"};
0007   str << localPartVal[localEtaPartition - 1];
0008   return str.str();
0009 }
0010 
0011 std::string FebLocationSpec::print(int depth) const {
0012   std::ostringstream str;
0013   std::string cmsPartVal[6] = {"1", "2", "3", "A", "B", "C"};
0014   if (depth >= 0) {
0015     str << "FebLocationSpec: " << std::endl
0016         << " local partition: " << localEtaPartitionName() << " (" << int(positionInLocalEtaPartition) << ")"
0017         << " cms partition: " << cmsPartVal[cmsEtaPartition - 1] << " (" << int(positionInCmsEtaPartition) << ")"
0018         << std::endl;
0019   }
0020   return str.str();
0021 }