CMS 3D CMS Logo

PixelDACSettings.h
Go to the documentation of this file.
1 #ifndef PixelDACSettings_h
2 #define PixelDACSettings_h
3 
10 //
11 // This class provide a base class for the
12 // pixel ROC dac data for the pixel FEC configuration
13 // This is a pure interface (abstract class) that
14 // needs to have an implementation.
15 //
16 //
17 //
18 
19 #include <vector>
20 #include <string>
27 
28 namespace pos {
61  public:
63  //Added by Umesh
64  PixelDACSettings(std::vector<std::vector<std::string> >& tableMat);
65  // modified by MR on 10-01-2008 14:47:47
67  // modified by MR on 24-01-2008 14:28:14
68  void addROC(PixelROCDACSettings& rocname);
69 
70  PixelROCDACSettings getDACSettings(int ROCId) const;
72 
73  unsigned int numROCs() { return dacsettings_.size(); }
74 
75  //Generate the DAC settings
77  PixelNameTranslation* trans,
78  PixelDetectorConfig* detconfig,
79  bool HVon = true) const;
80  void setVcthrDisable(PixelFECConfigInterface* pixelFEC, PixelNameTranslation* trans) const;
82  PixelNameTranslation* trans,
83  PixelDetectorConfig* detconfig) const;
84 
85  void writeBinary(std::string filename) const;
86 
87  void writeASCII(std::string dir) const override;
88  void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
90  int version,
92  std::ofstream* out,
93  std::ofstream* out1 = nullptr,
94  std::ofstream* out2 = nullptr) const override;
95  void writeXML(std::ofstream* out, std::ofstream* out1 = nullptr, std::ofstream* out2 = nullptr) const override;
96  void writeXMLTrailer(std::ofstream* out,
97  std::ofstream* out1 = nullptr,
98  std::ofstream* out2 = nullptr) const override;
99 
100  friend std::ostream& operator<<(std::ostream& s, const PixelDACSettings& mask);
101 
102  private:
103  std::vector<PixelROCDACSettings> dacsettings_;
104 
105  bool rocIsDisabled(const PixelDetectorConfig* detconfig, const PixelROCName rocname) const;
106  };
107 } // namespace pos
108 
109 /* @} */
110 #endif
pos::PixelDACSettings::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelDACSettings.cc:431
pos::PixelFECConfigInterface
This class implements..
Definition: PixelFECConfigInterface.h:23
pos::PixelDetectorConfig
This is the documentation about PixelDetectorConfig...
Definition: PixelDetectorConfig.h:39
pos
Definition: PixelAliasList.h:18
pos::PixelDACSettings::writeXML
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
Definition: PixelDACSettings.h:88
pos::PixelDACSettings::setVcthrEnable
void setVcthrEnable(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, PixelDetectorConfig *detconfig) const
Definition: PixelDACSettings.cc:688
PixelROCName.h
This class stores the name and related hardware mappings for a ROC.
pos::PixelConfigBase
This file contains the base class for "pixel configuration data" management.
Definition: PixelConfigBase.h:32
pos::PixelDACSettings::numROCs
unsigned int numROCs()
Definition: PixelDACSettings.h:73
PixelFECConfigInterface.h
This class intends to define an abstract interface for the commands to talk to the PixelFEC.
PixelNameTranslation.h
This class provides a translation from the naming documents standard to specify the ROC to the corres...
pos::PixelROCDACSettings
This class implements..
Definition: PixelROCDACSettings.h:30
alignCSCRings.s
s
Definition: alignCSCRings.py:92
pos::PixelDACSettings::getDACSettings
PixelROCDACSettings getDACSettings(int ROCId) const
Definition: PixelDACSettings.cc:342
PixelConfigBase.h
This file contains the base class for "pixel configuration data" management.
PixelROCDACSettings.h
This class provide the data structure for the ROC DAC parameters.
pos::PixelDACSettings::setVcthrDisable
void setVcthrDisable(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans) const
Definition: PixelDACSettings.cc:621
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
pos::PixelDACSettings::dacsettings_
std::vector< PixelROCDACSettings > dacsettings_
Definition: PixelDACSettings.h:103
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelDACSettings::operator<<
friend std::ostream & operator<<(std::ostream &s, const PixelDACSettings &mask)
Definition: PixelDACSettings.cc:775
PixelDetectorConfig.h
This class specifies which detector components are used in the configuration (and eventually should s...
pos::PixelDACSettings::rocIsDisabled
bool rocIsDisabled(const PixelDetectorConfig *detconfig, const PixelROCName rocname) const
Definition: PixelDACSettings.cc:766
pos::PixelDACSettings::PixelDACSettings
PixelDACSettings(std::string filename)
Definition: PixelDACSettings.cc:32
pos::PixelConfigKey
This class implements..
Definition: PixelConfigKey.h:20
pos::PixelDACSettings::writeBinary
void writeBinary(std::string filename) const
Definition: PixelDACSettings.cc:353
pos::PixelDACSettings::writeASCII
void writeASCII(std::string dir) const override
Definition: PixelDACSettings.cc:361
pos::PixelROCName
This class implements..
Definition: PixelROCName.h:23
pos::PixelDACSettings
This class is responsible for manipulating the DACsettings of a ROC.
Definition: PixelDACSettings.h:60
pos::PixelDACSettings::generateConfiguration
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, PixelDetectorConfig *detconfig, bool HVon=true) const
Definition: PixelDACSettings.cc:496
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
pos::PixelDACSettings::writeXMLHeader
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelDACSettings.cc:375
PointingDoubleMultiSkim_cfg.out1
out1
Definition: PointingDoubleMultiSkim_cfg.py:57
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
pos::PixelNameTranslation
This is the documentation about PixelNameTranslation...
Definition: PixelNameTranslation.h:41
crabWrapper.key
key
Definition: crabWrapper.py:19
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
pos::PixelDACSettings::addROC
void addROC(PixelROCDACSettings &rocname)
Definition: PixelDACSettings.cc:137
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23