CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
pos::PixelROCName Class Reference

This class implements.. More...

#include "interface/PixelROCName.h"

Public Member Functions

int blade () const
 
char detsub () const
 
int disk () const
 
char HF () const
 
unsigned int id () const
 
char IO () const
 
int ladder () const
 
int layer () const
 
int module () const
 
char mp () const
 
const bool operator< (const PixelROCName &aROC) const
 
const PixelROCNameoperator= (const PixelROCName &aROC)
 
const bool operator== (const PixelROCName &aROC) const
 
int panel () const
 
 PixelROCName ()
 
 PixelROCName (std::string rocname)
 
 PixelROCName (std::ifstream &s)
 
int plaquet () const
 
int roc () const
 
std::string rocname () const
 
int sec () const
 

Private Member Functions

void check (bool check, const std::string &name)
 
void parsename (std::string name)
 
void setIdBPix (char np, char LR, int sec, int layer, int ladder, char HF, int module, int roc)
 
void setIdFPix (char np, char LR, int disk, int blade, int panel, int plaquet, int roc)
 

Private Attributes

unsigned int id_
 

Friends

std::ostream & pos::operator<< (std::ostream &s, const PixelROCName &pixelroc)
 

Detailed Description

This class implements..

A longer explanation will be placed here later

Definition at line 23 of file PixelROCName.h.

Constructor & Destructor Documentation

PixelROCName::PixelROCName ( )

Definition at line 18 of file PixelROCName.cc.

PixelROCName::PixelROCName ( std::string  rocname)
explicit

Definition at line 22 of file PixelROCName.cc.

PixelROCName::PixelROCName ( std::ifstream &  s)
explicit

Definition at line 248 of file PixelROCName.cc.

Member Function Documentation

int pos::PixelROCName::blade ( ) const
inline

Definition at line 43 of file PixelROCName.h.

References assert(), and id_.

43 {assert((id_&0x80000000)==0); return (id_>>7)&0x1f;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
void PixelROCName::check ( bool  check,
const std::string &  name 
)
private

Definition at line 99 of file PixelROCName.cc.

char pos::PixelROCName::detsub ( ) const
inline

Definition at line 36 of file PixelROCName.h.

References id_.

36 {return (id_&0x80000000)?'B':'F';}
unsigned int id_
Definition: PixelROCName.h:112
int pos::PixelROCName::disk ( ) const
inline

Definition at line 42 of file PixelROCName.h.

References assert(), and id_.

42 {assert((id_&0x80000000)==0); return (id_>>12)&0x3;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
char pos::PixelROCName::HF ( ) const
inline

Definition at line 51 of file PixelROCName.h.

References assert(), and id_.

51 {assert((id_&0x80000000)!=0); return id_&0x00000800?'F':'H';}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
unsigned int pos::PixelROCName::id ( ) const
inline

Definition at line 68 of file PixelROCName.h.

References id_.

68 {return id_;}
unsigned int id_
Definition: PixelROCName.h:112
char pos::PixelROCName::IO ( ) const
inline

Definition at line 38 of file PixelROCName.h.

References id_.

38 {return id_&0x20000000?'I':'O';}
unsigned int id_
Definition: PixelROCName.h:112
int pos::PixelROCName::ladder ( ) const
inline

Definition at line 50 of file PixelROCName.h.

References assert(), and id_.

50 {assert((id_&0x80000000)!=0); return (id_>>6)&0x1f;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
int pos::PixelROCName::layer ( ) const
inline

Definition at line 49 of file PixelROCName.h.

References assert(), and id_.

49 {assert((id_&0x80000000)!=0); return (id_>>12)&0x3;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
int pos::PixelROCName::module ( ) const
inline

Definition at line 52 of file PixelROCName.h.

References assert(), and id_.

52 {assert((id_&0x80000000)!=0); return ((id_>>4)&0x3)+1;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
char pos::PixelROCName::mp ( ) const
inline

Definition at line 37 of file PixelROCName.h.

References id_.

37 {return id_&0x40000000?'p':'m';}
unsigned int id_
Definition: PixelROCName.h:112
const bool pos::PixelROCName::operator< ( const PixelROCName aROC) const
inline

Definition at line 60 of file PixelROCName.h.

References id_.

60  {
61  return id_<aROC.id_;
62  }
unsigned int id_
Definition: PixelROCName.h:112
const PixelROCName & PixelROCName::operator= ( const PixelROCName aROC)

Definition at line 322 of file PixelROCName.cc.

const bool pos::PixelROCName::operator== ( const PixelROCName aROC) const
inline

Definition at line 64 of file PixelROCName.h.

References id_.

64  {
65  return id_==aROC.id_;
66  }
unsigned int id_
Definition: PixelROCName.h:112
int pos::PixelROCName::panel ( ) const
inline

Definition at line 44 of file PixelROCName.h.

References assert(), and id_.

44 {assert((id_&0x80000000)==0); return ((id_>>6)&0x1)+1;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
void PixelROCName::parsename ( std::string  name)
private

Definition at line 114 of file PixelROCName.cc.

int pos::PixelROCName::plaquet ( ) const
inline

Definition at line 45 of file PixelROCName.h.

References assert(), and id_.

45 {assert((id_&0x80000000)==0); return ((id_>>4)&0x3)+1;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
int pos::PixelROCName::roc ( ) const
inline

Definition at line 39 of file PixelROCName.h.

References id_.

39 {return id_&0xf;}
unsigned int id_
Definition: PixelROCName.h:112
std::string PixelROCName::rocname ( ) const
int pos::PixelROCName::sec ( ) const
inline

Definition at line 48 of file PixelROCName.h.

References assert(), and id_.

48 {assert((id_&0x80000000)!=0); return ((id_>>14)&0x7)+1;}
unsigned int id_
Definition: PixelROCName.h:112
assert(m_qm.get())
void PixelROCName::setIdBPix ( char  np,
char  LR,
int  sec,
int  layer,
int  ladder,
char  HF,
int  module,
int  roc 
)
private

Definition at line 62 of file PixelROCName.cc.

void PixelROCName::setIdFPix ( char  np,
char  LR,
int  disk,
int  blade,
int  panel,
int  plaquet,
int  roc 
)
private

Definition at line 29 of file PixelROCName.cc.

Friends And Related Function Documentation

std::ostream& pos::operator<< ( std::ostream &  s,
const PixelROCName pixelroc 
)
friend

Member Data Documentation

unsigned int pos::PixelROCName::id_
private