CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
FebLocationSpec Class Reference

#include <FebLocationSpec.h>

Public Member Functions

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

Public Attributes

char cmsEtaPartition
 
char localEtaPartition
 
char positionInCmsEtaPartition
 
char positionInLocalEtaPartition
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

RPC FEB specification for readout decoding

Definition at line 12 of file FebLocationSpec.h.

Member Function Documentation

◆ localEtaPartitionName()

std::string FebLocationSpec::localEtaPartitionName ( ) const

debug printout

Definition at line 4 of file FebLocationSpec.cc.

References localEtaPartition, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by print().

4  {
5  std::ostringstream str;
6  const static std::string localPartVal[7] = {"Forward", "Central", "Backward", "A", "B", "C", "D"};
7  str << localPartVal[localEtaPartition - 1];
8  return str.str();
9 }
#define str(s)

◆ print()

std::string FebLocationSpec::print ( int  depth = 0) const

Definition at line 11 of file FebLocationSpec.cc.

References cmsEtaPartition, LEDCalibrationChannels::depth, createfilelist::int, localEtaPartitionName(), positionInCmsEtaPartition, positionInLocalEtaPartition, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FebConnectorSpec::print().

11  {
12  std::ostringstream str;
13  std::string cmsPartVal[6] = {"1", "2", "3", "A", "B", "C"};
14  if (depth >= 0) {
15  str << "FebLocationSpec: " << std::endl
16  << " local partition: " << localEtaPartitionName() << " (" << int(positionInLocalEtaPartition) << ")"
17  << " cms partition: " << cmsPartVal[cmsEtaPartition - 1] << " (" << int(positionInCmsEtaPartition) << ")"
18  << std::endl;
19  }
20  return str.str();
21 }
char positionInLocalEtaPartition
char positionInCmsEtaPartition
std::string localEtaPartitionName() const
debug printout
#define str(s)

◆ serialize()

template<class Archive >
void FebLocationSpec::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 22 of file FebLocationSpec.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 22 of file FebLocationSpec.h.

Member Data Documentation

◆ cmsEtaPartition

char FebLocationSpec::cmsEtaPartition

Definition at line 13 of file FebLocationSpec.h.

Referenced by print().

◆ localEtaPartition

char FebLocationSpec::localEtaPartition

Definition at line 15 of file FebLocationSpec.h.

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

◆ positionInCmsEtaPartition

char FebLocationSpec::positionInCmsEtaPartition

Definition at line 14 of file FebLocationSpec.h.

Referenced by print().

◆ positionInLocalEtaPartition

char FebLocationSpec::positionInLocalEtaPartition

Definition at line 16 of file FebLocationSpec.h.

Referenced by print().