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

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().

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

Definition at line 12 of file FebLocationSpec.cc.

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

Referenced by FebConnectorSpec::print().

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 23 of file FebLocationSpec.h.

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

Definition at line 23 of file FebLocationSpec.h.

Member Data Documentation

char FebLocationSpec::cmsEtaPartition

Definition at line 14 of file FebLocationSpec.h.

Referenced by print().

char FebLocationSpec::localEtaPartition

Definition at line 16 of file FebLocationSpec.h.

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

char FebLocationSpec::positionInCmsEtaPartition

Definition at line 15 of file FebLocationSpec.h.

Referenced by print().

char FebLocationSpec::positionInLocalEtaPartition

Definition at line 17 of file FebLocationSpec.h.

Referenced by print().