CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
cscdqm::DCSAddressType Struct Reference

#include <CSCDQM_DCSBase.h>

Public Member Functions

CSCDetId getDetId () const
 
DCSAddressTypeoperator= (const DCSAddressType &a)
 

Public Attributes

unsigned int ichamber
 
unsigned short iendcap
 
unsigned short iring
 
unsigned short istation
 

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
 
std::ostream & operator<< (std::ostream &out, const DCSAddressType &a)
 

Detailed Description

DCS Address Type to store and manipulate DCS-related address

Definition at line 79 of file CSCDQM_DCSBase.h.

Member Function Documentation

CSCDetId cscdqm::DCSAddressType::getDetId ( ) const
inline

Get CSC Detector Id object from the address

Definition at line 94 of file CSCDQM_DCSBase.h.

94  {
96  }
unsigned short iendcap
unsigned short istation
unsigned short iring
DCSAddressType& cscdqm::DCSAddressType::operator= ( const DCSAddressType a)
inline

Assignment operator

Definition at line 99 of file CSCDQM_DCSBase.h.

References ichamber, iendcap, iring, and istation.

99  {
100  iendcap = a.iendcap;
101  istation = a.istation;
102  iring = a.iring;
103  ichamber = a.ichamber;
104  return *this;
105  }
unsigned short iendcap
unsigned short istation
unsigned short iring
double a
Definition: hdecay.h:121
template<class Archive >
void cscdqm::DCSAddressType::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 118 of file CSCDQM_DCSBase.h.

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

Definition at line 118 of file CSCDQM_DCSBase.h.

std::ostream& operator<< ( std::ostream &  out,
const DCSAddressType a 
)
friend

Output stream operator

Definition at line 108 of file CSCDQM_DCSBase.h.

108  {
109  std::ostringstream os;
110  os << "endcap = " << a.iendcap << " ";
111  os << "station = " << a.istation << " ";
112  os << "ring = " << a.iring << " ";
113  os << "chamber = " << a.ichamber;
114  return out << os.str();
115  }
double a
Definition: hdecay.h:121

Member Data Documentation

unsigned int cscdqm::DCSAddressType::ichamber

Chamber number

Definition at line 91 of file CSCDQM_DCSBase.h.

Referenced by operator=().

unsigned short cscdqm::DCSAddressType::iendcap

Endcap: 1 - plus, 2 - minus

Definition at line 82 of file CSCDQM_DCSBase.h.

Referenced by operator=().

unsigned short cscdqm::DCSAddressType::iring

Ring number

Definition at line 88 of file CSCDQM_DCSBase.h.

Referenced by operator=().

unsigned short cscdqm::DCSAddressType::istation

Station number

Definition at line 85 of file CSCDQM_DCSBase.h.

Referenced by operator=().