CMS 3D CMS Logo

Public Member Functions | Public Attributes

FebLocationSpec Class Reference

#include <FebLocationSpec.h>

List of all members.

Public Member Functions

std::string localEtaPartitionName () const
 debug printout
std::string print (int depth=0) const

Public Attributes

char cmsEtaPartition
char localEtaPartition
char positionInCmsEtaPartition
char positionInLocalEtaPartition

Detailed Description

RPC FEB specification for readout decoding

Definition at line 10 of file FebLocationSpec.h.


Member Function Documentation

std::string FebLocationSpec::localEtaPartitionName ( ) const

debug printout

Definition at line 4 of file FebLocationSpec.cc.

References localEtaPartition.

Referenced by print().

{
  std::ostringstream str;
  static std::string localPartVal[7]={"Forward","Central","Backward","A","B","C","D"};
  str << localPartVal[localEtaPartition-1];
  return str.str();
}
std::string FebLocationSpec::print ( int  depth = 0) const

Definition at line 12 of file FebLocationSpec.cc.

References cmsEtaPartition, localEtaPartitionName(), positionInCmsEtaPartition, and positionInLocalEtaPartition.

Referenced by FebConnectorSpec::print().

{
  std::ostringstream str;
  std::string cmsPartVal[6]={"1","2","3","A","B","C"};
  if(depth >= 0) {
  str << "FebLocationSpec: " << std::endl
            <<" local partition: "<<localEtaPartitionName()<<" ("<<int(positionInLocalEtaPartition) <<")"
            <<" cms partition: " <<cmsPartVal[cmsEtaPartition-1] <<" ("<<int(positionInCmsEtaPartition)<<")"
            << std::endl;
  }
  return str.str();
}

Member Data Documentation

Definition at line 12 of file FebLocationSpec.h.

Referenced by print().

Definition at line 14 of file FebLocationSpec.h.

Referenced by localEtaPartitionName(), and DBSpecToDetUnit::operator()().

Definition at line 13 of file FebLocationSpec.h.

Referenced by print().

Definition at line 15 of file FebLocationSpec.h.

Referenced by print().