CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pos::PixelConfigBase Class Referenceabstract

This file contains the base class for "pixel configuration data" management. More...

#include "interface/PixelConfigBase.h"

Inheritance diagram for pos::PixelConfigBase:
pos::PixelCalibConfiguration pos::PixelDACSettings pos::PixelDelay25Calib pos::PixelDetectorConfig pos::PixelFECConfig pos::PixelFEDCard pos::PixelFEDConfig pos::PixelGlobalDelay25 pos::PixelLowVoltageMap pos::PixelLTCConfig pos::PixelMaskBase pos::PixelMaskOverrideBase pos::PixelMaxVsf pos::PixelNameTranslation pos::PixelPortCardConfig pos::PixelPortcardMap pos::PixelTBMSettings pos::PixelTKFECConfig pos::PixelTrimBase pos::PixelTrimOverrideBase pos::PixelTTCciConfig

Public Member Functions

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 writeASCII (std::string dir="") const =0
 
virtual void writeXML (pos::PixelConfigKey key, int version, std::string path) const
 
virtual void writeXML (std::ofstream *out) const
 
virtual void writeXML (std::ofstream *out, std::ofstream *out1, std::ofstream *out2) const
 
virtual void writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const
 
virtual void writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1, std::ofstream *out2) const
 
virtual void writeXMLTrailer (std::ofstream *out) const
 
virtual void writeXMLTrailer (std::ofstream *out, std::ofstream *ou1, std::ofstream *out2) const
 
virtual ~PixelConfigBase ()
 

Private Attributes

std::string comment_
 
std::string creator_
 
std::string date_
 
std::string description_
 

Detailed Description

This file contains the base class for "pixel configuration data" management.

" "

A longer explanation will be placed here later

Definition at line 32 of file PixelConfigBase.h.

Constructor & Destructor Documentation

◆ PixelConfigBase()

PixelConfigBase::PixelConfigBase ( std::string  description,
std::string  creator,
std::string  date 
)

Definition at line 15 of file PixelConfigBase.cc.

◆ ~PixelConfigBase()

virtual pos::PixelConfigBase::~PixelConfigBase ( )
inlinevirtual

Definition at line 41 of file PixelConfigBase.h.

41 {}

Member Function Documentation

◆ creator()

std::string pos::PixelConfigBase::creator ( )

◆ date()

std::string pos::PixelConfigBase::date ( )

◆ description()

std::string pos::PixelConfigBase::description ( )

◆ getAuthor()

std::string pos::PixelConfigBase::getAuthor ( ) const
inline

◆ getComment()

std::string pos::PixelConfigBase::getComment ( ) const
inline

◆ setAuthor()

void pos::PixelConfigBase::setAuthor ( std::string  author)
inline

Definition at line 68 of file PixelConfigBase.h.

68 { creator_ = author; }

References creator_.

◆ setComment()

void pos::PixelConfigBase::setComment ( std::string  comment)
inline

Definition at line 69 of file PixelConfigBase.h.

69 { comment_ = comment; }

References comment_.

Referenced by ConfigToolBase.ConfigToolBase::apply().

◆ writeASCII()

virtual void pos::PixelConfigBase::writeASCII ( std::string  dir = "") const
pure virtual

◆ writeXML() [1/3]

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

◆ writeXML() [2/3]

virtual void pos::PixelConfigBase::writeXML ( std::ofstream *  out) const
inlinevirtual

Reimplemented in pos::PixelFEDCard, and pos::PixelTrimCommon.

Definition at line 62 of file PixelConfigBase.h.

62  {
63  std::cout << __LINE__ << " " << __PRETTY_FUNCTION__ << "\tUnimplemented method" << std::endl;
64  ;
65  }

References gather_cfg::cout.

◆ writeXML() [3/3]

virtual void pos::PixelConfigBase::writeXML ( std::ofstream *  out,
std::ofstream *  out1,
std::ofstream *  out2 
) const
inlinevirtual

◆ writeXMLHeader() [1/2]

virtual void pos::PixelConfigBase::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out 
) const
inlinevirtual

Reimplemented in pos::PixelFEDCard, and pos::PixelTrimCommon.

Definition at line 61 of file PixelConfigBase.h.

61 { ; }

◆ writeXMLHeader() [2/2]

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

◆ writeXMLTrailer() [1/2]

virtual void pos::PixelConfigBase::writeXMLTrailer ( std::ofstream *  out) const
inlinevirtual

Reimplemented in pos::PixelFEDCard, and pos::PixelTrimCommon.

Definition at line 66 of file PixelConfigBase.h.

66 { ; }

◆ writeXMLTrailer() [2/2]

virtual void pos::PixelConfigBase::writeXMLTrailer ( std::ofstream *  out,
std::ofstream *  ou1,
std::ofstream *  out2 
) const
inlinevirtual

Member Data Documentation

◆ comment_

std::string pos::PixelConfigBase::comment_
private

Definition at line 77 of file PixelConfigBase.h.

Referenced by getComment(), and setComment().

◆ creator_

std::string pos::PixelConfigBase::creator_
private

Definition at line 75 of file PixelConfigBase.h.

Referenced by getAuthor(), and setAuthor().

◆ date_

std::string pos::PixelConfigBase::date_
private

Definition at line 76 of file PixelConfigBase.h.

◆ description_

std::string pos::PixelConfigBase::description_
private

Definition at line 74 of file PixelConfigBase.h.

pos::PixelConfigBase::date
std::string date()
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pos::PixelConfigBase::creator
std::string creator()
pos::PixelConfigBase::comment_
std::string comment_
Definition: PixelConfigBase.h:77
pos::PixelConfigBase::description_
std::string description_
Definition: PixelConfigBase.h:74
pos::PixelConfigBase::date_
std::string date_
Definition: PixelConfigBase.h:76
pos::PixelConfigBase::description
std::string description()
base64_encode
std::string base64_encode(unsigned char const *, unsigned int len)
Definition: PixelBase64.cc:38
pos::PixelConfigBase::creator_
std::string creator_
Definition: PixelConfigBase.h:75