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 Attributes
pos::PixelDetectorConfig Class Reference

This is the documentation about PixelDetectorConfig... More...

#include <PixelDetectorConfig.h>

Inheritance diagram for pos::PixelDetectorConfig:
pos::PixelConfigBase

Public Member Functions

void addROC (PixelROCName &, std::string statusLabel)
 
void addROC (PixelROCName &)
 
bool containsModule (const PixelModuleName &moduleToFind) const
 
std::set< unsigned int > getFEDs (PixelNameTranslation *translation) const
 
std::map< unsigned int,
std::set< unsigned int > > 
getFEDsAndChannels (PixelNameTranslation *translation) const
 
PixelModuleName getModule (unsigned int i) const
 
const std::vector
< PixelModuleName > & 
getModuleList () const
 
unsigned int getNModules () const
 
const std::map< PixelROCName,
PixelROCStatus > & 
getROCsList () const
 
 PixelDetectorConfig (std::vector< std::vector< std::string > > &tableMat)
 
 PixelDetectorConfig (std::string filename)
 
void removeROC (PixelROCName &)
 
void writeASCII (std::string dir="") const
 
void writeXML (pos::PixelConfigKey key, int version, std::string path) const
 
virtual void writeXML (std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
 
virtual void writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
 
virtual void writeXMLTrailer (std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
 
- Public Member Functions inherited from pos::PixelConfigBase
std::string creator ()
 
std::string date ()
 
std::string description ()
 
std::string getAuthor () const
 
std::string getComment () const
 
 PixelConfigBase (std::string description, std::string creator, std::string date)
 
void setAuthor (std::string author)
 
void setComment (std::string comment)
 
virtual void writeXML (std::ofstream *out) const
 
virtual void writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const
 
virtual void writeXMLTrailer (std::ofstream *out) const
 
virtual ~PixelConfigBase ()
 

Private Attributes

std::vector< PixelModuleNamemodules_
 
std::map< PixelROCName,
PixelROCStatus
rocs_
 

Detailed Description

This is the documentation about PixelDetectorConfig...

" "

Definition at line 39 of file PixelDetectorConfig.h.

Constructor & Destructor Documentation

PixelDetectorConfig::PixelDetectorConfig ( std::vector< std::vector< std::string > > &  tableMat)

Definition at line 22 of file PixelDetectorConfig.cc.

PixelDetectorConfig::PixelDetectorConfig ( std::string  filename)

Definition at line 98 of file PixelDetectorConfig.cc.

Member Function Documentation

void pos::PixelDetectorConfig::addROC ( PixelROCName ,
std::string  statusLabel 
)
void PixelDetectorConfig::addROC ( PixelROCName theROC)

Definition at line 545 of file PixelDetectorConfig.cc.

bool PixelDetectorConfig::containsModule ( const PixelModuleName moduleToFind) const

Definition at line 320 of file PixelDetectorConfig.cc.

std::set< unsigned int > PixelDetectorConfig::getFEDs ( PixelNameTranslation translation) const

Definition at line 272 of file PixelDetectorConfig.cc.

std::map< unsigned int, std::set< unsigned int > > PixelDetectorConfig::getFEDsAndChannels ( PixelNameTranslation translation) const

Definition at line 296 of file PixelDetectorConfig.cc.

PixelModuleName PixelDetectorConfig::getModule ( unsigned int  i) const

Definition at line 266 of file PixelDetectorConfig.cc.

const std::vector<PixelModuleName>& pos::PixelDetectorConfig::getModuleList ( ) const
inline

Definition at line 50 of file PixelDetectorConfig.h.

References modules_.

50 { return modules_; }
std::vector< PixelModuleName > modules_
unsigned int PixelDetectorConfig::getNModules ( ) const

Definition at line 260 of file PixelDetectorConfig.cc.

const std::map<PixelROCName, PixelROCStatus>& pos::PixelDetectorConfig::getROCsList ( ) const
inline

Definition at line 55 of file PixelDetectorConfig.h.

References rocs_.

Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().

55 { return rocs_; } ;
std::map< PixelROCName, PixelROCStatus > rocs_
void PixelDetectorConfig::removeROC ( PixelROCName theROC)

Definition at line 584 of file PixelDetectorConfig.cc.

void PixelDetectorConfig::writeASCII ( std::string  dir = "") const
virtual

Implements pos::PixelConfigBase.

Definition at line 330 of file PixelDetectorConfig.cc.

void PixelDetectorConfig::writeXML ( pos::PixelConfigKey  key,
int  version,
std::string  path 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 472 of file PixelDetectorConfig.cc.

void PixelDetectorConfig::writeXML ( std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 421 of file PixelDetectorConfig.cc.

void PixelDetectorConfig::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 369 of file PixelDetectorConfig.cc.

void PixelDetectorConfig::writeXMLTrailer ( std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 458 of file PixelDetectorConfig.cc.

Member Data Documentation

std::vector<PixelModuleName> pos::PixelDetectorConfig::modules_
private

Definition at line 83 of file PixelDetectorConfig.h.

Referenced by getModuleList().

std::map<PixelROCName, PixelROCStatus> pos::PixelDetectorConfig::rocs_
private

Definition at line 85 of file PixelDetectorConfig.h.

Referenced by getROCsList().