CMS 3D CMS Logo

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

#include <Phase2TrackerModule.h>

Public Types

enum  ModuleTypes { SS, PS }
 

Public Member Functions

void addI2cDevice (unsigned int dev)
 
std::string description (bool compact=false) const
 
std::pair< unsigned int,
unsigned int > 
getCh () const
 
uint32_t getCoolingLoop () const
 
uint32_t getDetid () const
 
uint32_t getGbtid () const
 
const std::vector< unsigned int > & getI2cDevices () const
 
ModuleTypes getModuleType () const
 
uint32_t getPowerGroup () const
 
 Phase2TrackerModule (ModuleTypes moduleType=SS, uint32_t detid=0, uint32_t gbtid=0, uint32_t fedid=0, uint32_t fedch=0, uint32_t powerGroup=0, uint32_t coolingLoop=0)
 
void setCoolingLoop (uint32_t cl)
 
void setDetid (uint32_t detid)
 
void setFedChannel (unsigned int fedid, unsigned int fedch)
 
void setGbtid (uint32_t gbtid)
 
void setI2cDevices (std::vector< unsigned int > i2cd)
 
void setModuleType (ModuleTypes moduleType)
 
void setPowerGroup (uint32_t pg)
 
virtual ~Phase2TrackerModule ()
 

Private Attributes

std::pair< unsigned int,
unsigned int > 
ch_
 
 COND_SERIALIZABLE
 
uint32_t coolingLoop_
 
uint32_t detid_
 
uint32_t gbtid_
 
std::vector< unsigned int > i2cDevices_
 
ModuleTypes moduleType_
 
uint32_t powerGroup_
 

Detailed Description

Definition at line 9 of file Phase2TrackerModule.h.

Member Enumeration Documentation

Enumerator
SS 
PS 

Definition at line 12 of file Phase2TrackerModule.h.

Constructor & Destructor Documentation

Phase2TrackerModule::Phase2TrackerModule ( ModuleTypes  moduleType = SS,
uint32_t  detid = 0,
uint32_t  gbtid = 0,
uint32_t  fedid = 0,
uint32_t  fedch = 0,
uint32_t  powerGroup = 0,
uint32_t  coolingLoop = 0 
)
inline

Definition at line 16 of file Phase2TrackerModule.h.

References ch_.

16  :
17  moduleType_(moduleType), detid_(detid), gbtid_(gbtid), powerGroup_(powerGroup), coolingLoop_(coolingLoop) { ch_ = std::make_pair(fedid, fedch); }
std::pair< unsigned int, unsigned int > ch_
virtual Phase2TrackerModule::~Phase2TrackerModule ( )
inlinevirtual

Definition at line 20 of file Phase2TrackerModule.h.

20 {}

Member Function Documentation

void Phase2TrackerModule::addI2cDevice ( unsigned int  dev)
inline

Definition at line 29 of file Phase2TrackerModule.h.

References i2cDevices_.

29 { i2cDevices_.push_back(dev); }
std::vector< unsigned int > i2cDevices_
std::string Phase2TrackerModule::description ( bool  compact = false) const

Definition at line 5 of file Phase2TrackerModule.cc.

References getCh(), getCoolingLoop(), getDetid(), getGbtid(), getModuleType(), getPowerGroup(), SS, and contentValuesCheck::ss.

5  {
6  std::stringstream ss;
7  if(compact) {
8  ss << "0x" << std::hex << getDetid() << " (" << (getModuleType()==Phase2TrackerModule::SS ? "2S" : "PS") << ") ";
9  ss << "GBT 0x" << std::hex << getGbtid() << " FED " << std::dec << getCh().first << "." << getCh().second;
10  ss << " C " << getCoolingLoop() << " P " << getPowerGroup() << std::endl;
11  } else {
12  ss << "Module of type " << (getModuleType()==Phase2TrackerModule::SS ? "2S" : "PS") << ":" << std::endl;
13  ss << " Detid: 0x" << std::hex << getDetid() << " GBTid: 0x" << getGbtid() << std::endl;
14  ss << " FED connection: " << std::dec << getCh().first << "." << getCh().second << std::endl;
15  ss << " Cooling loop: " << getCoolingLoop() << std::endl;
16  ss << " Power group: " << getPowerGroup() << std::endl;
17  }
18  return ss.str();
19 }
uint32_t getPowerGroup() const
uint32_t getCoolingLoop() const
uint32_t getDetid() const
std::pair< unsigned int, unsigned int > getCh() const
uint32_t getGbtid() const
ModuleTypes getModuleType() const
std::pair<unsigned int, unsigned int> Phase2TrackerModule::getCh ( ) const
inline

Definition at line 35 of file Phase2TrackerModule.h.

References ch_.

Referenced by description().

35 { return ch_; }
std::pair< unsigned int, unsigned int > ch_
uint32_t Phase2TrackerModule::getCoolingLoop ( ) const
inline
uint32_t Phase2TrackerModule::getDetid ( ) const
inline

Definition at line 33 of file Phase2TrackerModule.h.

References detid_.

Referenced by description(), and Phase2Tracker::Phase2TrackerDigiProducer::produce().

33 { return detid_; }
uint32_t Phase2TrackerModule::getGbtid ( ) const
inline

Definition at line 34 of file Phase2TrackerModule.h.

References gbtid_.

Referenced by description().

34 { return gbtid_; }
const std::vector<unsigned int>& Phase2TrackerModule::getI2cDevices ( ) const
inline

Definition at line 39 of file Phase2TrackerModule.h.

References i2cDevices_.

39 { return i2cDevices_; }
std::vector< unsigned int > i2cDevices_
ModuleTypes Phase2TrackerModule::getModuleType ( ) const
inline

Definition at line 38 of file Phase2TrackerModule.h.

References moduleType_.

Referenced by description().

38 { return moduleType_; }
uint32_t Phase2TrackerModule::getPowerGroup ( ) const
inline
void Phase2TrackerModule::setCoolingLoop ( uint32_t  cl)
inline
void Phase2TrackerModule::setDetid ( uint32_t  detid)
inline

Definition at line 23 of file Phase2TrackerModule.h.

References cond::rpcobgas::detid, and detid_.

void Phase2TrackerModule::setFedChannel ( unsigned int  fedid,
unsigned int  fedch 
)
inline

Definition at line 25 of file Phase2TrackerModule.h.

References ch_.

25 { ch_ = std::make_pair(fedid, fedch); }
std::pair< unsigned int, unsigned int > ch_
void Phase2TrackerModule::setGbtid ( uint32_t  gbtid)
inline

Definition at line 24 of file Phase2TrackerModule.h.

References gbtid_.

24 { gbtid_ = gbtid; }
void Phase2TrackerModule::setI2cDevices ( std::vector< unsigned int >  i2cd)
inline

Definition at line 30 of file Phase2TrackerModule.h.

References i2cDevices_.

30 { i2cDevices_ = i2cd; }
std::vector< unsigned int > i2cDevices_
void Phase2TrackerModule::setModuleType ( ModuleTypes  moduleType)
inline

Definition at line 28 of file Phase2TrackerModule.h.

References moduleType_.

28 { moduleType_ = moduleType; }
void Phase2TrackerModule::setPowerGroup ( uint32_t  pg)
inline

Definition at line 27 of file Phase2TrackerModule.h.

References powerGroup_.

27 { powerGroup_ = pg; }

Member Data Documentation

std::pair<unsigned int,unsigned int> Phase2TrackerModule::ch_
private

Definition at line 52 of file Phase2TrackerModule.h.

Referenced by getCh(), Phase2TrackerModule(), and setFedChannel().

Phase2TrackerModule::COND_SERIALIZABLE
private

Definition at line 55 of file Phase2TrackerModule.h.

uint32_t Phase2TrackerModule::coolingLoop_
private

Definition at line 51 of file Phase2TrackerModule.h.

Referenced by getCoolingLoop(), and setCoolingLoop().

uint32_t Phase2TrackerModule::detid_
private

Definition at line 50 of file Phase2TrackerModule.h.

Referenced by getDetid(), and setDetid().

uint32_t Phase2TrackerModule::gbtid_
private

Definition at line 50 of file Phase2TrackerModule.h.

Referenced by getGbtid(), and setGbtid().

std::vector<unsigned int> Phase2TrackerModule::i2cDevices_
private

Definition at line 53 of file Phase2TrackerModule.h.

Referenced by addI2cDevice(), getI2cDevices(), and setI2cDevices().

ModuleTypes Phase2TrackerModule::moduleType_
private

Definition at line 49 of file Phase2TrackerModule.h.

Referenced by getModuleType(), and setModuleType().

uint32_t Phase2TrackerModule::powerGroup_
private

Definition at line 51 of file Phase2TrackerModule.h.

Referenced by getPowerGroup(), and setPowerGroup().