CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
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 () const
 
unsigned char getAnalogOutputBias () const
 
unsigned char getAnalogOutputGain () const
 
bool getMode (void) const
 
PixelROCName const & getROCName () const
 
 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 override
 
void writeBinary (std::string filename) const
 
void writeXML (pos::PixelConfigKey key, int version, std::string path) const override
 
void writeXML (std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
 
void writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
 
void writeXMLTrailer (std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
 
 ~PixelTBMSettings () override
 
- 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_
 

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() [1/3]

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 20 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, cms::cuda::assert(), c, DMR_cfg::cerr, cuy::ins, dqmiodumpmetadata::n, rocid_, singlemode_, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

20  : PixelConfigBase("", "", "") {
21  std::string mthn = "]\t[PixelTBMSettings::PixelTBMSettings()]\t\t\t ";
22  std::vector<std::string> ins = tableMat[0];
23  std::map<std::string, int> colM;
24  std::vector<std::string> colNames;
25 
49  colNames.push_back("CONFIG_KEY");
50  colNames.push_back("KEY_TYPE");
51  colNames.push_back("KEY_ALIAS");
52  colNames.push_back("VERSION");
53  colNames.push_back("KIND_OF_COND");
54  colNames.push_back("TBM_NAME");
55  colNames.push_back("MODULE_NAME");
56  colNames.push_back("HUB_ADDRS");
57  colNames.push_back("TBM_MODE");
58  colNames.push_back("ANLG_INBIAS_ADDR");
59  colNames.push_back("ANLG_INBIAS_VAL");
60  colNames.push_back("ANLG_OUTBIAS_ADDR");
61  colNames.push_back("ANLG_OUTBIAS_VAL");
62  colNames.push_back("ANLG_OUTGAIN_ADDR");
63  colNames.push_back("ANLG_OUTGAIN_VAL");
64 
65  for (unsigned int c = 0; c < ins.size(); c++) {
66  for (unsigned int n = 0; n < colNames.size(); n++) {
67  if (tableMat[0][c] == colNames[n]) {
68  colM[colNames[n]] = c;
69  break;
70  }
71  }
72  } //end for
73  for (unsigned int n = 0; n < colNames.size(); n++) {
74  if (colM.find(colNames[n]) == colM.end()) {
75  std::cerr << __LINE__ << mthn << "Couldn't find in the database the column with name " << colNames[n]
76  << std::endl;
77  assert(0);
78  }
79  }
80 
81  if (tableMat.size() > 1) {
82  //std::cout << __LINE__ << mthn << "Module from DB: " << tableMat[1][colM["MODULE_NAME"]]<< std::endl ;
83  PixelROCName tmp(tableMat[1][colM["MODULE_NAME"]]);
84  rocid_ = tmp;
85  //std::cout << __LINE__ << mthn << "Built ROCNAME: " << rocid_.rocname()<< std::endl ;
86 
87  analogInputBias_ = atoi(tableMat[1][colM["ANLG_INBIAS_VAL"]].c_str());
88  analogOutputBias_ = atoi(tableMat[1][colM["ANLG_OUTBIAS_VAL"]].c_str());
89  analogOutputGain_ = atoi(tableMat[1][colM["ANLG_OUTGAIN_VAL"]].c_str());
90 
91  if (tableMat[1][colM["TBM_MODE"]] == "SingleMode") {
92  singlemode_ = true;
93  } else {
94  singlemode_ = false;
95  }
96  }
97 } //end contructor
unsigned char analogOutputBias_
unsigned char analogOutputGain_
assert(be >=bs)
ins
Definition: cuy.py:313
unsigned char analogInputBias_
This class implements..
Definition: PixelROCName.h:23
tmp
align.sh
Definition: createJobs.py:716
PixelConfigBase(std::string description, std::string creator, std::string date)

◆ PixelTBMSettings() [2/3]

PixelTBMSettings::PixelTBMSettings ( std::string  filename)

Definition at line 101 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, cms::cuda::assert(), c, gather_cfg::cout, corrVsCorr::filename, mps_fire::i, recoMuon::in, rocid_, singlemode_, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and createJobs::tmp.

101  : PixelConfigBase("", "", "") {
102  std::string mthn = "]\t[PixelTBMSettings::PixelTBMSettings()]\t\t\t ";
103  if (filename[filename.size() - 1] == 't') {
104  std::ifstream in(filename.c_str());
105 
106  if (!in.good()) {
107  std::cout << __LINE__ << mthn << "Could not open:" << filename << std::endl;
108  throw std::runtime_error("Failed to open file " + filename);
109  } else {
110  // std::cout << "Opened:"<<filename<<std::endl;
111  }
112 
114 
116 
117  rocid_ = tmp;
118 
119  unsigned int tmpint;
120 
121  in >> tag;
122  //std::cout << "Tag="<<tag<<std::endl;
123  assert(tag == "AnalogInputBias:");
124  in >> tmpint;
125  analogInputBias_ = tmpint;
126 
127  in >> tag;
128  //std::cout << "Tag="<<tag<<std::endl;
129  assert(tag == "AnalogOutputBias:");
130  in >> tmpint;
131  analogOutputBias_ = tmpint;
132 
133  in >> tag;
134  //std::cout << "Tag="<<tag<<std::endl;
135  assert(tag == "AnalogOutputGain:");
136  in >> tmpint;
137  analogOutputGain_ = tmpint;
138 
139  in >> tag;
140  //std::cout << "Tag="<<tag<<std::endl;
141  assert(tag == "Mode:");
142  in >> tag;
143  assert(tag == "SingleMode" || tag == "DualMode");
144 
145  singlemode_ = true;
146 
147  if (tag == "DualMode")
148  singlemode_ = false;
149 
150  in.close();
151 
152  } else {
153  std::ifstream in(filename.c_str(), std::ios::binary);
154 
155  if (!in.good()) {
156  std::cout << __LINE__ << mthn << "Could not open:" << filename << std::endl;
157  assert(0);
158  } else {
159  std::cout << __LINE__ << mthn << "Opened:" << filename << std::endl;
160  }
161 
162  char nchar;
163  std::string s1;
164 
165  in.read(&nchar, 1);
166 
167  s1.clear();
168 
169  //wrote these lines of code without ref. needs to be fixed
170  for (int i = 0; i < nchar; i++) {
171  char c;
172  in >> c;
173  s1.push_back(c);
174  }
175 
176  PixelROCName tmp(s1);
177 
178  rocid_ = tmp;
179 
180  in >> analogInputBias_;
183  in >> singlemode_;
184 
185  in.close();
186  }
187 }
unsigned char analogOutputBias_
unsigned char analogOutputGain_
assert(be >=bs)
unsigned char analogInputBias_
This class implements..
Definition: PixelROCName.h:23
tmp
align.sh
Definition: createJobs.py:716
PixelConfigBase(std::string description, std::string creator, std::string date)

◆ PixelTBMSettings() [3/3]

pos::PixelTBMSettings::PixelTBMSettings ( )
inline

Definition at line 32 of file PixelTBMSettings.h.

32 : PixelConfigBase("", "", "") { ; }
PixelConfigBase(std::string description, std::string creator, std::string date)

◆ ~PixelTBMSettings()

pos::PixelTBMSettings::~PixelTBMSettings ( )
inlineoverride

Definition at line 34 of file PixelTBMSettings.h.

34 {}

Member Function Documentation

◆ generateConfiguration()

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

Definition at line 239 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, pos::PixelFECConfigInterface::callatencycount(), pos::PixelFECConfigInterface::disableexttrigger(), pos::PixelFECConfigInterface::enablecallatency(), pos::PixelNameTranslation::getHdwAddress(), pos::PixelHdwAddress::hubaddress(), pos::PixelFECConfigInterface::injectrstroc(), pos::PixelFECConfigInterface::injectrsttbm(), pos::PixelFECConfigInterface::injecttrigger(), pos::PixelHdwAddress::mfec(), pos::PixelHdwAddress::mfecchannel(), rocid_, singlemode_, and pos::PixelFECConfigInterface::tbmcmd().

242  {
243  PixelHdwAddress theROC = *(trans->getHdwAddress(rocid_));
244 
245  int mfec = theROC.mfec();
246  int mfecchannel = theROC.mfecchannel();
247  int tbmchannel = 14;
248  int tbmchannelB = 15;
249  int hubaddress = theROC.hubaddress();
250 
251  if (doResets) {
252  pixelFEC->injectrsttbm(mfec, 1);
253  pixelFEC->injectrstroc(mfec, 1);
254  }
255  pixelFEC->enablecallatency(mfec, 0);
256  pixelFEC->disableexttrigger(mfec, 0);
257  pixelFEC->injecttrigger(mfec, 0);
258  pixelFEC->callatencycount(mfec, 79);
259 
260  //pixelFEC->synccontrolregister(mfec);
261 
262  //Reset TBM and reset ROC
263  if (doResets)
264  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 2, 0x14, 0);
265  //setting speed to 40MHz
266  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 0, 1, 0);
267  // setting the mode, we should always stay in the CAL mode
268  // since the EventNumberClear Mode does not work correctly
269  //if (physics) { // comment out, stau always in the CAL mode, d.k. 27/09/09
270  //pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 1, 0x80, 0);
271  //} else {
272  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 1, 0xc0, 0);
273  //}
274  //Enable token and analog output
275  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 4, 0x0, 0);
276 
277  //Analog input bias
278  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 5, analogInputBias_, 0);
279  //Analog output bias
280  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 6, analogOutputBias_, 0);
281  //Analog output gain
282  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannel, hubaddress, 4, 7, analogOutputGain_, 0);
283 
284  //setting speed to 40MHz
285  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannelB, hubaddress, 4, 0, 1, 0);
286  //pre-calibration, stay always in this mode
287  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannelB, hubaddress, 4, 1, 0xc0, 0);
288  //Reset TBM and reset ROC
289  if (doResets)
290  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannelB, hubaddress, 4, 2, 0x14, 0);
291  //Enable token and analog output
292  if (singlemode_) {
293  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannelB, hubaddress, 4, 4, 0x3, 0);
294  } else {
295  pixelFEC->tbmcmd(mfec, mfecchannel, tbmchannelB, hubaddress, 4, 4, 0x0, 0);
296  }
297 }
virtual int tbmcmd(int mfec, int fecchannel, int tbmchannel, int hubaddress, int portaddress, int offset, int databyte, int direction)=0
unsigned char analogOutputBias_
virtual int enablecallatency(const int mfec, const int bitstate)=0
unsigned int mfec() const
unsigned char analogOutputGain_
virtual int injecttrigger(const int mfec, const int bitstate)=0
virtual int disableexttrigger(const int mfec, const int bitstate)=0
Store mfec, mfecchannel etc.
const PixelHdwAddress * getHdwAddress(const PixelROCName &aROC) const
virtual int injectrstroc(const int mfec, const int bitstate)=0
unsigned int mfecchannel() const
unsigned char analogInputBias_
virtual int callatencycount(const int mfec, const int latency)=0
unsigned int hubaddress() const
virtual int injectrsttbm(const int mfec, const int bitstate)=0

◆ getAnalogInputBias()

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

Definition at line 57 of file PixelTBMSettings.h.

References analogInputBias_.

Referenced by pos::operator<<().

57 { return analogInputBias_; }
unsigned char analogInputBias_

◆ getAnalogOutputBias()

unsigned char pos::PixelTBMSettings::getAnalogOutputBias ( ) const
inline

Definition at line 60 of file PixelTBMSettings.h.

References analogOutputBias_.

Referenced by pos::operator<<().

60 { return analogOutputBias_; }
unsigned char analogOutputBias_

◆ getAnalogOutputGain()

unsigned char pos::PixelTBMSettings::getAnalogOutputGain ( ) const
inline

Definition at line 63 of file PixelTBMSettings.h.

References analogOutputGain_.

Referenced by pos::operator<<().

63 { return analogOutputGain_; }
unsigned char analogOutputGain_

◆ getMode()

bool pos::PixelTBMSettings::getMode ( void  ) const
inline

Definition at line 67 of file PixelTBMSettings.h.

References singlemode_.

Referenced by pos::operator<<().

67 { return singlemode_; }

◆ getROCName()

PixelROCName const& pos::PixelTBMSettings::getROCName ( ) const
inline

Definition at line 69 of file PixelTBMSettings.h.

References rocid_.

Referenced by pos::operator<<().

69 { return rocid_; }

◆ setAnalogInputBias()

void pos::PixelTBMSettings::setAnalogInputBias ( unsigned char  analogInputBias)
inline

Definition at line 58 of file PixelTBMSettings.h.

References analogInputBias_.

58 { analogInputBias_ = analogInputBias; }
unsigned char analogInputBias_

◆ setAnalogOutputBias()

void pos::PixelTBMSettings::setAnalogOutputBias ( unsigned char  analogOutputBias)
inline

Definition at line 61 of file PixelTBMSettings.h.

References analogOutputBias_.

61 { analogOutputBias_ = analogOutputBias; }
unsigned char analogOutputBias_

◆ setAnalogOutputGain()

void pos::PixelTBMSettings::setAnalogOutputGain ( unsigned char  analogOutputGain)
inline

Definition at line 64 of file PixelTBMSettings.h.

References analogOutputGain_.

64 { analogOutputGain_ = analogOutputGain; }
unsigned char analogOutputGain_

◆ setMode()

void pos::PixelTBMSettings::setMode ( bool  mode)
inline

◆ setROCName()

void pos::PixelTBMSettings::setROCName ( std::string  rocname)
inline

Definition at line 70 of file PixelTBMSettings.h.

References rocid_, and createJobs::tmp.

70  {
71  PixelROCName tmp(rocname);
72  rocid_ = tmp;
73  }
tmp
align.sh
Definition: createJobs.py:716

◆ setTBMGenericValue()

void PixelTBMSettings::setTBMGenericValue ( std::string  what,
int  value 
)

Definition at line 189 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, cms::cuda::assert(), electrons_cff::bool, gather_cfg::cout, and singlemode_.

189  {
190  if (what == "analogInputBias") {
191  analogInputBias_ = (unsigned char)value;
192  } else if (what == "analogOutputBias") {
193  analogOutputBias_ = (unsigned char)value;
194  } else if (what == "analogOutputGain") {
195  analogOutputGain_ = (unsigned char)value;
196  } else if (what == "Mode") {
198  } else {
199  std::cout << __LINE__ << "]\t[PixelTBMSettings::setTBMGenericValue()]\t\tFATAL: invalid key/value pair: " << what
200  << "/" << value << std::endl;
201  assert(0);
202  }
203 }
unsigned char analogOutputBias_
unsigned char analogOutputGain_
assert(be >=bs)
Definition: value.py:1
unsigned char analogInputBias_

◆ writeASCII()

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

Implements pos::PixelConfigBase.

Definition at line 217 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, DeadROC_duringRun::dir, corrVsCorr::filename, createfilelist::int, callgraph::module, MillePedeFileConverter_cfg::out, rocid_, pos::PixelROCName::rocname(), singlemode_, and AlCaHLTBitMon_QueryRunRegistry::string.

217  {
219 
220  if (!dir.empty())
221  dir += "/";
222  std::string filename = dir + "TBM_module_" + module.modulename() + ".dat";
223 
224  std::ofstream out(filename.c_str());
225 
226  out << rocid_.rocname() << std::endl;
227 
228  out << "AnalogInputBias: " << (int)analogInputBias_ << std::endl;
229  out << "AnalogOutputBias: " << (int)analogOutputBias_ << std::endl;
230  out << "AnalogOutputGain: " << (int)analogOutputGain_ << std::endl;
231  out << "Mode: ";
232  if (singlemode_) {
233  out << "SingleMode" << std::endl;
234  } else {
235  out << "DualMode" << std::endl;
236  }
237 }
unsigned char analogOutputBias_
unsigned char analogOutputGain_
std::string rocname() const
unsigned char analogInputBias_
This class implements..

◆ writeBinary()

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

Definition at line 205 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, corrVsCorr::filename, MillePedeFileConverter_cfg::out, rocid_, pos::PixelROCName::rocname(), and singlemode_.

205  {
206  std::ofstream out(filename.c_str(), std::ios::binary);
207 
208  out << (char)rocid_.rocname().size();
209  out.write(rocid_.rocname().c_str(), rocid_.rocname().size());
210 
214  out << singlemode_;
215 }
unsigned char analogOutputBias_
unsigned char analogOutputGain_
std::string rocname() const
unsigned char analogInputBias_

◆ writeXML() [1/2]

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

Reimplemented from pos::PixelConfigBase.

Definition at line 45 of file PixelTBMSettings.h.

45 { ; }

◆ writeXML() [2/2]

void PixelTBMSettings::writeXML ( std::ofstream *  out,
std::ofstream *  out1 = nullptr,
std::ofstream *  out2 = nullptr 
) const
overridevirtual

Reimplemented from pos::PixelConfigBase.

Definition at line 354 of file PixelTBMSettings.cc.

References analogInputBias_, analogOutputBias_, analogOutputGain_, createfilelist::int, callgraph::module, rocid_, pos::PixelROCName::rocname(), singlemode_, and AlCaHLTBitMon_QueryRunRegistry::string.

354  {
355  std::string mthn = "]\t[PixelTBMSettings::writeXML()]\t\t\t ";
356 
358 
359  *outstream << " <DATA>" << std::endl;
360  *outstream << " <MODULE_NAME>" << rocid_.rocname() << "</MODULE_NAME>" << std::endl;
361  *outstream << " <ANLG_INBIAS_VAL>" << (int)analogInputBias_ << "</ANLG_INBIAS_VAL>" << std::endl;
362  *outstream << " <ANLG_OUTBIAS_VAL>" << (int)analogOutputBias_ << "</ANLG_OUTBIAS_VAL>" << std::endl;
363  *outstream << " <ANLG_OUTGAIN_VAL>" << (int)analogOutputGain_ << "</ANLG_OUTGAIN_VAL>" << std::endl;
364  if (singlemode_) {
365  *outstream << " <TBM_MODE>SingleMode</TBM_MODE>" << std::endl;
366  } else {
367  *outstream << " <TBM_MODE>DualMode</TBM_MODE>" << std::endl;
368  }
369  *outstream << " </DATA>" << std::endl;
370 }
unsigned char analogOutputBias_
unsigned char analogOutputGain_
std::string rocname() const
unsigned char analogInputBias_
This class implements..

◆ writeXMLHeader()

void PixelTBMSettings::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out,
std::ofstream *  out1 = nullptr,
std::ofstream *  out2 = nullptr 
) const
overridevirtual

Reimplemented from pos::PixelConfigBase.

Definition at line 313 of file PixelTBMSettings.cc.

References gather_cfg::cout, contentValuesFiles::fullPath, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), castor_dqm_sourceclient_file_cfg::path, AlCaHLTBitMon_QueryRunRegistry::string, and BeamSplash_cfg::version.

318  {
319  std::string mthn = "]\t[PixelTBMSettings::writeXMLHeader()]\t\t\t ";
320  std::stringstream fullPath;
321  fullPath << path << "/Pixel_TbmParameters_" << PixelTimeFormatter::getmSecTime() << ".xml";
322  std::cout << __LINE__ << mthn << "Writing to: " << fullPath.str() << std::endl;
323 
324  outstream->open(fullPath.str().c_str());
325 
326  *outstream << "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" << std::endl;
327  *outstream << "<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>" << std::endl;
328  *outstream << " <HEADER>" << std::endl;
329  *outstream << " <TYPE>" << std::endl;
330  *outstream << " <EXTENSION_TABLE_NAME>PIXEL_TBM_PARAMETERS</EXTENSION_TABLE_NAME>" << std::endl;
331  *outstream << " <NAME>Pixel TBM Parameters</NAME>" << std::endl;
332  *outstream << " </TYPE>" << std::endl;
333  *outstream << " <RUN>" << std::endl;
334  *outstream << " <RUN_TYPE>Pixel TBM Parameters</RUN_TYPE>" << std::endl;
335  *outstream << " <RUN_NUMBER>1</RUN_NUMBER>" << std::endl;
336  *outstream << " <RUN_BEGIN_TIMESTAMP>" << pos::PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>"
337  << std::endl;
338  *outstream << " <LOCATION>CERN P5</LOCATION>" << std::endl;
339  *outstream << " </RUN>" << std::endl;
340  *outstream << " </HEADER>" << std::endl;
341  *outstream << "" << std::endl;
342  *outstream << " <DATA_SET>" << std::endl;
343  *outstream << " <PART>" << std::endl;
344  *outstream << " <NAME_LABEL>CMS-PIXEL-ROOT</NAME_LABEL>" << std::endl;
345  *outstream << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl;
346  *outstream << " </PART>" << std::endl;
347  *outstream << " <VERSION>" << version << "</VERSION>" << std::endl;
348  *outstream << " <COMMENT_DESCRIPTION>" << getComment() << "</COMMENT_DESCRIPTION>" << std::endl;
349  *outstream << " <CREATED_BY_USER>" << getAuthor() << "</CREATED_BY_USER>" << std::endl;
350  *outstream << " " << std::endl;
351 }
std::string getComment() const
static std::string getmSecTime(void)
static std::string getTime(void)
std::string getAuthor() const

◆ writeXMLTrailer()

void PixelTBMSettings::writeXMLTrailer ( std::ofstream *  out,
std::ofstream *  out1 = nullptr,
std::ofstream *  out2 = nullptr 
) const
overridevirtual

Reimplemented from pos::PixelConfigBase.

Definition at line 373 of file PixelTBMSettings.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

375  {
376  std::string mthn = "]\t[PixelTBMSettings::writeXMLTrailer()]\t\t\t ";
377 
378  *outstream << " " << std::endl;
379  *outstream << " </DATA_SET>" << std::endl;
380  *outstream << "</ROOT> " << std::endl;
381 
382  outstream->close();
383 }

Member Data Documentation

◆ analogInputBias_

unsigned char pos::PixelTBMSettings::analogInputBias_
private

◆ analogOutputBias_

unsigned char pos::PixelTBMSettings::analogOutputBias_
private

◆ analogOutputGain_

unsigned char pos::PixelTBMSettings::analogOutputGain_
private

◆ moduleId_

PixelModuleName pos::PixelTBMSettings::moduleId_
private

Definition at line 78 of file PixelTBMSettings.h.

◆ rocid_

PixelROCName pos::PixelTBMSettings::rocid_
private

◆ singlemode_

bool pos::PixelTBMSettings::singlemode_
private