CMS 3D CMS Logo

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

#include <EcalLogicID.h>

Public Member Functions

 EcalLogicID ()
 
 EcalLogicID (std::string name, int logicID, int id1=NULLID, int id2=NULLID, int id3=NULLID, std::string mapsTo="")
 
int getID1 () const
 
int getID2 () const
 
int getID3 () const
 
int getLogicID () const
 
std::string getMapsTo () const
 
std::string getName () const
 
void setID1 (int x)
 
void setID2 (int x)
 
void setID3 (int x)
 
virtual ~EcalLogicID ()
 

Static Public Attributes

static const int NULLID = -100
 

Private Attributes

int id1
 
int id2
 
int id3
 
int logicID
 
std::string mapsTo
 
std::string name
 

Friends

bool operator< (EcalLogicID lhs, EcalLogicID rhs)
 

Detailed Description

Definition at line 7 of file EcalLogicID.h.

Constructor & Destructor Documentation

EcalLogicID::EcalLogicID ( )

Definition at line 7 of file EcalLogicID.cc.

8 {
9 }
EcalLogicID::EcalLogicID ( std::string  name,
int  logicID,
int  id1 = NULLID,
int  id2 = NULLID,
int  id3 = NULLID,
std::string  mapsTo = "" 
)

Definition at line 11 of file EcalLogicID.cc.

References id1, id2, id3, logicID, mapsTo, and name.

17 {
18  this->name = name;
19  this->logicID = logicID;
20  this->id1 = id1;
21  this->id2 = id2;
22  this->id3 = id3;
23  if (mapsTo.size() == 0) {
24  this->mapsTo = name;
25  } else {
26  this->mapsTo = mapsTo;
27  }
28 }
std::string name
Definition: EcalLogicID.h:48
std::string mapsTo
Definition: EcalLogicID.h:53
EcalLogicID::~EcalLogicID ( )
virtual

Definition at line 31 of file EcalLogicID.cc.

32 {
33 }

Member Function Documentation

int EcalLogicID::getID1 ( ) const

Definition at line 46 of file EcalLogicID.cc.

References id1.

47 {
48  return id1;
49 }
int EcalLogicID::getID2 ( ) const

Definition at line 51 of file EcalLogicID.cc.

References id2.

52 {
53  return id2;
54 }
int EcalLogicID::getID3 ( ) const

Definition at line 56 of file EcalLogicID.cc.

References id3.

57 {
58  return id3;
59 }
int EcalLogicID::getLogicID ( ) const
std::string EcalLogicID::getMapsTo ( ) const

Definition at line 61 of file EcalLogicID.cc.

References mapsTo.

62 {
63  return mapsTo;
64 }
std::string mapsTo
Definition: EcalLogicID.h:53
std::string EcalLogicID::getName ( void  ) const

Definition at line 36 of file EcalLogicID.cc.

References name.

37 {
38  return name;
39 }
std::string name
Definition: EcalLogicID.h:48
void EcalLogicID::setID1 ( int  x)
inline

Definition at line 34 of file EcalLogicID.h.

References id1, and x.

34 { id1 = x; }
void EcalLogicID::setID2 ( int  x)
inline

Definition at line 35 of file EcalLogicID.h.

References id2, and x.

35 { id2 = x; }
void EcalLogicID::setID3 ( int  x)
inline

Definition at line 36 of file EcalLogicID.h.

References id3, and x.

36 { id3 = x; }

Friends And Related Function Documentation

bool operator< ( EcalLogicID  lhs,
EcalLogicID  rhs 
)
friend

Definition at line 45 of file EcalLogicID.h.

45 { return (lhs.logicID < rhs.logicID); }

Member Data Documentation

int EcalLogicID::id1
private

Definition at line 50 of file EcalLogicID.h.

Referenced by EcalLogicID(), getID1(), and setID1().

int EcalLogicID::id2
private

Definition at line 51 of file EcalLogicID.h.

Referenced by EcalLogicID(), getID2(), and setID2().

int EcalLogicID::id3
private

Definition at line 52 of file EcalLogicID.h.

Referenced by EcalLogicID(), getID3(), and setID3().

int EcalLogicID::logicID
private

Definition at line 49 of file EcalLogicID.h.

Referenced by EcalLogicID(), and getLogicID().

std::string EcalLogicID::mapsTo
private

Definition at line 53 of file EcalLogicID.h.

Referenced by EcalLogicID(), and getMapsTo().

std::string EcalLogicID::name
private
const int EcalLogicID::NULLID = -100
static

Definition at line 42 of file EcalLogicID.h.

Referenced by RunCommentDat::fetchData().