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 | Friends
pos::PixelTBMSettings Class Reference

This is the documentation about PixelTBMSettings... More...

#include <PixelTBMSettings.h>

Inheritance diagram for pos::PixelTBMSettings:
pos::PixelConfigBase

Public Member Functions

void generateConfiguration (PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, bool physics=false, bool doResets=true) const
 
unsigned char getAnalogInputBias ()
 
unsigned char getAnalogOutputBias ()
 
unsigned char getAnalogOutputGain ()
 
bool getMode (void)
 
 PixelTBMSettings (std::vector< std::vector< std::string > > &tableMat)
 
 PixelTBMSettings (std::string filename)
 
 PixelTBMSettings ()
 
void setAnalogInputBias (unsigned char analogInputBias)
 
void setAnalogOutputBias (unsigned char analogOutputBias)
 
void setAnalogOutputGain (unsigned char analogOutputGain)
 
void setMode (bool mode)
 
void setROCName (std::string rocname)
 
void setTBMGenericValue (std::string, int)
 
void writeASCII (std::string dir) const
 
void writeBinary (std::string filename) 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
 
virtual ~PixelTBMSettings ()
 
- 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

unsigned char analogInputBias_
 
unsigned char analogOutputBias_
 
unsigned char analogOutputGain_
 
PixelModuleName moduleId_
 
PixelROCName rocid_
 
bool singlemode_
 

Friends

std::ostream & operator<< (std::ostream &s, const PixelTBMSettings &mask)
 

Detailed Description

This is the documentation about PixelTBMSettings...

" "

A longer explanation will be placed here later

Definition at line 27 of file PixelTBMSettings.h.

Constructor & Destructor Documentation

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

EXTENSION_TABLE_NAME: (VIEW:)

CONFIG_KEY NOT NULL VARCHAR2(80) KEY_TYPE NOT NULL VARCHAR2(80) KEY_ALIAS NOT NULL VARCHAR2(80) VERSION VARCHAR2(40) KIND_OF_COND NOT NULL VARCHAR2(40) TBM_NAME VARCHAR2(200) MODULE_NAME NOT NULL VARCHAR2(200) HUB_ADDRS NUMBER(38) TBM_MODE VARCHAR2(200) ANLG_INBIAS_ADDR NUMBER(38) ANLG_INBIAS_VAL NOT NULL NUMBER(38) ANLG_OUTBIAS_ADDR NUMBER(38) ANLG_OUTBIAS_VAL NOT NULL NUMBER(38) ANLG_OUTGAIN_ADDR NUMBER(38) ANLG_OUTGAIN_VAL NOT NULL NUMBER(38)

N.B.: Here we should (MUST) get a single row referring to a particula module for a particula version.

Definition at line 22 of file PixelTBMSettings.cc.

PixelTBMSettings::PixelTBMSettings ( std::string  filename)

Definition at line 104 of file PixelTBMSettings.cc.

pos::PixelTBMSettings::PixelTBMSettings ( )
inline

Definition at line 34 of file PixelTBMSettings.h.

34 :PixelConfigBase("", "", "") {;}
PixelConfigBase(std::string description, std::string creator, std::string date)
virtual pos::PixelTBMSettings::~PixelTBMSettings ( )
inlinevirtual

Definition at line 36 of file PixelTBMSettings.h.

36 {}

Member Function Documentation

void PixelTBMSettings::generateConfiguration ( PixelFECConfigInterface pixelFEC,
PixelNameTranslation trans,
bool  physics = false,
bool  doResets = true 
) const

Definition at line 254 of file PixelTBMSettings.cc.

unsigned char pos::PixelTBMSettings::getAnalogInputBias ( )
inline

Definition at line 64 of file PixelTBMSettings.h.

References analogInputBias_.

64 {return analogInputBias_;}
unsigned char analogInputBias_
unsigned char pos::PixelTBMSettings::getAnalogOutputBias ( )
inline

Definition at line 67 of file PixelTBMSettings.h.

References analogOutputBias_.

67 {return analogOutputBias_;}
unsigned char analogOutputBias_
unsigned char pos::PixelTBMSettings::getAnalogOutputGain ( )
inline

Definition at line 70 of file PixelTBMSettings.h.

References analogOutputGain_.

70 {return analogOutputGain_;}
unsigned char analogOutputGain_
bool pos::PixelTBMSettings::getMode ( void  )
inline

Definition at line 74 of file PixelTBMSettings.h.

References singlemode_.

74 {return singlemode_;}
void pos::PixelTBMSettings::setAnalogInputBias ( unsigned char  analogInputBias)
inline

Definition at line 65 of file PixelTBMSettings.h.

References analogInputBias_.

65 {analogInputBias_=analogInputBias;}
unsigned char analogInputBias_
void pos::PixelTBMSettings::setAnalogOutputBias ( unsigned char  analogOutputBias)
inline

Definition at line 68 of file PixelTBMSettings.h.

References analogOutputBias_.

68 {analogOutputBias_=analogOutputBias;}
unsigned char analogOutputBias_
void pos::PixelTBMSettings::setAnalogOutputGain ( unsigned char  analogOutputGain)
inline

Definition at line 71 of file PixelTBMSettings.h.

References analogOutputGain_.

71 {analogOutputGain_=analogOutputGain;}
unsigned char analogOutputGain_
void pos::PixelTBMSettings::setMode ( bool  mode)
inline
void pos::PixelTBMSettings::setROCName ( std::string  rocname)
inline

Definition at line 76 of file PixelTBMSettings.h.

References rocid_, and tmp.

76  {
77  PixelROCName tmp(rocname);
78  rocid_=tmp;
79  }
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
void PixelTBMSettings::setTBMGenericValue ( std::string  what,
int  value 
)

Definition at line 203 of file PixelTBMSettings.cc.

void PixelTBMSettings::writeASCII ( std::string  dir) const
virtual

Implements pos::PixelConfigBase.

Definition at line 231 of file PixelTBMSettings.cc.

void PixelTBMSettings::writeBinary ( std::string  filename) const

Definition at line 216 of file PixelTBMSettings.cc.

void pos::PixelTBMSettings::writeXML ( pos::PixelConfigKey  key,
int  version,
std::string  path 
) const
inlinevirtual

Reimplemented from pos::PixelConfigBase.

Definition at line 46 of file PixelTBMSettings.h.

46 {;}
void PixelTBMSettings::writeXML ( std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 377 of file PixelTBMSettings.cc.

void PixelTBMSettings::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 336 of file PixelTBMSettings.cc.

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

Reimplemented from pos::PixelConfigBase.

Definition at line 400 of file PixelTBMSettings.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const PixelTBMSettings mask 
)
friend

Member Data Documentation

unsigned char pos::PixelTBMSettings::analogInputBias_
private

Definition at line 87 of file PixelTBMSettings.h.

Referenced by getAnalogInputBias(), and setAnalogInputBias().

unsigned char pos::PixelTBMSettings::analogOutputBias_
private

Definition at line 88 of file PixelTBMSettings.h.

Referenced by getAnalogOutputBias(), and setAnalogOutputBias().

unsigned char pos::PixelTBMSettings::analogOutputGain_
private

Definition at line 89 of file PixelTBMSettings.h.

Referenced by getAnalogOutputGain(), and setAnalogOutputGain().

PixelModuleName pos::PixelTBMSettings::moduleId_
private

Definition at line 85 of file PixelTBMSettings.h.

PixelROCName pos::PixelTBMSettings::rocid_
private

Definition at line 84 of file PixelTBMSettings.h.

Referenced by setROCName().

bool pos::PixelTBMSettings::singlemode_
private

Definition at line 90 of file PixelTBMSettings.h.

Referenced by getMode(), and setMode().