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::PixelMaskBase Class Referenceabstract

This is the documentation about PixelMaskBase... More...

#include <PixelMaskBase.h>

Inheritance diagram for pos::PixelMaskBase:
pos::PixelConfigBase pos::PixelMaskAllPixels pos::PixelMaskAllPixels

Public Member Functions

virtual const PixelROCMaskBitsgetMaskBits (int ROCId) const =0
 
virtual PixelROCMaskBitsgetMaskBits (PixelROCName name)=0
 
 PixelMaskBase (std::string description, std::string creator, std::string date)
 
void setOverride (PixelMaskOverrideBase *)
 
virtual void writeASCII (std::string filename) const =0
 
virtual void writeBinary (std::string filename) const =0
 
virtual 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 ~PixelMaskBase ()
 
- 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

PixelMaskOverrideBasemaskOverride_
 

Friends

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

Detailed Description

This is the documentation about PixelMaskBase...

" "

This class provide a base class for the pixel mask data for the pixel FEC configuration This is a pure interface (abstract class) that needs to have an implementation.

All applications should just use this interface and not care about the specific implementation

Definition at line 36 of file PixelMaskBase.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file PixelMaskBase.cc.

19  :
21 }
std::string description()
std::string date()
std::string creator()
PixelConfigBase(std::string description, std::string creator, std::string date)
PixelMaskBase::~PixelMaskBase ( )
virtual

Definition at line 24 of file PixelMaskBase.cc.

24 {}

Member Function Documentation

virtual const PixelROCMaskBits& pos::PixelMaskBase::getMaskBits ( int  ROCId) const
pure virtual
virtual PixelROCMaskBits* pos::PixelMaskBase::getMaskBits ( PixelROCName  name)
pure virtual

Implemented in pos::PixelMaskAllPixels.

void PixelMaskBase::setOverride ( PixelMaskOverrideBase override)

Definition at line 26 of file PixelMaskBase.cc.

References maskOverride_.

26  {
27  maskOverride_=override;
28 }
PixelMaskOverrideBase * maskOverride_
Definition: PixelMaskBase.h:77
virtual void pos::PixelMaskBase::writeASCII ( std::string  filename) const
pure virtual
virtual void pos::PixelMaskBase::writeBinary ( std::string  filename) const
pure virtual
virtual void pos::PixelMaskBase::writeXML ( pos::PixelConfigKey  key,
int  version,
std::string  path 
) const
inlinevirtual

Reimplemented from pos::PixelConfigBase.

Reimplemented in pos::PixelMaskAllPixels, and pos::PixelMaskAllPixels.

Definition at line 56 of file PixelMaskBase.h.

56 {;}
virtual void pos::PixelMaskBase::writeXML ( std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
inlinevirtual

Reimplemented from pos::PixelConfigBase.

Reimplemented in pos::PixelMaskAllPixels.

Definition at line 64 of file PixelMaskBase.h.

66  {;}
virtual void pos::PixelMaskBase::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
inlinevirtual

Reimplemented from pos::PixelConfigBase.

Reimplemented in pos::PixelMaskAllPixels.

Definition at line 57 of file PixelMaskBase.h.

63  {;}
virtual void pos::PixelMaskBase::writeXMLTrailer ( std::ofstream *  out,
std::ofstream *  out1 = NULL,
std::ofstream *  out2 = NULL 
) const
inlinevirtual

Reimplemented from pos::PixelConfigBase.

Reimplemented in pos::PixelMaskAllPixels.

Definition at line 67 of file PixelMaskBase.h.

70  {;}

Friends And Related Function Documentation

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

Definition at line 30 of file PixelMaskBase.cc.

30  {
31 
32  s << mask.getMaskBits(0) <<std::endl;
33 
34  return s;
35 
36 }
virtual const PixelROCMaskBits & getMaskBits(int ROCId) const =0

Member Data Documentation

PixelMaskOverrideBase* pos::PixelMaskBase::maskOverride_
private

Definition at line 77 of file PixelMaskBase.h.

Referenced by setOverride().