CMS 3D CMS Logo

PixelTBMSettings.h
Go to the documentation of this file.
1 #ifndef PixelTBMSettings_h
2 #define PixelTBMSettings_h
3 
11 #include <vector>
15 
16 namespace pos {
28  public:
29  PixelTBMSettings(std::vector<std::vector<std::string> > &tableMat);
31  // modified by MR on 29-04-2008 16:43:30
32  PixelTBMSettings() : PixelConfigBase("", "", "") { ; }
33 
34  ~PixelTBMSettings() override {}
35 
36  //Generate the DAC settings
38  PixelNameTranslation *trans,
39  bool physics = false,
40  bool doResets = true) const;
41 
42  void writeBinary(std::string filename) const;
43 
44  void writeASCII(std::string dir) const override;
45  void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
47  int version,
49  std::ofstream *out,
50  std::ofstream *out1 = nullptr,
51  std::ofstream *out2 = nullptr) const override;
52  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
53  void writeXMLTrailer(std::ofstream *out,
54  std::ofstream *out1 = nullptr,
55  std::ofstream *out2 = nullptr) const override;
56 
57  unsigned char getAnalogInputBias() const { return analogInputBias_; }
58  void setAnalogInputBias(unsigned char analogInputBias) { analogInputBias_ = analogInputBias; }
59 
60  unsigned char getAnalogOutputBias() const { return analogOutputBias_; }
61  void setAnalogOutputBias(unsigned char analogOutputBias) { analogOutputBias_ = analogOutputBias; }
62 
63  unsigned char getAnalogOutputGain() const { return analogOutputGain_; }
64  void setAnalogOutputGain(unsigned char analogOutputGain) { analogOutputGain_ = analogOutputGain; }
65 
66  // Added by Dario (Apr 2008)
67  bool getMode(void) const { return singlemode_; }
68  void setMode(bool mode) { singlemode_ = mode; }
69  PixelROCName const &getROCName() const { return rocid_; }
70  void setROCName(std::string rocname) {
71  PixelROCName tmp(rocname);
72  rocid_ = tmp;
73  }
75 
76  private:
79 
80  unsigned char analogInputBias_;
81  unsigned char analogOutputBias_;
82  unsigned char analogOutputGain_;
84  };
85 
86  std::ostream &operator<<(std::ostream &s, const PixelTBMSettings &mask);
87 } // namespace pos
88 /* @} */
89 #endif
EcalCondDBWriter_cfi.physics
physics
Definition: EcalCondDBWriter_cfi.py:51
pos::PixelTBMSettings::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelTBMSettings.cc:373
pos::PixelFECConfigInterface
This class implements..
Definition: PixelFECConfigInterface.h:23
pos::PixelTBMSettings::getMode
bool getMode(void) const
Definition: PixelTBMSettings.h:67
pos::PixelTBMSettings::analogOutputBias_
unsigned char analogOutputBias_
Definition: PixelTBMSettings.h:81
pos
Definition: PixelAliasList.h:18
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
pos::PixelModuleName
This class implements..
Definition: PixelModuleName.h:26
pos::PixelTBMSettings::generateConfiguration
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, bool physics=false, bool doResets=true) const
Definition: PixelTBMSettings.cc:239
pos::PixelConfigBase
This file contains the base class for "pixel configuration data" management.
Definition: PixelConfigBase.h:32
pos::PixelTBMSettings::getAnalogOutputBias
unsigned char getAnalogOutputBias() const
Definition: PixelTBMSettings.h:60
pos::PixelTBMSettings::writeASCII
void writeASCII(std::string dir) const override
Definition: PixelTBMSettings.cc:217
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
PixelFECConfigInterface.h
This class intends to define an abstract interface for the commands to talk to the PixelFEC.
pos::PixelTBMSettings
This is the documentation about PixelTBMSettings...
Definition: PixelTBMSettings.h:27
PixelNameTranslation.h
This class provides a translation from the naming documents standard to specify the ROC to the corres...
pos::PixelTBMSettings::writeBinary
void writeBinary(std::string filename) const
Definition: PixelTBMSettings.cc:205
pos::PixelTBMSettings::analogOutputGain_
unsigned char analogOutputGain_
Definition: PixelTBMSettings.h:82
pos::PixelTBMSettings::getROCName
const PixelROCName & getROCName() const
Definition: PixelTBMSettings.h:69
pos::PixelTBMSettings::getAnalogInputBias
unsigned char getAnalogInputBias() const
Definition: PixelTBMSettings.h:57
alignCSCRings.s
s
Definition: alignCSCRings.py:92
pos::PixelTBMSettings::moduleId_
PixelModuleName moduleId_
Definition: PixelTBMSettings.h:78
pos::PixelTBMSettings::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: PixelTBMSettings.cc:313
pos::PixelTBMSettings::setTBMGenericValue
void setTBMGenericValue(std::string, int)
Definition: PixelTBMSettings.cc:189
pos::PixelTBMSettings::~PixelTBMSettings
~PixelTBMSettings() override
Definition: PixelTBMSettings.h:34
PixelConfigBase.h
This file contains the base class for "pixel configuration data" management.
pos::PixelTBMSettings::setROCName
void setROCName(std::string rocname)
Definition: PixelTBMSettings.h:70
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
pos::PixelTBMSettings::writeXML
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
Definition: PixelTBMSettings.h:45
pos::PixelTBMSettings::rocid_
PixelROCName rocid_
Definition: PixelTBMSettings.h:77
pos::PixelTBMSettings::PixelTBMSettings
PixelTBMSettings()
Definition: PixelTBMSettings.h:32
pos::PixelTBMSettings::setAnalogOutputGain
void setAnalogOutputGain(unsigned char analogOutputGain)
Definition: PixelTBMSettings.h:64
pos::PixelConfigKey
This class implements..
Definition: PixelConfigKey.h:20
pos::PixelTBMSettings::setAnalogInputBias
void setAnalogInputBias(unsigned char analogInputBias)
Definition: PixelTBMSettings.h:58
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition: PixelCalibConfiguration.cc:1325
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
pos::PixelTBMSettings::setAnalogOutputBias
void setAnalogOutputBias(unsigned char analogOutputBias)
Definition: PixelTBMSettings.h:61
pos::PixelROCName
This class implements..
Definition: PixelROCName.h:23
pos::PixelTBMSettings::analogInputBias_
unsigned char analogInputBias_
Definition: PixelTBMSettings.h:80
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelTBMSettings::singlemode_
bool singlemode_
Definition: PixelTBMSettings.h:83
pos::PixelTBMSettings::setMode
void setMode(bool mode)
Definition: PixelTBMSettings.h:68
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
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::PixelTBMSettings::getAnalogOutputGain
unsigned char getAnalogOutputGain() const
Definition: PixelTBMSettings.h:63
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
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23