CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions
pos::PixelFEDCard Class Reference

This is the documentation about PixelFEDCard... More...

#include <PixelFEDCard.h>

Inheritance diagram for pos::PixelFEDCard:
pos::PixelConfigBase

Public Member Functions

unsigned long long enabledChannels ()
 
 PixelFEDCard ()
 
 PixelFEDCard (std::string filename)
 
 PixelFEDCard (std::vector< std::vector< std::string > > &tab)
 
void readDBROCLevels (std::vector< std::vector< std::string > > &tableMat, int first, int last)
 
void readDBTBMLevels (std::vector< std::vector< std::string > > &tableMat, int first, int last)
 
void restoreBaselinAndChannelMasks ()
 
void restoreControlAndModeRegister ()
 
void setChannel (unsigned int iChannel, bool mode)
 
bool useChannel (unsigned int iChannel)
 
void writeASCII (std::string dir="") const
 
void writeXML (pos::PixelConfigKey key, int version, std::string path) const
 
virtual void writeXML (std::ofstream *out) const
 
virtual void writeXML (std::ofstream *fedstream, std::ofstream *rocstream, std::ofstream *tbmstream) 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 *fedstream, std::ofstream *roclvlstream, std::ofstream *tbmlvlsteram) const
 
virtual void writeXMLTrailer (std::ofstream *out) const
 
virtual void writeXMLTrailer (std::ofstream *fedstream, std::ofstream *recostream, std::ofstream *tbmstream) const
 
 ~PixelFEDCard ()
 
- 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 ~PixelConfigBase ()
 

Public Attributes

int BlackHi [36]
 
int BlackLo [36]
 
unsigned int Ccntrl
 
int Ccntrl_original
 
unsigned int ClkDes2
 
unsigned int clkphs10_18
 
unsigned int clkphs19_27
 
unsigned int clkphs1_9
 
unsigned int clkphs28_36
 
int CoarseDel
 
int DelayCh [36]
 
int Errlvl
 
unsigned long FEDBASE_0
 
unsigned long fedNumber
 
int FedTTCDelay
 
int fifo3Wrnlvl
 
int FineDes1Del
 
int FineDes2Del
 
int modeRegister
 
int modeRegister_original
 
int N_hitlimit
 
unsigned int N_Pword
 
unsigned int N_TBMmask
 
int N_testreg
 
unsigned int Nadcg
 
unsigned int Nbaseln
 
int Nbaseln_original
 
int NC_hitlimit
 
unsigned int NC_Pword
 
unsigned int NC_TBMmask
 
int NC_testreg
 
unsigned int NCadcg
 
unsigned int NCbaseln
 
int NCbaseln_original
 
unsigned int NCcntrl
 
unsigned int NCcntrl_original
 
int NCfifo1Bzlvl
 
unsigned int Ncntrl
 
unsigned int Ncntrl_original
 
int Nfifo1Bzlvl
 
int NRocs [36]
 
int offs_dac [36]
 
int Ooslvl
 
int opt_cap [3]
 
int opt_inadj [3]
 
int opt_ouadj [3]
 
int ROC_L0 [36][26]
 
int ROC_L1 [36][26]
 
int ROC_L2 [36][26]
 
int ROC_L3 [36][26]
 
int ROC_L4 [36][26]
 
int S_hitlimit
 
unsigned int S_Pword
 
unsigned int S_TBMmask
 
int S_testreg
 
unsigned int Sadcg
 
unsigned int Sbaseln
 
int Sbaseln_original
 
int SC_hitlimit
 
unsigned int SC_Pword
 
unsigned int SC_TBMmask
 
int SC_testreg
 
unsigned int SCadcg
 
unsigned int SCbaseln
 
int SCbaseln_original
 
unsigned int SCcntrl
 
unsigned int SCcntrl_original
 
int SCfifo1Bzlvl
 
unsigned int Scntrl
 
unsigned int Scntrl_original
 
int Sfifo1Bzlvl
 
unsigned int SpecialDac
 
int TBM_L0 [36]
 
int TBM_L1 [36]
 
int TBM_L2 [36]
 
int TBM_L3 [36]
 
int TBM_L4 [36]
 
int TRL_L0 [36]
 
int TRL_L1 [36]
 
int TRL_L2 [36]
 
int TRL_L3 [36]
 
int TRL_L4 [36]
 
int Ublack [36]
 

Private Member Functions

void clear (void)
 

Detailed Description

This is the documentation about PixelFEDCard...

" "

The structure which holds all the informations needed to setup a pixel FED. Danek Kotlinski 18/4/06

Definition at line 26 of file PixelFEDCard.h.

Constructor & Destructor Documentation

PixelFEDCard::PixelFEDCard ( )

Definition at line 19 of file PixelFEDCard.cc.

References clear().

19  :
20  PixelConfigBase(" "," "," ")
21 {
22  clear();
23 }
PixelConfigBase(std::string description, std::string creator, std::string date)
pos::PixelFEDCard::PixelFEDCard ( std::string  filename)
pos::PixelFEDCard::PixelFEDCard ( std::vector< std::vector< std::string > > &  tab)
pos::PixelFEDCard::~PixelFEDCard ( )
inline

Definition at line 46 of file PixelFEDCard.h.

46 {};

Member Function Documentation

void PixelFEDCard::clear ( void  )
private

Definition at line 944 of file PixelFEDCard.cc.

References BlackHi, BlackLo, Ccntrl, ClkDes2, clkphs10_18, clkphs19_27, clkphs1_9, clkphs28_36, CoarseDel, DelayCh, Errlvl, FEDBASE_0, fedNumber, fifo3Wrnlvl, FineDes1Del, FineDes2Del, i, j, modeRegister, N_Pword, N_TBMmask, Nadcg, Nbaseln, NC_Pword, NC_TBMmask, NCadcg, NCbaseln, NCcntrl, NCfifo1Bzlvl, Ncntrl, Nfifo1Bzlvl, offs_dac, Ooslvl, opt_cap, opt_inadj, opt_ouadj, ROC_L0, ROC_L1, ROC_L2, ROC_L3, ROC_L4, S_Pword, S_TBMmask, Sadcg, Sbaseln, SC_Pword, SC_TBMmask, SCadcg, SCbaseln, SCcntrl, SCfifo1Bzlvl, Scntrl, Sfifo1Bzlvl, SpecialDac, TBM_L0, TBM_L1, TBM_L2, TBM_L3, TBM_L4, TRL_L0, TRL_L1, TRL_L2, TRL_L3, TRL_L4, and Ublack.

Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), PixelFEDCard(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().

945 {
946  FEDBASE_0 = 0 ;
947  fedNumber = 999 ;
948  for(int i=0;i<36;i++){
949  NRocs[i] = 0;
950  offs_dac[i] = 0;
951  BlackHi[i] = 0;
952  BlackLo[i] = 0;
953  Ublack[i] = 0;
954  DelayCh[i] = 0;
955  TBM_L0[i] = 0;
956  TBM_L1[i] = 0;
957  TBM_L2[i] = 0;
958  TBM_L3[i] = 0;
959  TBM_L4[i] = 0;
960  TRL_L0[i] = 0;
961  TRL_L1[i] = 0;
962  TRL_L2[i] = 0;
963  TRL_L3[i] = 0;
964  TRL_L4[i] = 0;
965  }
966  for(int i=0;i<3;i++){
967  opt_cap[i] = 0;
968  opt_inadj[i] = 0;
969  opt_ouadj[i] = 0;
970  }
971  clkphs1_9 = 0;
972  clkphs10_18 = 0;
973  clkphs19_27 = 0;
974  clkphs28_36 = 0;
975 
976  for(int i=0;i<36;i++) {
977  for(int j=0;j<26;j++) {
978  ROC_L0[i][j] = 0;
979  ROC_L1[i][j] = 0;
980  ROC_L2[i][j] = 0;
981  ROC_L3[i][j] = 0;
982  ROC_L4[i][j] = 0;
983  }
984  }
985  Ncntrl = 0;
986  NCcntrl = 0;
987  SCcntrl = 0;
988  Scntrl = 0;
989  CoarseDel = 0;
990  ClkDes2 = 0;
991  FineDes2Del = 0;
992  FineDes1Del = 0;
993  Ccntrl = 0;
994  modeRegister = 0;
995  Nadcg = 0;
996  NCadcg = 0;
997  SCadcg = 0;
998  Sadcg = 0;
999  Nbaseln = 0;
1000  NCbaseln = 0;
1001  SCbaseln = 0;
1002  Sbaseln = 0;
1003  N_TBMmask = 0;
1004  NC_TBMmask = 0;
1005  SC_TBMmask = 0;
1006  S_TBMmask = 0;
1007  N_Pword = 0;
1008  NC_Pword = 0;
1009  SC_Pword = 0;
1010  S_Pword = 0;
1011  SpecialDac = 0;
1012  Ooslvl = 0;
1013  Errlvl = 0;
1014  Nfifo1Bzlvl = 0;
1015  NCfifo1Bzlvl = 0;
1016  SCfifo1Bzlvl = 0;
1017  Sfifo1Bzlvl = 0;
1018  fifo3Wrnlvl = 0;
1019 }
int i
Definition: DBlmapReader.cc:9
unsigned long FEDBASE_0
Definition: PixelFEDCard.h:155
int ROC_L3[36][26]
Definition: PixelFEDCard.h:93
unsigned int ClkDes2
Definition: PixelFEDCard.h:114
unsigned int SC_Pword
Definition: PixelFEDCard.h:107
unsigned int NCbaseln
Definition: PixelFEDCard.h:129
unsigned int Scntrl
Definition: PixelFEDCard.h:97
unsigned int S_Pword
Definition: PixelFEDCard.h:107
unsigned int SCbaseln
Definition: PixelFEDCard.h:129
int ROC_L4[36][26]
Definition: PixelFEDCard.h:93
unsigned int Sadcg
Definition: PixelFEDCard.h:126
unsigned int Sbaseln
Definition: PixelFEDCard.h:129
unsigned int NC_TBMmask
Definition: PixelFEDCard.h:104
unsigned int Nbaseln
Definition: PixelFEDCard.h:129
int j
Definition: DBlmapReader.cc:9
unsigned int N_TBMmask
Definition: PixelFEDCard.h:104
unsigned int Nadcg
Definition: PixelFEDCard.h:126
unsigned int S_TBMmask
Definition: PixelFEDCard.h:104
int ROC_L0[36][26]
Definition: PixelFEDCard.h:93
unsigned int Ccntrl
Definition: PixelFEDCard.h:117
unsigned int NC_Pword
Definition: PixelFEDCard.h:107
unsigned int NCadcg
Definition: PixelFEDCard.h:126
unsigned int SCadcg
Definition: PixelFEDCard.h:126
unsigned int SC_TBMmask
Definition: PixelFEDCard.h:104
unsigned int clkphs1_9
Definition: PixelFEDCard.h:79
unsigned int clkphs19_27
Definition: PixelFEDCard.h:79
unsigned int clkphs10_18
Definition: PixelFEDCard.h:79
unsigned int N_Pword
Definition: PixelFEDCard.h:107
unsigned int SpecialDac
Definition: PixelFEDCard.h:110
int ROC_L2[36][26]
Definition: PixelFEDCard.h:93
unsigned int Ncntrl
Definition: PixelFEDCard.h:97
unsigned int SCcntrl
Definition: PixelFEDCard.h:97
unsigned long fedNumber
Definition: PixelFEDCard.h:155
unsigned int NCcntrl
Definition: PixelFEDCard.h:97
unsigned int clkphs28_36
Definition: PixelFEDCard.h:79
int ROC_L1[36][26]
Definition: PixelFEDCard.h:93
unsigned long long PixelFEDCard::enabledChannels ( )

Definition at line 1824 of file PixelFEDCard.cc.

References NCcntrl, Ncntrl, SCcntrl, and Scntrl.

Referenced by setChannel(), and useChannel().

1824  {
1825  unsigned long long channels=0;
1826 // return a 64-bit word with low 36 bits set if a channel is enabled
1827 // if bits are set in the control registers, transfer of data from
1828 // fifo1 to fifo 2 is not done, meaning the channel is disabled.
1829  channels = (Ncntrl & 0x1ffLL); // Add LL for SLC4, d.k. 12/07
1830  channels += (NCcntrl & 0x1ffLL) << 9;
1831  channels += (SCcntrl & 0x1ffLL) << 18;
1832  channels += (Scntrl & 0x1ffLL) << 27;
1833  return ~channels; //bitwise complement to get enabled channels
1834 }
unsigned int Scntrl
Definition: PixelFEDCard.h:97
unsigned int Ncntrl
Definition: PixelFEDCard.h:97
unsigned int SCcntrl
Definition: PixelFEDCard.h:97
unsigned int NCcntrl
Definition: PixelFEDCard.h:97
void PixelFEDCard::readDBROCLevels ( std::vector< std::vector< std::string > > &  tableMat,
int  first,
int  last 
)

EXTERNAL_TABLE_NAME: ROC_ANALOG_LEVELS (VIEW: CONF_KEY_ROC_LEVELS_V)

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) ROC_NAME VARCHAR2(200) FED_ROC_NUM NUMBER(38) PIXEL_FED NUMBER(38) FED_CHAN NUMBER(38) ROC_L0 NOT NULL NUMBER(38) ROC_L0[1-36][1-21/24/8/16] indexes taken from FED_CHAN and FED_ROC_NUM respec. ROC_L1 NOT NULL NUMBER(38) ROC_L1[1-36][1-21/24/8/16] indexes taken from FED_CHAN and FED_ROC_NUM respec. ROC_L2 NOT NULL NUMBER(38) ROC_L2[1-36][1-21/24/8/16] indexes taken from FED_CHAN and FED_ROC_NUM respec. ROC_L3 NOT NULL NUMBER(38) ROC_L3[1-36][1-21/24/8/16] indexes taken from FED_CHAN and FED_ROC_NUM respec. ROC_L4 NOT NULL NUMBER(38) ROC_L4[1-36][1-21/24/8/16] indexes taken from FED_CHAN and FED_ROC_NUM respec. ROC_B NUMBER(38) ROC_UB NUMBER(38)

Definition at line 466 of file PixelFEDCard.cc.

References trackerHits::c, dtNoiseDBValidation_cfg::cerr, n, alignCSCRings::r, ROC_L0, ROC_L1, ROC_L2, ROC_L3, and ROC_L4.

467 {
468  string mthn = "[PixelFEDCard::readDBROCLevels()] ";
469  map<string , int > colM;
470  vector<string> colNames;
471 
494  colNames.push_back("CONFIG_KEY" );
495  colNames.push_back("KEY_TYPE" );
496  colNames.push_back("KEY_ALIAS" );
497  colNames.push_back("VERSION" );
498  colNames.push_back("KIND_OF_COND");
499  colNames.push_back("ROC_NAME" );
500  colNames.push_back("FED_ROC_NUM" );
501  colNames.push_back("PIXEL_FED" );
502  colNames.push_back("FED_CHAN" );
503  colNames.push_back("ROC_L0" );
504  colNames.push_back("ROC_L1" );
505  colNames.push_back("ROC_L2" );
506  colNames.push_back("ROC_L3" );
507  colNames.push_back("ROC_L4" );
508  colNames.push_back("ROC_B" );
509  colNames.push_back("ROC_UB" );
510 /*
511  colNames.push_back("CONFIG_KEY_ID" );
512  colNames.push_back("CONFIG_KEY" );
513  colNames.push_back("VERSION" );
514  colNames.push_back("KIND_OF_COND" );
515  colNames.push_back("PXLFED_NAME" );
516  colNames.push_back("FED_CHAN" );
517  colNames.push_back("AOH_CHAN" );
518  colNames.push_back("ROC_NAME" );
519  colNames.push_back("HUB_ADDRS" );
520  colNames.push_back("PORT_NUMBER" );
521  colNames.push_back("ROC_I2C_ADDR" );
522  colNames.push_back("GEOM_ROC_NUM" );
523  colNames.push_back("FED_ROC_NUM" );
524  colNames.push_back("ROC_L0" );
525  colNames.push_back("ROC_L1" );
526  colNames.push_back("ROC_L2" );
527  colNames.push_back("ROC_L3" );
528  colNames.push_back("ROC_L4" );
529 */
530  // Retrieve header row and cross check that everyfield is there.
531  for(unsigned int c = 0 ; c < tableMat[firstRow].size() ; c++)
532  {
533  for(unsigned int n=0; n<colNames.size(); n++)
534  {
535  if(tableMat[firstRow][c] == colNames[n]){
536  colM[colNames[n]] = c;
537  break;
538  }
539  }
540  }//end for
541  for(unsigned int n=0; n<colNames.size(); n++)
542  {
543  if(colM.find(colNames[n]) == colM.end())
544  {
545  std::cerr << mthn << "\tCouldn't find in the database the column with name " << colNames[n] << std::endl;
546  assert(0);
547  }
548  }
549  // Address levels 1 per channel (36) per roc(max=26)
550 // int ROC_L0[36][26],ROC_L1[36][26],ROC_L2[36][26],ROC_L3[36][26],ROC_L4[36][26];
551 
552  for(int r = firstRow + 1 ; r < lastRow ; r++) //Goes to every row of the Matrix (MUST BE 36, one for each FED channel)
553  {
554  ROC_L0[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1][atoi(tableMat[r][colM["FED_ROC_NUM"]].c_str())] = atoi(tableMat[r][colM["ROC_L0"]].c_str()) ;
555  ROC_L1[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1][atoi(tableMat[r][colM["FED_ROC_NUM"]].c_str())] = atoi(tableMat[r][colM["ROC_L1"]].c_str()) ;
556  ROC_L2[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1][atoi(tableMat[r][colM["FED_ROC_NUM"]].c_str())] = atoi(tableMat[r][colM["ROC_L2"]].c_str()) ;
557  ROC_L3[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1][atoi(tableMat[r][colM["FED_ROC_NUM"]].c_str())] = atoi(tableMat[r][colM["ROC_L3"]].c_str()) ;
558  ROC_L4[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1][atoi(tableMat[r][colM["FED_ROC_NUM"]].c_str())] = atoi(tableMat[r][colM["ROC_L4"]].c_str()) ;
559  }
560 
561 }
int ROC_L3[36][26]
Definition: PixelFEDCard.h:93
int ROC_L4[36][26]
Definition: PixelFEDCard.h:93
int ROC_L0[36][26]
Definition: PixelFEDCard.h:93
int ROC_L2[36][26]
Definition: PixelFEDCard.h:93
int ROC_L1[36][26]
Definition: PixelFEDCard.h:93
void PixelFEDCard::readDBTBMLevels ( std::vector< std::vector< std::string > > &  tableMat,
int  first,
int  last 
)

EXTERNAL_TABLE_NAME: TBM_ANALOG_LEVELS (VIEW: CONF_KEY_TBM_LEVELS_V)

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) PIXEL_FED NUMBER(38) FED_CHAN NUMBER(38) TBMA_HEAD_L0 NUMBER(38) TBM_L0[1-36] index taken from FED_CHAN TBMA_HEAD_L1 NUMBER(38) TBM_L1[1-36] index taken from FED_CHAN TBMA_HEAD_L2 NUMBER(38) TBM_L2[1-36] index taken from FED_CHAN TBMA_HEAD_L3 NUMBER(38) TBM_L3[1-36] index taken from FED_CHAN TBMA_HEAD_L4 NUMBER(38) TBM_L4[1-36] index taken from FED_CHAN TBMA_TRAIL_L0 NUMBER(38) TRL_L0[1-36] index taken from FED_CHAN TBMA_TRAIL_L1 NUMBER(38) TRL_L1[1-36] index taken from FED_CHAN TBMA_TRAIL_L2 NUMBER(38) TRL_L2[1-36] index taken from FED_CHAN TBMA_TRAIL_L3 NUMBER(38) TRL_L3[1-36] index taken from FED_CHAN TBMA_TRAIL_L4 NUMBER(38) TRL_L4[1-36] index taken from FED_CHAN TBMA_HEAD_B NUMBER(38) TBMA_HEAD_UB NUMBER(38) TBMA_TRAIL_B NUMBER(38) TBMA_TRAIL_UB NUMBER(38)

Definition at line 350 of file PixelFEDCard.cc.

References trackerHits::c, dtNoiseDBValidation_cfg::cerr, n, alignCSCRings::r, TBM_L0, TBM_L1, TBM_L2, TBM_L3, TBM_L4, TRL_L0, TRL_L1, TRL_L2, TRL_L3, and TRL_L4.

351 {
352  string mthn = "[PixelFEDCard::readDBTBMLevels()] ";
353  vector<string> ins = tableMat[firstRow];
354  map<string , int > colM;
355  vector<string> colNames;
356 
385  colNames.push_back("CONFIG_KEY" );
386  colNames.push_back("KEY_TYPE" );
387  colNames.push_back("KEY_ALIAS" );
388  colNames.push_back("VERSION" );
389  colNames.push_back("KIND_OF_COND" );
390  colNames.push_back("TBM_NAME" );
391  colNames.push_back("PIXEL_FED" );
392  colNames.push_back("FED_CHAN" );
393  colNames.push_back("TBMA_HEAD_L0" );
394  colNames.push_back("TBMA_HEAD_L1" );
395  colNames.push_back("TBMA_HEAD_L2" );
396  colNames.push_back("TBMA_HEAD_L3" );
397  colNames.push_back("TBMA_HEAD_L4" );
398  colNames.push_back("TBMA_TRAIL_L0");
399  colNames.push_back("TBMA_TRAIL_L1");
400  colNames.push_back("TBMA_TRAIL_L2");
401  colNames.push_back("TBMA_TRAIL_L3");
402  colNames.push_back("TBMA_TRAIL_L4");
403  colNames.push_back("TBMA_HEAD_B" );
404  colNames.push_back("TBMA_HEAD_UB" );
405  colNames.push_back("TBMA_TRAIL_B" );
406  colNames.push_back("TBMA_TRAIL_UB");
407 /*
408  colNames.push_back("CONFIG_KEY_ID" );
409  colNames.push_back("CONFIG_KEY" );
410  colNames.push_back("VERSION" );
411  colNames.push_back("CONDITION_DATA_SET_ID" );
412  colNames.push_back("KIND_OF_CONDITION_ID" );
413  colNames.push_back("KIND_OF_COND" );
414  colNames.push_back("PXLFED_NAME" );
415  colNames.push_back("FED_CHAN" );
416  colNames.push_back("TBM_PART_ID" );
417  colNames.push_back("TBM_SER_NUM" );
418  colNames.push_back("PANEL_NAME" );
419  colNames.push_back("HUB_ADDRS" );
420  colNames.push_back("TBMA_HEAD_L0" );
421  colNames.push_back("TBMA_HEAD_L1" );
422  colNames.push_back("TBMA_HEAD_L2" );
423  colNames.push_back("TBMA_HEAD_L3" );
424  colNames.push_back("TBMA_HEAD_L4" );
425  colNames.push_back("TBMA_TRAIL_L0" );
426  colNames.push_back("TBMA_TRAIL_L1" );
427  colNames.push_back("TBMA_TRAIL_L2" );
428  colNames.push_back("TBMA_TRAIL_L3" );
429  colNames.push_back("TBMA_TRAIL_L4" );
430 */
431  // Retrieve header row and cross check that everyfield is there.
432  for(unsigned int c = 0 ; c < ins.size() ; c++)
433  {
434  for(unsigned int n=0; n<colNames.size(); n++)
435  {
436  if(tableMat[firstRow][c] == colNames[n]){
437  colM[colNames[n]] = c;
438  break;
439  }
440  }
441  }//end for
442  for(unsigned int n=0; n<colNames.size(); n++)
443  {
444  if(colM.find(colNames[n]) == colM.end())
445  {
446  std::cerr << mthn << "\tCouldn't find in the database the column with name " << colNames[n] << std::endl;
447  assert(0);
448  }
449  }
450  for(int r = firstRow + 1 ; r < lastRow ; r++) //Goes to every row of the Matrix (MUST BE 36, one for each FED channel)
451  {
452  //Signal levels for the TBM, one per channel
453  TBM_L0[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_HEAD_L0"]].c_str() ) ;
454  TBM_L1[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_HEAD_L1"]].c_str() ) ;
455  TBM_L2[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_HEAD_L2"]].c_str() ) ;
456  TBM_L3[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_HEAD_L3"]].c_str() ) ;
457  TBM_L4[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_HEAD_L4"]].c_str() ) ;
458  TRL_L0[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_TRAIL_L0"]].c_str() ) ;
459  TRL_L1[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_TRAIL_L1"]].c_str() ) ;
460  TRL_L2[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_TRAIL_L2"]].c_str() ) ;
461  TRL_L3[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_TRAIL_L3"]].c_str() ) ;
462  TRL_L4[atoi(tableMat[r][colM["FED_CHAN"]].c_str())-1] = atoi(tableMat[r][colM["TBMA_TRAIL_L4"]].c_str() ) ;
463  }
464 }
tuple ins
Definition: cuy.py:312
void PixelFEDCard::restoreBaselinAndChannelMasks ( )

Definition at line 1863 of file PixelFEDCard.cc.

References Nbaseln, Nbaseln_original, NCbaseln, NCbaseln_original, NCcntrl, NCcntrl_original, Ncntrl, Ncntrl_original, Sbaseln, Sbaseln_original, SCbaseln, SCbaseln_original, SCcntrl, SCcntrl_original, Scntrl, and Scntrl_original.

1863  {
1864 
1869 
1874 
1875 
1876 }
unsigned int NCbaseln
Definition: PixelFEDCard.h:129
unsigned int Scntrl
Definition: PixelFEDCard.h:97
unsigned int SCbaseln
Definition: PixelFEDCard.h:129
unsigned int Sbaseln
Definition: PixelFEDCard.h:129
unsigned int Nbaseln
Definition: PixelFEDCard.h:129
unsigned int NCcntrl_original
Definition: PixelFEDCard.h:101
unsigned int Ncntrl_original
Definition: PixelFEDCard.h:101
unsigned int Scntrl_original
Definition: PixelFEDCard.h:101
unsigned int Ncntrl
Definition: PixelFEDCard.h:97
unsigned int SCcntrl
Definition: PixelFEDCard.h:97
unsigned int NCcntrl
Definition: PixelFEDCard.h:97
unsigned int SCcntrl_original
Definition: PixelFEDCard.h:101
void PixelFEDCard::restoreControlAndModeRegister ( )

Definition at line 1879 of file PixelFEDCard.cc.

References Ccntrl, Ccntrl_original, modeRegister, and modeRegister_original.

1879  {
1880 
1883 
1884 }
unsigned int Ccntrl
Definition: PixelFEDCard.h:117
void PixelFEDCard::setChannel ( unsigned int  iChannel,
bool  mode 
)

Definition at line 1841 of file PixelFEDCard.cc.

References enabledChannels(), NCcntrl, Ncntrl, SCcntrl, and Scntrl.

Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().

1841  {
1842  assert(iChannel>0&&iChannel<37);
1843  long long mask=enabledChannels();
1844  long long bit=0x1LL<<(iChannel-1);
1845  if (mode) {
1846  mask=mask|bit;
1847  }
1848  else{
1849  bit=~bit;
1850  mask=mask&bit;
1851  }
1852  mask=~mask;
1853  Ncntrl=mask & 0x1ffLL;
1854  mask=mask>>9;
1855  NCcntrl=mask & 0x1ffLL;
1856  mask=mask>>9;
1857  SCcntrl=mask & 0x1ffLL;
1858  mask=mask>>9;
1859  Scntrl=mask & 0x1ffLL;
1860 
1861 }
unsigned long long enabledChannels()
unsigned int Scntrl
Definition: PixelFEDCard.h:97
unsigned int Ncntrl
Definition: PixelFEDCard.h:97
unsigned int SCcntrl
Definition: PixelFEDCard.h:97
unsigned int NCcntrl
Definition: PixelFEDCard.h:97
bool PixelFEDCard::useChannel ( unsigned int  iChannel)

Definition at line 1836 of file PixelFEDCard.cc.

References enabledChannels().

Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().

1836  {
1837  assert(iChannel>0&&iChannel<37);
1838  return (enabledChannels()>>(iChannel-1))&0x1LL;
1839 }
unsigned long long enabledChannels()
void PixelFEDCard::writeASCII ( std::string  dir = "") const
virtual

Implements pos::PixelConfigBase.

Definition at line 1022 of file PixelFEDCard.cc.

References BlackHi, BlackLo, Ccntrl, ClkDes2, clkphs10_18, clkphs19_27, clkphs1_9, clkphs28_36, CoarseDel, gather_cfg::cout, DelayCh, Errlvl, FEDBASE_0, fedNumber, FedTTCDelay, fifo3Wrnlvl, lut2db_cfg::filename, FineDes1Del, FineDes2Del, i, j, modeRegister, N_hitlimit, N_Pword, N_TBMmask, N_testreg, Nadcg, Nbaseln, NC_hitlimit, NC_Pword, NC_TBMmask, NC_testreg, NCadcg, NCbaseln, NCcntrl, NCfifo1Bzlvl, Ncntrl, Nfifo1Bzlvl, NULL, offs_dac, Ooslvl, opt_cap, opt_inadj, opt_ouadj, EdgesToViz::outfile, ROC_L0, ROC_L1, ROC_L2, ROC_L3, ROC_L4, S_hitlimit, S_Pword, S_TBMmask, S_testreg, Sadcg, Sbaseln, SC_hitlimit, SC_Pword, SC_TBMmask, SC_testreg, SCadcg, SCbaseln, SCcntrl, SCfifo1Bzlvl, Scntrl, Sfifo1Bzlvl, SpecialDac, AlCaHLTBitMon_QueryRunRegistry::string, TBM_L0, TBM_L1, TBM_L2, TBM_L3, TBM_L4, TRL_L0, TRL_L1, TRL_L2, TRL_L3, TRL_L4, and Ublack.

1022  {
1023 
1024  std::string mthn = "[PixelFEDCard::writeASCII()]\t\t\t\t " ;
1025 
1026  ostringstream s1;
1027  s1<<fedNumber;
1028  std::string fedNum=s1.str();
1029 
1030  if (dir!="") dir+="/";
1031 
1032  std::string filename=dir+"params_fed_"+fedNum+".dat";
1033 
1034  FILE *outfile = fopen((filename.c_str()),"w");
1035  if (outfile == NULL) {
1036  cout<< __LINE__ << "]\t" << mthn << "Could not open file: " << filename << " for writing" << endl;
1037  return;
1038  }
1039 
1040  //Fed Base Address
1041  fprintf(outfile,"FED Base address :0x%lx\n",
1042  FEDBASE_0);
1043  fprintf(outfile,"FEDID Number :0x%lx\n",
1044  fedNumber);
1045 
1046  // Number of ROCs
1047  int ijx=0;
1048  for(int i=0;i<36;i++){
1049  ijx=i+1;
1050  fprintf(outfile,"Number of ROCs Chnl %d:%d\n",ijx,NRocs[i]);
1051 }
1052 
1053  //Settable optical input parameters
1054  fprintf(outfile,"Optical reciever 1 Capacitor Adjust(0-3):%d\n",opt_cap[0]);
1055  fprintf(outfile,"Optical reciever 2 Capacitor Adjust(0-3):%d\n",opt_cap[1]);
1056  fprintf(outfile,"Optical reciever 3 Capacitor Adjust(0-3):%d\n",opt_cap[2]);
1057  fprintf(outfile,"Optical reciever 1 Input Offset (0-15) :%d\n",opt_inadj[0]);
1058  fprintf(outfile,"Optical reciever 2 Input Offset (0-15) :%d\n",opt_inadj[1]);
1059  fprintf(outfile,"Optical reciever 3 Input Offset (0-15) :%d\n",opt_inadj[2]);
1060  fprintf(outfile,"Optical reciever 1 Output Offset (0-3) :%d\n",opt_ouadj[0]);
1061  fprintf(outfile,"Optical reciever 2 Output Offset (0-3) :%d\n",opt_ouadj[1]);
1062  fprintf(outfile,"Optical reciever 3 Output Offset (0-3) :%d\n",opt_ouadj[2]);
1063 
1064  //input offset dac
1065  for(int i=0;i<36;i++) {
1066  fprintf(outfile,"Offset DAC channel %d:%d\n",i+1,offs_dac[i]);
1067  }
1068 
1069  //clock phases
1070  fprintf(outfile,"Clock Phase Bits ch 1-9:0x%x\n",clkphs1_9 );
1071  fprintf(outfile,"Clock Phase Bits ch 10-18:0x%x\n",clkphs10_18);
1072  fprintf(outfile,"Clock Phase Bits ch 19-27:0x%x\n",clkphs19_27);
1073  fprintf(outfile,"Clock Phase Bits ch 28-36:0x%x\n",clkphs28_36);
1074 
1075  //Blacks
1076  for(int i=0;i<36;i++){
1077  fprintf(outfile,"Black HiThold ch %d:%d \n",i+1,BlackHi[i]);
1078  fprintf(outfile,"Black LoThold ch %d:%d \n",i+1,BlackLo[i]);
1079  fprintf(outfile,"ULblack Thold ch %d:%d \n",i+1,Ublack[i]);
1080  }
1081 
1082  //Channel delays
1083  for(int i=0;i<36;i++) {
1084  fprintf(outfile,"Delay channel %d(0-15):%d\n",i+1,DelayCh[i]);
1085  }
1086 
1087  //Signal levels
1088  for(int i=0;i<36;i++) {
1089  fprintf(outfile,"TBM level 0 Channel %d:%d\n",i+1,TBM_L0[i]);
1090  fprintf(outfile,"TBM level 1 Channel %d:%d\n",i+1,TBM_L1[i]);
1091  fprintf(outfile,"TBM level 2 Channel %d:%d\n",i+1,TBM_L2[i]);
1092  fprintf(outfile,"TBM level 3 Channel %d:%d\n",i+1,TBM_L3[i]);
1093  fprintf(outfile,"TBM level 4 Channel %d:%d\n",i+1,TBM_L4[i]);
1094 
1095  for(int j=0;j<NRocs[i];j++) {
1096  fprintf(outfile,"ROC%d level 0 Channel %d :%d\n",
1097  j,i+1,ROC_L0[i][j]);
1098  fprintf(outfile,"ROC%d level 1 Channel %d :%d\n",
1099  j,i+1,ROC_L1[i][j]);
1100  fprintf(outfile,"ROC%d level 2 Channel %d :%d\n",
1101  j,i+1,ROC_L2[i][j]);
1102  fprintf(outfile,"ROC%d level 3 Channel %d :%d\n",
1103  j,i+1,ROC_L3[i][j]);
1104  fprintf(outfile,"ROC%d level 4 Channel %d :%d\n",
1105  j,i+1,ROC_L4[i][j]);
1106  }
1107 
1108  fprintf(outfile,"TRLR level 0 Channel %d:%d\n",i+1,TRL_L0[i]);
1109  fprintf(outfile,"TRLR level 1 Channel %d:%d\n",i+1,TRL_L1[i]);
1110  fprintf(outfile,"TRLR level 2 Channel %d:%d\n",i+1,TRL_L2[i]);
1111  fprintf(outfile,"TRLR level 3 Channel %d:%d\n",i+1,TRL_L3[i]);
1112  fprintf(outfile,"TRLR level 4 Channel %d:%d\n",i+1,TRL_L4[i]);
1113  }
1114 
1115 
1116  //These bits turn off(1) and on(0) channels
1117  fprintf(outfile,"Channel Enbable bits chnls 1-9 (on = 0):0x%x\n",
1118  Ncntrl);
1119  fprintf(outfile,"Channel Enbable bits chnls 10-18(on = 0):0x%x\n",
1120  NCcntrl);
1121  fprintf(outfile,"Channel Enbable bits chnls 19-27(on = 0):0x%x\n",
1122  SCcntrl);
1123  fprintf(outfile,"Channel Enbable bits chnls 28-36(on = 0):0x%x\n",
1124  Scntrl);
1125 
1126  //These are delays to the TTCrx
1127  fprintf(outfile,"TTCrx Coarse Delay Register 2:%d\n",CoarseDel);
1128  fprintf(outfile,"TTCrc ClkDes2 Register 3:0x%x\n",ClkDes2);
1129  fprintf(outfile,"TTCrc Fine Dlay ClkDes2 Reg 1:%d\n",FineDes2Del);
1130 
1131  // Control register
1132  fprintf(outfile,"Center Chip Control Reg:0x%x\n",Ccntrl);
1133  fprintf(outfile,"Initial Slink DAQ mode:%d\n",modeRegister);
1134 
1135  //These bits set ADC Gain/Range 1Vpp(0) and 2Vpp(1) for channels
1136  fprintf(outfile,"Channel ADC Gain bits chnls 1-12(1Vpp = 0):0x%x\n",
1137  Nadcg);
1138  fprintf(outfile,"Channel ADC Gain bits chnls 13-20(1Vpp = 0):0x%x\n",
1139  NCadcg);
1140  fprintf(outfile,"Channel ADC Gain bits chnls 21-28(1Vpp = 0):0x%x\n",
1141  SCadcg);
1142  fprintf(outfile,"Channel ADC Gain bits chnls 29-36(1Vpp = 0):0x%x\n",
1143  Sadcg);
1144 
1145  //These bits set Baseline adjustment value (common by FPGA)//can turn on by channel
1146  fprintf(outfile,"Channel Baseline Enbable chnls 1-9 (on = (0x1ff<<16)+):0x%x\n",
1147  Nbaseln);
1148  fprintf(outfile,"Channel Baseline Enbable chnls 10-18(on = (0x1ff<<16)+):0x%x\n",
1149  NCbaseln);
1150  fprintf(outfile,"Channel Baseline Enbable chnls 19-27(on = (0x1ff<<16)+):0x%x\n",
1151  SCbaseln);
1152  fprintf(outfile,"Channel Baseline Enbable chnls 28-36(on = (0x1ff<<16)+):0x%x\n",
1153  Sbaseln);
1154 
1155  //These bits set TBM trailer mask (common by FPGA)
1156  fprintf(outfile,"TBM trailer mask chnls 1-9 (0xff = all masked):0x%x\n",
1157  N_TBMmask);
1158  fprintf(outfile,"TBM trailer mask chnls 10-18(0xff = all masked):0x%x\n",
1159  NC_TBMmask);
1160  fprintf(outfile,"TBM trailer mask chnls 19-27(0xff = all masked):0x%x\n",
1161  SC_TBMmask);
1162  fprintf(outfile,"TBM trailer mask chnls 28-36(0xff = all masked):0x%x\n",
1163  S_TBMmask);
1164 
1165  //These bits set the Private fill/gap word value (common by FPGA)
1166  fprintf(outfile,"Private 8 bit word chnls 1-9 :0x%x\n",
1167  N_Pword);
1168  fprintf(outfile,"Private 8 bit word chnls 10-18:0x%x\n",
1169  NC_Pword);
1170  fprintf(outfile,"Private 8 bit word chnls 19-27:0x%x\n",
1171  SC_Pword);
1172  fprintf(outfile,"Private 8 bit word chnls 28-36:0x%x\n",
1173  S_Pword);
1174 
1175  //These bit sets the special dac mode for random triggers
1176  fprintf(outfile,"Special Random testDAC mode (on = 0x1, off=0x0):0x%x\n",
1177  SpecialDac);
1178 
1179  //These bits set the number of Out of consecutive out of sync events until a TTs OOs
1180  fprintf(outfile,"Number of Consecutive (max 1023) Out of Syncs till TTs OOS set:%d\n",
1181  Ooslvl);
1182 
1183  //These bits set the number of Empty events until a TTs Error
1184  fprintf(outfile,"Number of Consecutive (max 1023) Empty events till TTs ERR set:%d\n",
1185  Errlvl);
1186 
1187  //These bits set the Almost Full level in fifo-1, Almost full = TTs BUSY in fifo-1 N
1188  fprintf(outfile,"N Fifo-1 almost full level,sets TTs BUSY (max 1023):%d\n",
1189  Nfifo1Bzlvl);
1190 
1191  //These bits set the Almost Full level in fifo-1, Almost full = TTs BUSY in fifo-1 NC
1192  fprintf(outfile,"NC Fifo-1 almost full level,sets TTs BUSY (max 1023):%d\n",
1193  NCfifo1Bzlvl);
1194 
1195  //These bits set the Almost Full level in fifo-1, Almost full = TTs BUSY in fifo-1 SC
1196  fprintf(outfile,"SC Fifo-1 almost full level,sets TTs BUSY (max 1023):%d\n",
1197  SCfifo1Bzlvl);
1198 
1199  //These bits set the Almost Full level in fifo-1, Almost full = TTs BUSY in fifo-1 S
1200  fprintf(outfile,"S Fifo-1 almost full level,sets TTs BUSY (max 1023):%d\n",
1201  Sfifo1Bzlvl);
1202 
1203  //These bits set the Almost Full level in fifo-3, Almost full = TTs WARN in fifo-3
1204  fprintf(outfile,"Fifo-3 almost full level,sets TTs WARN (max 8191):%d\n",
1205  fifo3Wrnlvl);
1206 
1207  fprintf(outfile,"FED Master delay 0=0,1=32,2=48,3=64:%d\n",
1208  FedTTCDelay);
1209 
1210  fprintf(outfile,"TTCrx Register 0 fine delay ClkDes1:%d\n",
1211  FineDes1Del);
1212 
1213  int checkword=91509;
1214 
1215  fprintf(outfile,"Params FED file check word:%d\n",
1216  checkword);
1217 
1218 
1219  //These bits set the hit limit in fifo-1 for an event
1220  fprintf(outfile,"N fifo-1 hit limit (max 1023 (hard) 900 (soft):%d\n",
1221  N_hitlimit); //ch 1-9
1222 
1223  fprintf(outfile,"NC fifo-1 hit limit (max 1023 (hard) 900 (soft):%d\n",
1224  NC_hitlimit); //ch 10-18
1225 
1226  fprintf(outfile,"SC fifo-1 hit limit (max 1023 (hard) 900 (soft):%d\n",
1227  SC_hitlimit); //ch 19-27
1228 
1229  fprintf(outfile,"S fifo-1 hit limit (max 1023 (hard) 900 (soft):%d\n",
1230  S_hitlimit); //ch 28-36
1231 
1232 
1233  //These bits allow a ROC to be skipped (1/fpga)
1234  fprintf(outfile,"Skip a ROC in ch 1-9, bits 10-5 chnl, bits 0-4 ROC-1:%d\n",
1235  N_testreg);
1236 
1237  fprintf(outfile,"Skip a ROC in ch 10-18, bits 10-5 chnl, bits 0-4 ROC-1:%d\n",
1238  NC_testreg);
1239 
1240  fprintf(outfile,"Skip a ROC in ch 19-27, bits 10-5 chnl, bits 0-4 ROC-1:%d\n",
1241  SC_testreg);
1242 
1243  fprintf(outfile,"Skip a ROC in ch 28-36, bits 10-5 chnl, bits 0-4 ROC-1:%d\n",
1244  S_testreg);
1245 
1246 
1247 
1248  fclose(outfile);
1249 
1250 
1251 }
int i
Definition: DBlmapReader.cc:9
unsigned long FEDBASE_0
Definition: PixelFEDCard.h:155
int ROC_L3[36][26]
Definition: PixelFEDCard.h:93
unsigned int ClkDes2
Definition: PixelFEDCard.h:114
unsigned int SC_Pword
Definition: PixelFEDCard.h:107
unsigned int NCbaseln
Definition: PixelFEDCard.h:129
unsigned int Scntrl
Definition: PixelFEDCard.h:97
unsigned int S_Pword
Definition: PixelFEDCard.h:107
unsigned int SCbaseln
Definition: PixelFEDCard.h:129
#define NULL
Definition: scimark2.h:8
int ROC_L4[36][26]
Definition: PixelFEDCard.h:93
unsigned int Sadcg
Definition: PixelFEDCard.h:126
unsigned int Sbaseln
Definition: PixelFEDCard.h:129
unsigned int NC_TBMmask
Definition: PixelFEDCard.h:104
list outfile
Definition: EdgesToViz.py:91
unsigned int Nbaseln
Definition: PixelFEDCard.h:129
int j
Definition: DBlmapReader.cc:9
unsigned int N_TBMmask
Definition: PixelFEDCard.h:104
unsigned int Nadcg
Definition: PixelFEDCard.h:126
unsigned int S_TBMmask
Definition: PixelFEDCard.h:104
int ROC_L0[36][26]
Definition: PixelFEDCard.h:93
unsigned int Ccntrl
Definition: PixelFEDCard.h:117
unsigned int NC_Pword
Definition: PixelFEDCard.h:107
unsigned int NCadcg
Definition: PixelFEDCard.h:126
unsigned int SCadcg
Definition: PixelFEDCard.h:126
unsigned int SC_TBMmask
Definition: PixelFEDCard.h:104
unsigned int clkphs1_9
Definition: PixelFEDCard.h:79
unsigned int clkphs19_27
Definition: PixelFEDCard.h:79
unsigned int clkphs10_18
Definition: PixelFEDCard.h:79
unsigned int N_Pword
Definition: PixelFEDCard.h:107
unsigned int SpecialDac
Definition: PixelFEDCard.h:110
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
int ROC_L2[36][26]
Definition: PixelFEDCard.h:93
unsigned int Ncntrl
Definition: PixelFEDCard.h:97
dbl *** dir
Definition: mlp_gen.cc:35
unsigned int SCcntrl
Definition: PixelFEDCard.h:97
unsigned long fedNumber
Definition: PixelFEDCard.h:155
unsigned int NCcntrl
Definition: PixelFEDCard.h:97
unsigned int clkphs28_36
Definition: PixelFEDCard.h:79
int ROC_L1[36][26]
Definition: PixelFEDCard.h:93
void PixelFEDCard::writeXML ( pos::PixelConfigKey  key,
int  version,
std::string  path 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1657 of file PixelFEDCard.cc.

References gather_cfg::cout, pos::PixelTimeFormatter::getTime(), dbtoconf::out, and AlCaHLTBitMon_QueryRunRegistry::string.

1657  {
1658  std::string mthn = "[PixelFEDCard::writeXML()]\t\t\t " ;
1659  std::stringstream fullPath ;
1660 
1661  fullPath << path << "/fedcard.xml" ;
1662  std::cout << __LINE__ << "]\t" << mthn << "Writing to: |" << fullPath.str() << "|" << std::endl ;
1663 
1664  std::ofstream out(fullPath.str().c_str()) ;
1665 
1666  out << "<ROOT>" << std::endl ;
1667  out << "" << std::endl ;
1668  out << " <HEADER>" << std::endl ;
1669  out << " <TYPE>" << std::endl ;
1670  out << " <EXTENSION_TABLE_NAME>FED_CONFIGURATION</EXTENSION_TABLE_NAME>" << std::endl ;
1671  out << " <NAME>Pixel FED Configuration</NAME>" << std::endl ;
1672  out << " </TYPE>" << std::endl ;
1673  out << " <RUN>" << std::endl ;
1674  out << " <RUN_TYPE>Pixel FED Configuration</RUN_TYPE>" << std::endl ;
1675  out << " <RUN_NUMBER>1</RUN_NUMBER>" << std::endl ;
1676  out << " <RUN_BEGIN_TIMESTAMP>" << PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>" << std::endl ;
1677  out << " <COMMENT_DESCRIPTION>Pixel FED Configuration</COMMENT_DESCRIPTION>" << std::endl ;
1678  out << " <LOCATION>CERN TAC</LOCATION>" << std::endl ;
1679  out << " <CREATED_BY_USER>Dario Menasce</CREATED_BY_USER>" << std::endl ;
1680  out << " </RUN>" << std::endl ;
1681  out << " </HEADER>" << std::endl ;
1682  out << "" << std::endl ;
1683  out << " <DATA_SET>" << std::endl ;
1684  out << "" << std::endl ;
1685  out << " <VERSION>T_E_S_T</VERSION>" << std::endl ;
1686  out << " <COMMENT_DESCRIPTION>Pixel FED Configuration</COMMENT_DESCRIPTION>" << std::endl ;
1687  out << "" << std::endl ;
1688  out << " <PART>" << std::endl ;
1689  out << " <NAME_LABEL>CMS-PIXEL-ROOT</NAME_LABEL>" << std::endl ;
1690  out << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ;
1691  out << " </PART>" << std::endl ;
1692  out << "" << std::endl ;
1693  out << " <DATA>" << std::endl ;
1694  out << " <PXLFED_NAME>PxlFED_32</PXLFED_NAME>" << std::endl ;
1695  out << " <CRATE_NUMBER>1</CRATE_NUMBER>" << std::endl ;
1696  out << " <SLOT_NUMBER>5</SLOT_NUMBER> " << std::endl ;
1697  out << " <VME_ADDRESS>268435456</VME_ADDRESS>" << std::endl ;
1698  out << " <CRATE_LABEL>S1G03e</CRATE_LABEL>" << std::endl ;
1699  out << "" << std::endl ;
1700  out << " <CHANNEL_ID>1</CHANNEL_ID>" << std::endl ;
1701  out << " <NUMBER_OF_ROCS>21</NUMBER_OF_ROCS>" << std::endl ;
1702  out << " <CHANNEL_OFFSET_DAC_SETTINGS>0</CHANNEL_OFFSET_DAC_SETTINGS>" << std::endl ;
1703  out << " <CHANNEL_DELAY_SETTINGS>3</CHANNEL_DELAY_SETTINGS>" << std::endl ;
1704  out << " <CHANNEL_BLACK_HIGH>400</CHANNEL_BLACK_HIGH>" << std::endl ;
1705  out << " <CHANNEL_BLACK_LOW>150</CHANNEL_BLACK_LOW>" << std::endl ;
1706  out << " <CHANNEL_ULTRA_BLACK>120</CHANNEL_ULTRA_BLACK>" << std::endl ;
1707  out << "" << std::endl ;
1708  out << " <OPT1_CAP>0</OPT1_CAP>" << std::endl ;
1709  out << " <OPT2_CAP>0</OPT2_CAP>" << std::endl ;
1710  out << " <OPT3_CAP>0</OPT3_CAP>" << std::endl ;
1711  out << " <OPT1_INP>0</OPT1_INP>" << std::endl ;
1712  out << " <OPT2_INP>0</OPT2_INP>" << std::endl ;
1713  out << " <OPT3_INP>0</OPT3_INP>" << std::endl ;
1714  out << " <OPT1_OUT>0</OPT1_OUT>" << std::endl ;
1715  out << " <OPT2_OUT>0</OPT2_OUT>" << std::endl ;
1716  out << " <OPT3_OUT>0</OPT3_OUT>" << std::endl ;
1717  out << " <NORTH_CLKPHB>511</NORTH_CLKPHB>" << std::endl ;
1718  out << " <NORTHCENTER_CLKPHB>511</NORTHCENTER_CLKPHB>" << std::endl ;
1719  out << " <SOUTHCENTER_CLKPHB>511</SOUTHCENTER_CLKPHB>" << std::endl ;
1720  out << " <SOUTH_CLKPHB>511</SOUTH_CLKPHB>" << std::endl ;
1721  out << " <NORTH_CTRL>0</NORTH_CTRL> " << std::endl ;
1722  out << " <NORTHCENTER_CTRL>0</NORTHCENTER_CTRL>" << std::endl ;
1723  out << " <SOUTHCENTER_CTRL>0</SOUTHCENTER_CTRL>" << std::endl ;
1724  out << " <SOUTH_CTRL>0</SOUTH_CTRL>" << std::endl ;
1725  out << " <REG1_TTCRX_FDLA>5</REG1_TTCRX_FDLA>" << std::endl ;
1726  out << " <REG2_TTCRX_CDLA>0</REG2_TTCRX_CDLA>" << std::endl ;
1727  out << " <REG3_TTCRX_CLKD2>155</REG3_TTCRX_CLKD2>" << std::endl ;
1728  out << " <CENTER_CTRL>0</CENTER_CTRL>" << std::endl ;
1729  out << " <CENTER_MODE>0</CENTER_MODE>" << std::endl ;
1730  out << " <B1_ADCGN>0</B1_ADCGN>" << std::endl ;
1731  out << " <B2_ADCGN>0</B2_ADCGN>" << std::endl ;
1732  out << " <B3_ADCGN>0</B3_ADCGN>" << std::endl ;
1733  out << " <B4_ADCGN>0</B4_ADCGN>" << std::endl ;
1734  out << " <NORTH_BADJ>330</NORTH_BADJ>" << std::endl ;
1735  out << " <NORTHCENTER_BADJ>330</NORTHCENTER_BADJ>" << std::endl ;
1736  out << " <SOUTHCENTER_BADJ>330</SOUTHCENTER_BADJ>" << std::endl ;
1737  out << " <SOUTH_BADJ>330</SOUTH_BADJ>" << std::endl ;
1738  out << " <NORTH_TBMMASK>2</NORTH_TBMMASK>" << std::endl ;
1739  out << " <NORTHCENTER_TBMMASK>2</NORTHCENTER_TBMMASK>" << std::endl ;
1740  out << " <SOUTHCENTER_TBMMASK>2</SOUTHCENTER_TBMMASK>" << std::endl ;
1741  out << " <SOUTH_TBMMASK>2</SOUTH_TBMMASK>" << std::endl ;
1742  out << " <NORTH_PWORD>177</NORTH_PWORD>" << std::endl ;
1743  out << " <NORTHCENTER_PWORD>178</NORTHCENTER_PWORD>" << std::endl ;
1744  out << " <SOUTHCENTER_PWORD>179</SOUTHCENTER_PWORD>" << std::endl ;
1745  out << " <SOUTH_PWORD>180</SOUTH_PWORD>" << std::endl ;
1746  out << " <SPECDAC>0</SPECDAC>" << std::endl ;
1747  out << " <OOS_LVL>0</OOS_LVL>" << std::endl ;
1748  out << " <ERR_LVL>0</ERR_LVL>" << std::endl ;
1749  out << " <NORTH_FIFO1_BZ_LVL>900</NORTH_FIFO1_BZ_LVL>" << std::endl ;
1750  out << " <NORTHCENTER_FIFO1_BZ_LVL>900</NORTHCENTER_FIFO1_BZ_LVL>" << std::endl ;
1751  out << " <SOUTHCENTER_FIFO1_BZ_LVL>900</SOUTHCENTER_FIFO1_BZ_LVL>" << std::endl ;
1752  out << " <SOUTH_FIFO1_BZ_LVL>900</SOUTH_FIFO1_BZ_LVL>" << std::endl ;
1753  out << " <FIFO3_WRN_LVL>7680</FIFO3_WRN_LVL> " << std::endl ;
1754  out << " <FED_MASTER_DELAY>0</FED_MASTER_DELAY>" << std::endl ;
1755  out << " <NO_HITLIMIT>0</NO_HITLIMIT>" << std::endl ;
1756  out << " <NC_HITLIMIT>0</NC_HITLIMIT>" << std::endl ;
1757  out << " <SC_HITLIMIT>0</SC_HITLIMIT>" << std::endl ;
1758  out << " <SO_HITLIMIT>0</SO_HITLIMIT>" << std::endl ;
1759  out << " <NO_TESTREG>0</NO_TESTREG>" << std::endl ;
1760  out << " <NC_TESTREG>0</NC_TESTREG>" << std::endl ;
1761  out << " <SC_TESTREG>0</SC_TESTREG>" << std::endl ;
1762  out << " <SO_TESTREG>0</SO_TESTREG>" << std::endl ;
1763  out << " </DATA>" << std::endl ;
1764 /*
1765  out<< " <DATA>
1766  <OPT1_CAP>0</OPT1_CAP>
1767  <OPT2_CAP>0</OPT2_CAP>
1768  <OPT3_CAP>0</OPT3_CAP>
1769  <OPT1_INP>0</OPT1_INP>
1770  <OPT2_INP>0</OPT2_INP>
1771  <OPT3_INP>0</OPT3_INP>
1772  <OPT1_OUT>0</OPT1_OUT>
1773  <OPT2_OUT>0</OPT2_OUT>
1774  <OPT3_OUT>0</OPT3_OUT>
1775  <NORTH_CLKPHB>511</NORTH_CLKPHB>
1776  <NORTHCENTER_CLKPHB>511</NORTHCENTER_CLKPHB>
1777  <SOUTHCENTER_CLKPHB>511</SOUTHCENTER_CLKPHB>
1778  <SOUTH_CLKPHB>511</SOUTH_CLKPHB>
1779  <NORTH_CTRL>0</NORTH_CTRL>
1780  <NORTHCENTER_CTRL>0</NORTHCENTER_CTRL>
1781  <SOUTHCENTER_CTRL>0</SOUTHCENTER_CTRL>
1782  <SOUTH_CTRL>0</SOUTH_CTRL>
1783  <REG1_TTCRX_FDLA>5</REG1_TTCRX_FDLA>
1784  <REG2_TTCRX_CDLA>0</REG2_TTCRX_CDLA>
1785  <REG3_TTCRX_CLKD2>155</REG3_TTCRX_CLKD2>
1786  <CENTER_CTRL>0</CENTER_CTRL>
1787  <CENTER_MODE>0</CENTER_MODE>
1788  <B1_ADCGN>0</B1_ADCGN>
1789  <B2_ADCGN>0</B2_ADCGN>
1790  <B3_ADCGN>0</B3_ADCGN>
1791  <B4_ADCGN>0</B4_ADCGN>
1792  <NORTH_BADJ>330</NORTH_BADJ>
1793  <NORTHCENTER_BADJ>330</NORTHCENTER_BADJ>
1794  <SOUTHCENTER_BADJ>330</SOUTHCENTER_BADJ>
1795  <SOUTH_BADJ>330</SOUTH_BADJ>
1796  <NORTH_TBMMASK>2</NORTH_TBMMASK>
1797  <NORTHCENTER_TBMMASK>2</NORTHCENTER_TBMMASK>
1798  <SOUTHCENTER_TBMMASK>2</SOUTHCENTER_TBMMASK>
1799  <SOUTH_TBMMASK>2</SOUTH_TBMMASK>
1800  <NORTH_PWORD>177</NORTH_PWORD>
1801  <NORTHCENTER_PWORD>178</NORTHCENTER_PWORD>
1802  <SOUTHCENTER_PWORD>179</SOUTHCENTER_PWORD>
1803  <SOUTH_PWORD>180</SOUTH_PWORD>
1804  <SPECDAC>0</SPECDAC>
1805  <OOS_LVL>0</OOS_LVL>
1806  <ERR_LVL>0</ERR_LVL>
1807  <NORTH_FIFO1_BZ_LVL>900</NORTH_FIFO1_BZ_LVL>
1808  <NORTHCENTER_FIFO1_BZ_LVL>900</NORTHCENTER_FIFO1_BZ_LVL>
1809  <SOUTHCENTER_FIFO1_BZ_LVL>900</SOUTHCENTER_FIFO1_BZ_LVL>
1810  <SOUTH_FIFO1_BZ_LVL>900</SOUTH_FIFO1_BZ_LVL>
1811  <FIFO3_WRN_LVL>7680</FIFO3_WRN_LVL>
1812  </DATA>
1813 
1814  </DATA_SET>
1815  out << " </DATA_SET>" << std::endl ;
1816  out << "</ROOT>" << std::endl ;
1817 
1818  out.close() ;
1819 */
1820  std::cout << __LINE__ << "]\t" << mthn << "Data written" << std::endl ;
1821 }
static std::string getTime(void)
tuple out
Definition: dbtoconf.py:99
tuple cout
Definition: gather_cfg.py:121
void PixelFEDCard::writeXML ( std::ofstream *  out) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1412 of file PixelFEDCard.cc.

References fedNumber, and AlCaHLTBitMon_QueryRunRegistry::string.

1412  {
1413  std::string mthn = "[PixelFEDCard::writeXML()]\t\t\t " ;
1414 
1415  *out << " <DATA>" << std::endl ;
1416  *out << " " << std::endl ;
1417  *out << " <PXLFED_NAME>PxlFED_" << fedNumber<< "</PXLFED_NAME>" << std::endl ;
1418  *out << " <VME_ADDRESS>268435456</VME_ADDRESS>" << std::endl ;
1419 // *out << " <CRATE_NUMBER>1</CRATE_NUMBER>" << std::endl ;
1420 // *out << " <SLOT_NUMBER>5</SLOT_NUMBER> " << std::endl ;
1421 // *out << " <VME_ADDRESS>268435456</VME_ADDRESS>" << std::endl ;
1422 // *out << " <CRATE_LABEL>S1G03e</CRATE_LABEL>" << std::endl ;
1423  *out << "" << std::endl ;
1424  *out << " <CHANNEL_ID>1</CHANNEL_ID>" << std::endl ;
1425  *out << " <NUMBER_OF_ROCS>21</NUMBER_OF_ROCS>" << std::endl ;
1426  *out << " <CHANNEL_OFFSET_DAC_SETTINGS>0</CHANNEL_OFFSET_DAC_SETTINGS>" << std::endl ;
1427  *out << " <CHANNEL_DELAY_SETTINGS>3</CHANNEL_DELAY_SETTINGS>" << std::endl ;
1428  *out << " <CHANNEL_BLACK_HIGH>400</CHANNEL_BLACK_HIGH>" << std::endl ;
1429  *out << " <CHANNEL_BLACK_LOW>150</CHANNEL_BLACK_LOW>" << std::endl ;
1430  *out << " <CHANNEL_ULTRA_BLACK>120</CHANNEL_ULTRA_BLACK>" << std::endl ;
1431  *out << "" << std::endl ;
1432  *out << " <OPT1_CAP>0</OPT1_CAP>" << std::endl ;
1433  *out << " <OPT2_CAP>0</OPT2_CAP>" << std::endl ;
1434  *out << " <OPT3_CAP>0</OPT3_CAP>" << std::endl ;
1435  *out << " <OPT1_INP>0</OPT1_INP>" << std::endl ;
1436  *out << " <OPT2_INP>0</OPT2_INP>" << std::endl ;
1437  *out << " <OPT3_INP>0</OPT3_INP>" << std::endl ;
1438  *out << " <OPT1_OUT>0</OPT1_OUT>" << std::endl ;
1439  *out << " <OPT2_OUT>0</OPT2_OUT>" << std::endl ;
1440  *out << " <OPT3_OUT>0</OPT3_OUT>" << std::endl ;
1441  *out << " <NORTH_CLKPHB>511</NORTH_CLKPHB>" << std::endl ;
1442  *out << " <NORTHCENTER_CLKPHB>511</NORTHCENTER_CLKPHB>" << std::endl ;
1443  *out << " <SOUTHCENTER_CLKPHB>511</SOUTHCENTER_CLKPHB>" << std::endl ;
1444  *out << " <SOUTH_CLKPHB>511</SOUTH_CLKPHB>" << std::endl ;
1445  *out << " <NORTH_CTRL>0</NORTH_CTRL> " << std::endl ;
1446  *out << " <NORTHCENTER_CTRL>0</NORTHCENTER_CTRL>" << std::endl ;
1447  *out << " <SOUTHCENTER_CTRL>0</SOUTHCENTER_CTRL>" << std::endl ;
1448  *out << " <SOUTH_CTRL>0</SOUTH_CTRL>" << std::endl ;
1449  *out << " <REG1_TTCRX_FDLA>5</REG1_TTCRX_FDLA>" << std::endl ;
1450  *out << " <REG2_TTCRX_CDLA>0</REG2_TTCRX_CDLA>" << std::endl ;
1451  *out << " <REG3_TTCRX_CLKD2>155</REG3_TTCRX_CLKD2>" << std::endl ;
1452  *out << " <CENTER_CTRL>0</CENTER_CTRL>" << std::endl ;
1453  *out << " <CENTER_MODE>0</CENTER_MODE>" << std::endl ;
1454  *out << " <B1_ADCGN>0</B1_ADCGN>" << std::endl ;
1455  *out << " <B2_ADCGN>0</B2_ADCGN>" << std::endl ;
1456  *out << " <B3_ADCGN>0</B3_ADCGN>" << std::endl ;
1457  *out << " <B4_ADCGN>0</B4_ADCGN>" << std::endl ;
1458  *out << " <NORTH_BADJ>330</NORTH_BADJ>" << std::endl ;
1459  *out << " <NORTHCENTER_BADJ>330</NORTHCENTER_BADJ>" << std::endl ;
1460  *out << " <SOUTHCENTER_BADJ>330</SOUTHCENTER_BADJ>" << std::endl ;
1461  *out << " <SOUTH_BADJ>330</SOUTH_BADJ>" << std::endl ;
1462  *out << " <NORTH_TBMMASK>2</NORTH_TBMMASK>" << std::endl ;
1463  *out << " <NORTHCENTER_TBMMASK>2</NORTHCENTER_TBMMASK>" << std::endl ;
1464  *out << " <SOUTHCENTER_TBMMASK>2</SOUTHCENTER_TBMMASK>" << std::endl ;
1465  *out << " <SOUTH_TBMMASK>2</SOUTH_TBMMASK>" << std::endl ;
1466  *out << " <NORTH_PWORD>177</NORTH_PWORD>" << std::endl ;
1467  *out << " <NORTHCENTER_PWORD>178</NORTHCENTER_PWORD>" << std::endl ;
1468  *out << " <SOUTHCENTER_PWORD>179</SOUTHCENTER_PWORD>" << std::endl ;
1469  *out << " <SOUTH_PWORD>180</SOUTH_PWORD>" << std::endl ;
1470  *out << " <SPECDAC>0</SPECDAC>" << std::endl ;
1471  *out << " <OOS_LVL>0</OOS_LVL>" << std::endl ;
1472  *out << " <ERR_LVL>0</ERR_LVL>" << std::endl ;
1473  *out << " <NORTH_FIFO1_BZ_LVL>900</NORTH_FIFO1_BZ_LVL>" << std::endl ;
1474  *out << " <NORTHCENTER_FIFO1_BZ_LVL>900</NORTHCENTER_FIFO1_BZ_LVL>" << std::endl ;
1475  *out << " <SOUTHCENTER_FIFO1_BZ_LVL>900</SOUTHCENTER_FIFO1_BZ_LVL>" << std::endl ;
1476  *out << " <SOUTH_FIFO1_BZ_LVL>900</SOUTH_FIFO1_BZ_LVL>" << std::endl ;
1477  *out << " <FIFO3_WRN_LVL>7680</FIFO3_WRN_LVL> " << std::endl ;
1478  *out << " <FED_MASTER_DELAY>0</FED_MASTER_DELAY>" << std::endl ;
1479  *out << " <NO_HITLIMIT>0</NO_HITLIMIT>" << std::endl ;
1480  *out << " <NC_HITLIMIT>0</NC_HITLIMIT>" << std::endl ;
1481  *out << " <SC_HITLIMIT>0</SC_HITLIMIT>" << std::endl ;
1482  *out << " <SO_HITLIMIT>0</SO_HITLIMIT>" << std::endl ;
1483  *out << " <NO_TESTREG>0</NO_TESTREG>" << std::endl ;
1484  *out << " <NC_TESTREG>0</NC_TESTREG>" << std::endl ;
1485  *out << " <SC_TESTREG>0</SC_TESTREG>" << std::endl ;
1486  *out << " <SO_TESTREG>0</SO_TESTREG>" << std::endl ;
1487  *out << " " << std::endl ;
1488  *out << " </DATA>" << std::endl ;
1489  *out << " " << std::endl ;
1490 }
tuple out
Definition: dbtoconf.py:99
unsigned long fedNumber
Definition: PixelFEDCard.h:155
void PixelFEDCard::writeXML ( std::ofstream *  fedstream,
std::ofstream *  rocstream,
std::ofstream *  tbmstream 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1493 of file PixelFEDCard.cc.

References BlackHi, BlackLo, Ccntrl, ClkDes2, clkphs10_18, clkphs19_27, clkphs1_9, clkphs28_36, CoarseDel, DelayCh, Errlvl, FEDBASE_0, fedNumber, FedTTCDelay, fifo3Wrnlvl, FineDes1Del, FineDes2Del, i, j, modeRegister, N_hitlimit, N_Pword, N_TBMmask, N_testreg, Nadcg, Nbaseln, NC_hitlimit, NC_Pword, NC_TBMmask, NC_testreg, NCadcg, NCbaseln, NCcntrl, NCfifo1Bzlvl, Ncntrl, Nfifo1Bzlvl, offs_dac, Ooslvl, opt_cap, opt_inadj, opt_ouadj, ROC_L0, ROC_L1, ROC_L2, ROC_L3, ROC_L4, S_hitlimit, S_Pword, S_TBMmask, S_testreg, Sadcg, Sbaseln, SC_hitlimit, SC_Pword, SC_TBMmask, SC_testreg, SCadcg, SCbaseln, SCcntrl, SCfifo1Bzlvl, Scntrl, Sfifo1Bzlvl, SpecialDac, AlCaHLTBitMon_QueryRunRegistry::string, TBM_L0, TBM_L1, TBM_L2, TBM_L3, TBM_L4, TRL_L0, TRL_L1, TRL_L2, TRL_L3, TRL_L4, and Ublack.

1496 {
1497  std::string mthn = "[PixelFEDCard::writeXML()]\t\t\t " ;
1498 
1499  for(int i=0;i<36;i++)
1500  {
1501  *fedstream << " <DATA>" << std::endl ;
1502  *fedstream << " " << std::endl ;
1503  *fedstream << " <PIXEL_FED>" << fedNumber << "</PIXEL_FED>" << std::endl ;
1504  *fedstream << " <VME_ADDRS_HEX>0x" << hex << FEDBASE_0 << dec << "</VME_ADDRS_HEX>" << std::endl ;
1505  *fedstream << "" << std::endl ;
1506  *fedstream << " <CHANNEL_ID>" << i+1 << "</CHANNEL_ID>" << std::endl ;
1507  *fedstream << " <NUM_ROCS>" << NRocs[i] << "</NUM_ROCS>" << std::endl ;
1508  *fedstream << " <CHAN_OFFST_DAC>" << offs_dac[i] << "</CHAN_OFFST_DAC>" << std::endl ;
1509  *fedstream << " <CHAN_DELAY>" << DelayCh[i] << "</CHAN_DELAY>" << std::endl ;
1510  *fedstream << " <CHAN_BHIGH>" << BlackHi[i] << "</CHAN_BHIGH>" << std::endl ;
1511  *fedstream << " <CHAN_BLOW>" << BlackLo[i] << "</CHAN_BLOW>" << std::endl ;
1512  *fedstream << " <CHAN_UB>" << Ublack[i] << "</CHAN_UB>" << std::endl ;
1513  *fedstream << "" << std::endl ;
1514  *fedstream << " <OPT1_CAP>" << opt_cap[0] << "</OPT1_CAP>" << std::endl ;
1515  *fedstream << " <OPT2_CAP>" << opt_cap[1] << "</OPT2_CAP>" << std::endl ;
1516  *fedstream << " <OPT3_CAP>" << opt_cap[2] << "</OPT3_CAP>" << std::endl ;
1517  *fedstream << " <OPT1_INP>" << opt_inadj[0] << "</OPT1_INP>" << std::endl ;
1518  *fedstream << " <OPT2_INP>" << opt_inadj[1] << "</OPT2_INP>" << std::endl ;
1519  *fedstream << " <OPT3_INP>" << opt_inadj[2] << "</OPT3_INP>" << std::endl ;
1520  *fedstream << " <OPT1_OUT>" << opt_ouadj[0] << "</OPT1_OUT>" << std::endl ;
1521  *fedstream << " <OPT2_OUT>" << opt_ouadj[1] << "</OPT2_OUT>" << std::endl ;
1522  *fedstream << " <OPT3_OUT>" << opt_ouadj[2] << "</OPT3_OUT>" << std::endl ;
1523  *fedstream << " <NORTH_CLKPHB>" << clkphs1_9 << "</NORTH_CLKPHB>" << std::endl ;
1524  *fedstream << " <NORTHCENTER_CLKPHB>" << clkphs10_18 << "</NORTHCENTER_CLKPHB>" << std::endl ;
1525  *fedstream << " <SOUTHCENTER_CLKPHB>" << clkphs19_27 << "</SOUTHCENTER_CLKPHB>" << std::endl ;
1526  *fedstream << " <SOUTH_CLKPHB>" << clkphs28_36 << "</SOUTH_CLKPHB>" << std::endl ;
1527  *fedstream << " <NORTH_CTRL>" << Ncntrl << "</NORTH_CTRL> " << std::endl ;
1528  *fedstream << " <NORTHCENTER_CTRL>" << NCcntrl << "</NORTHCENTER_CTRL>" << std::endl ;
1529  *fedstream << " <SOUTHCENTER_CTRL>" << SCcntrl << "</SOUTHCENTER_CTRL>" << std::endl ;
1530  *fedstream << " <SOUTH_CTRL>" << Scntrl << "</SOUTH_CTRL>" << std::endl ;
1531  *fedstream << " <REG0_TTCRX_FDLA>" << FineDes1Del << "</REG0_TTCRX_FDLA>" << std::endl ;
1532  *fedstream << " <REG1_TTCRX_FDLA>" << FineDes2Del << "</REG1_TTCRX_FDLA>" << std::endl ;
1533  *fedstream << " <REG2_TTCRX_CDLA>" << CoarseDel << "</REG2_TTCRX_CDLA>" << std::endl ;
1534  *fedstream << " <REG3_TTCRX_CLKD2>" << ClkDes2 << "</REG3_TTCRX_CLKD2>" << std::endl ;
1535  *fedstream << " <CENTER_CTRL>" << Ccntrl << "</CENTER_CTRL>" << std::endl ;
1536  *fedstream << " <CENTER_MODE>" << modeRegister << "</CENTER_MODE>" << std::endl ;
1537  *fedstream << " <B1_ADCGN>" << Nadcg << "</B1_ADCGN>" << std::endl ;
1538  *fedstream << " <B2_ADCGN>" << NCadcg << "</B2_ADCGN>" << std::endl ;
1539  *fedstream << " <B3_ADCGN>" << SCadcg << "</B3_ADCGN>" << std::endl ;
1540  *fedstream << " <B4_ADCGN>" << Sadcg << "</B4_ADCGN>" << std::endl ;
1541 // std::cout << "PixelFEDCard::WriteXML()\tNbaseln:" << Nbaseln << std::endl ;
1542 // std::cout << "PixelFEDCard::WriteXML()\tNbaseln:" << std::hex << Nbaseln << std::dec << std::endl ;
1543  *fedstream << " <NORTH_BADJ>" << Nbaseln << "</NORTH_BADJ>" << std::endl ;
1544  *fedstream << " <NORTHCENTER_BADJ>" << NCbaseln << "</NORTHCENTER_BADJ>" << std::endl ;
1545  *fedstream << " <SOUTHCENTER_BADJ>" << SCbaseln << "</SOUTHCENTER_BADJ>" << std::endl ;
1546  *fedstream << " <SOUTH_BADJ>" << Sbaseln << "</SOUTH_BADJ>" << std::endl ;
1547  *fedstream << " <NORTH_TBMMASK>" << N_TBMmask << "</NORTH_TBMMASK>" << std::endl ;
1548  *fedstream << " <NORTHCENTER_TBMMASK>" << NC_TBMmask << "</NORTHCENTER_TBMMASK>" << std::endl ;
1549  *fedstream << " <SOUTHCENTER_TBMMASK>" << SC_TBMmask << "</SOUTHCENTER_TBMMASK>" << std::endl ;
1550  *fedstream << " <SOUTH_TBMMASK>" << S_TBMmask << "</SOUTH_TBMMASK>" << std::endl ;
1551  *fedstream << " <NORTH_PWORD>" << N_Pword << "</NORTH_PWORD>" << std::endl ;
1552  *fedstream << " <NORTHCENTER_PWORD>" << NC_Pword << "</NORTHCENTER_PWORD>" << std::endl ;
1553  *fedstream << " <SOUTHCENTER_PWORD>" << SC_Pword << "</SOUTHCENTER_PWORD>" << std::endl ;
1554  *fedstream << " <SOUTH_PWORD>" << S_Pword << "</SOUTH_PWORD>" << std::endl ;
1555  *fedstream << " <SPECDAC>" << SpecialDac << "</SPECDAC>" << std::endl ;
1556  *fedstream << " <OOS_LVL>" << Ooslvl << "</OOS_LVL>" << std::endl ;
1557  *fedstream << " <ERR_LVL>" << Errlvl << "</ERR_LVL>" << std::endl ;
1558  *fedstream << " <NORTH_FIFO1_BZ_LVL>" << Nfifo1Bzlvl << "</NORTH_FIFO1_BZ_LVL>" << std::endl ;
1559  *fedstream << " <NORTHCENTER_FIFO1_BZ_LVL>" << NCfifo1Bzlvl << "</NORTHCENTER_FIFO1_BZ_LVL>" << std::endl ;
1560  *fedstream << " <SOUTHCENTER_FIFO1_BZ_LVL>" << SCfifo1Bzlvl << "</SOUTHCENTER_FIFO1_BZ_LVL>" << std::endl ;
1561  *fedstream << " <SOUTH_FIFO1_BZ_LVL>" << Sfifo1Bzlvl << "</SOUTH_FIFO1_BZ_LVL>" << std::endl ;
1562  *fedstream << " <FIFO3_WRN_LVL>" << fifo3Wrnlvl << "</FIFO3_WRN_LVL>" << std::endl ;
1563  *fedstream << " <FED_MASTER_DELAY>" << FedTTCDelay << "</FED_MASTER_DELAY>" << std::endl ;
1564  *fedstream << " <NO_HITLIMIT>" << N_hitlimit << "</NO_HITLIMIT>" << std::endl ;
1565  *fedstream << " <NC_HITLIMIT>" << NC_hitlimit << "</NC_HITLIMIT>" << std::endl ;
1566  *fedstream << " <SC_HITLIMIT>" << SC_hitlimit << "</SC_HITLIMIT>" << std::endl ;
1567  *fedstream << " <SO_HITLIMIT>" << S_hitlimit << "</SO_HITLIMIT>" << std::endl ;
1568  *fedstream << " <NO_TESTREG>" << N_testreg << "</NO_TESTREG>" << std::endl ;
1569  *fedstream << " <NC_TESTREG>" << NC_testreg << "</NC_TESTREG>" << std::endl ;
1570  *fedstream << " <SC_TESTREG>" << SC_testreg << "</SC_TESTREG>" << std::endl ;
1571  *fedstream << " <SO_TESTREG>" << S_testreg << "</SO_TESTREG>" << std::endl ;
1572 
1573  *fedstream << " " << std::endl ;
1574  *fedstream << " </DATA>" << std::endl ;
1575  *fedstream << " " << std::endl ;
1576  }
1577 
1578  //ROC & TBM LEVELS
1579  for(int i=0;i<36;i++)
1580  {
1581  for(int j=0;j<NRocs[i];j++)
1582  {
1583  *rocstream << "" << std::endl ;
1584  *rocstream << " <DATA>" << std::endl ;
1585  *rocstream << " <PIXEL_FED>" << fedNumber << "</PIXEL_FED>" << std::endl ;
1586  *rocstream << " <FED_CHAN>" << i+1 << "</FED_CHAN>" << std::endl ;
1587  *rocstream << " <FED_ROC_NUM>" << j << "</FED_ROC_NUM>" << std::endl ;
1588  *rocstream << " <ROC_L0>" << ROC_L0[i][j] << "</ROC_L0>" << std::endl ;
1589  *rocstream << " <ROC_L1>" << ROC_L1[i][j] << "</ROC_L1>" << std::endl ;
1590  *rocstream << " <ROC_L2>" << ROC_L2[i][j] << "</ROC_L2>" << std::endl ;
1591  *rocstream << " <ROC_L3>" << ROC_L3[i][j] << "</ROC_L3>" << std::endl ;
1592  *rocstream << " <ROC_L4>" << ROC_L4[i][j] << "</ROC_L4>" << std::endl ;
1593  *rocstream << " </DATA>" << std::endl << std::endl ;
1594  *rocstream << " " << std::endl ;
1595  }
1596 
1597  *tbmstream << "" << std::endl ;
1598  *tbmstream << " <DATA>" << std::endl ;
1599  *tbmstream << " <PIXEL_FED>" << fedNumber << "</PIXEL_FED>" << std::endl ;
1600  *tbmstream << " <FED_CHAN>" << i+1 << "</FED_CHAN>" << std::endl ;
1601  *tbmstream << " <TBMA_HEAD_L0>" << TBM_L0[i] << "</TBMA_HEAD_L0>" << std::endl ;
1602  *tbmstream << " <TBMA_HEAD_L1>" << TBM_L1[i] << "</TBMA_HEAD_L1>" << std::endl ;
1603  *tbmstream << " <TBMA_HEAD_L2>" << TBM_L2[i] << "</TBMA_HEAD_L2>" << std::endl ;
1604  *tbmstream << " <TBMA_HEAD_L3>" << TBM_L3[i] << "</TBMA_HEAD_L3>" << std::endl ;
1605  *tbmstream << " <TBMA_HEAD_L4>" << TBM_L4[i] << "</TBMA_HEAD_L4>" << std::endl ;
1606  *tbmstream << " <TBMA_TRAIL_L0>" << TRL_L0[i] << "</TBMA_TRAIL_L0>" << std::endl ;
1607  *tbmstream << " <TBMA_TRAIL_L1>" << TRL_L1[i] << "</TBMA_TRAIL_L1>" << std::endl ;
1608  *tbmstream << " <TBMA_TRAIL_L2>" << TRL_L2[i] << "</TBMA_TRAIL_L2>" << std::endl ;
1609  *tbmstream << " <TBMA_TRAIL_L3>" << TRL_L3[i] << "</TBMA_TRAIL_L3>" << std::endl ;
1610  *tbmstream << " <TBMA_TRAIL_L4>" << TRL_L4[i] << "</TBMA_TRAIL_L4>" << std::endl ;
1611  *tbmstream << " </DATA>" << std::endl << std::endl ;
1612  *tbmstream << "" << std::endl ;
1613  }
1614 }
int i
Definition: DBlmapReader.cc:9
unsigned long FEDBASE_0
Definition: PixelFEDCard.h:155
int ROC_L3[36][26]
Definition: PixelFEDCard.h:93
unsigned int ClkDes2
Definition: PixelFEDCard.h:114
unsigned int SC_Pword
Definition: PixelFEDCard.h:107
unsigned int NCbaseln
Definition: PixelFEDCard.h:129
unsigned int Scntrl
Definition: PixelFEDCard.h:97
unsigned int S_Pword
Definition: PixelFEDCard.h:107
unsigned int SCbaseln
Definition: PixelFEDCard.h:129
int ROC_L4[36][26]
Definition: PixelFEDCard.h:93
unsigned int Sadcg
Definition: PixelFEDCard.h:126
unsigned int Sbaseln
Definition: PixelFEDCard.h:129
unsigned int NC_TBMmask
Definition: PixelFEDCard.h:104
unsigned int Nbaseln
Definition: PixelFEDCard.h:129
int j
Definition: DBlmapReader.cc:9
unsigned int N_TBMmask
Definition: PixelFEDCard.h:104
unsigned int Nadcg
Definition: PixelFEDCard.h:126
unsigned int S_TBMmask
Definition: PixelFEDCard.h:104
int ROC_L0[36][26]
Definition: PixelFEDCard.h:93
unsigned int Ccntrl
Definition: PixelFEDCard.h:117
unsigned int NC_Pword
Definition: PixelFEDCard.h:107
unsigned int NCadcg
Definition: PixelFEDCard.h:126
unsigned int SCadcg
Definition: PixelFEDCard.h:126
unsigned int SC_TBMmask
Definition: PixelFEDCard.h:104
unsigned int clkphs1_9
Definition: PixelFEDCard.h:79
unsigned int clkphs19_27
Definition: PixelFEDCard.h:79
unsigned int clkphs10_18
Definition: PixelFEDCard.h:79
unsigned int N_Pword
Definition: PixelFEDCard.h:107
unsigned int SpecialDac
Definition: PixelFEDCard.h:110
int ROC_L2[36][26]
Definition: PixelFEDCard.h:93
unsigned int Ncntrl
Definition: PixelFEDCard.h:97
unsigned int SCcntrl
Definition: PixelFEDCard.h:97
unsigned long fedNumber
Definition: PixelFEDCard.h:155
unsigned int NCcntrl
Definition: PixelFEDCard.h:97
unsigned int clkphs28_36
Definition: PixelFEDCard.h:79
int ROC_L1[36][26]
Definition: PixelFEDCard.h:93
void PixelFEDCard::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1374 of file PixelFEDCard.cc.

References gather_cfg::cout, pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), and AlCaHLTBitMon_QueryRunRegistry::string.

1374  {
1375  std::string mthn = "[PixelFEDCard::writeXMLHeader()]\t\t\t " ;
1376  std::stringstream fullPath ;
1377 
1378  fullPath << path << "/fedcard_" << PixelTimeFormatter::getmSecTime() << ".xml" ;
1379  std::cout << __LINE__ << "]\t" << mthn << "Writing to: " << fullPath.str() << "" << std::endl ;
1380 
1381  out->open(fullPath.str().c_str()) ;
1382 
1383  *out << "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" << std::endl ;
1384  *out << "<ROOT>" << std::endl ;
1385  *out << "" << std::endl ;
1386  *out << " <HEADER>" << std::endl ;
1387  *out << " <TYPE>" << std::endl ;
1388  *out << " <EXTENSION_TABLE_NAME>FED_CONFIGURATION</EXTENSION_TABLE_NAME>" << std::endl ;
1389  *out << " <NAME>Pixel FED Configuration</NAME>" << std::endl ;
1390  *out << " </TYPE>" << std::endl ;
1391  *out << " <RUN>" << std::endl ;
1392  *out << " <RUN_TYPE>Pixel FED Configuration</RUN_TYPE>" << std::endl ;
1393  *out << " <RUN_NUMBER>1</RUN_NUMBER>" << std::endl ;
1394  *out << " <RUN_BEGIN_TIMESTAMP>" << PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>" << std::endl ;
1395  *out << " <COMMENT_DESCRIPTION>Pixel FED Configuration</COMMENT_DESCRIPTION>" << std::endl ;
1396  *out << " <LOCATION>CERN TAC</LOCATION>" << std::endl ;
1397  *out << " <CREATED_BY_USER>Dario Menasce</CREATED_BY_USER>" << std::endl ;
1398  *out << " </RUN>" << std::endl ;
1399  *out << " </HEADER>" << std::endl ;
1400  *out << "" << std::endl ;
1401  *out << " <DATA_SET>" << std::endl ;
1402  *out << "" << std::endl ;
1403  *out << " <VERSION>" << version << "</VERSION>" << std::endl ;
1404  *out << " <COMMENT_DESCRIPTION>Pixel FED Configuration</COMMENT_DESCRIPTION>" << std::endl ;
1405  *out << "" << std::endl ;
1406  *out << " <PART>" << std::endl ;
1407  *out << " <NAME_LABEL>CMS-PIXEL-ROOT</NAME_LABEL>" << std::endl ;
1408  *out << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ;
1409  *out << " </PART>" << std::endl ;
1410 }
static std::string getmSecTime(void)
static std::string getTime(void)
tuple out
Definition: dbtoconf.py:99
tuple cout
Definition: gather_cfg.py:121
void PixelFEDCard::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  fedstream,
std::ofstream *  roclvlstream,
std::ofstream *  tbmlvlsteram 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1255 of file PixelFEDCard.cc.

References gather_cfg::cout, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), and AlCaHLTBitMon_QueryRunRegistry::string.

1261 {
1262  std::string mthn = "[PixelFEDCard::writeXMLHeader()]\t\t\t " ;
1263  std::stringstream fedfullPath ;
1264  std::stringstream rocfullPath ;
1265  std::stringstream tbmfullPath ;
1266 
1267  // modified by MR on 05-08-2008 16:50:28
1268  // FED MAIN XML FILE
1269  fedfullPath << path << "/FedConfiguration_Template_" << PixelTimeFormatter::getmSecTime() << ".xml" ;
1270  std::cout << __LINE__ << "]\t" << mthn << "Writing to: " << fedfullPath.str() << "" << std::endl ;
1271 
1272  fedstream->open(fedfullPath.str().c_str()) ;
1273 
1274  *fedstream << "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" << std::endl ;
1275  *fedstream << "<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>" << std::endl ;
1276  *fedstream << "" << std::endl ;
1277  *fedstream << " <HEADER>" << std::endl ;
1278  *fedstream << " <HINTS mode='load-as-group' /> " << std::endl ;
1279  *fedstream << " <TYPE>" << std::endl ;
1280  *fedstream << " <EXTENSION_TABLE_NAME>FED_CONFIGURATION</EXTENSION_TABLE_NAME>" << std::endl ;
1281  *fedstream << " <NAME>Pixel FED Configuration</NAME>" << std::endl ;
1282  *fedstream << " </TYPE>" << std::endl ;
1283  *fedstream << " <RUN>" << std::endl ;
1284  *fedstream << " <RUN_TYPE>Pixel FED Configuration</RUN_TYPE>" << std::endl ;
1285  *fedstream << " <RUN_NUMBER>1</RUN_NUMBER>" << std::endl ;
1286  *fedstream << " <RUN_BEGIN_TIMESTAMP>" << PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>" << std::endl ;
1287  *fedstream << " <LOCATION>CERN P5</LOCATION>" << std::endl ;
1288  *fedstream << " </RUN>" << std::endl ;
1289  *fedstream << " </HEADER>" << std::endl ;
1290  *fedstream << "" << std::endl ;
1291  *fedstream << " <DATA_SET>" << std::endl ;
1292  *fedstream << "" << std::endl ;
1293  *fedstream << " <VERSION>" << version << "</VERSION>" << std::endl ;
1294  *fedstream << " <COMMENT_DESCRIPTION>" << getComment() << "</COMMENT_DESCRIPTION>" << std::endl ;
1295  *fedstream << " <CREATED_BY_USER>" << getAuthor() << "</CREATED_BY_USER>" << std::endl ;
1296  *fedstream << "" << std::endl ;
1297  *fedstream << " <PART>" << std::endl ;
1298  *fedstream << " <NAME_LABEL>CMS-PIXEL-ROOT</NAME_LABEL>" << std::endl ;
1299  *fedstream << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ;
1300  *fedstream << " </PART>" << std::endl ;
1301 
1302  // ROC LEVELS MAIN XML FILE
1303  rocfullPath << path << "/Pixel_RocAnalogLevels_" << PixelTimeFormatter::getmSecTime() << ".xml" ;
1304  std::cout << __LINE__ << "]\t" << mthn << "Writing to: " << rocfullPath.str() << "" << std::endl ;
1305 
1306  rocstream->open(rocfullPath.str().c_str()) ;
1307 
1308 
1309  *rocstream << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" << std::endl ;
1310  *rocstream << "<ROOT xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">" << std::endl ;
1311  *rocstream << "" << std::endl ;
1312  *rocstream << " <HEADER>" << std::endl ;
1313  *rocstream << " <HINTS mode='only-det-root,load-as-group'/>" << std::endl ;
1314  *rocstream << " <TYPE>" << std::endl ;
1315  *rocstream << " <EXTENSION_TABLE_NAME>ROC_ANALOG_LEVELS</EXTENSION_TABLE_NAME>" << std::endl ;
1316  *rocstream << " <NAME>ROC Analog Levels</NAME>" << std::endl ;
1317  *rocstream << " </TYPE>" << std::endl ;
1318  *rocstream << " <RUN>" << std::endl ;
1319  *rocstream << " <RUN_TYPE>ROC Analog Levels</RUN_TYPE>" << std::endl ;
1320  *rocstream << " <RUN_NUMBER>1</RUN_NUMBER> " << std::endl ;
1321  *rocstream << " <RUN_BEGIN_TIMESTAMP>" << PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>" << std::endl ;
1322  *rocstream << " <CREATED_BY_USER>Umesh Joshi</CREATED_BY_USER> " << std::endl ;
1323  *rocstream << " <LOCATION>CERN</LOCATION> " << std::endl ;
1324  *rocstream << " <COMMENT_DESCRIPTION>ROC Analog Levels Template</COMMENT_DESCRIPTION>" << std::endl ;
1325  *rocstream << " </RUN>" << std::endl ;
1326  *rocstream << " </HEADER>" << std::endl ;
1327  *rocstream << "" << std::endl ;
1328  *rocstream << " <DATA_SET>" << std::endl ;
1329  *rocstream << " <COMMENT_DESCRIPTION>ROC Analog Levels Template</COMMENT_DESCRIPTION>" << std::endl ;
1330  *rocstream << " <VERSION>" << version << "</VERSION>" << std::endl ;
1331  *rocstream << " " << std::endl ;
1332  *rocstream << " <PART>" << std::endl ;
1333  *rocstream << " <SERIAL_NUMBER>CMS-PIXEL-ROOT</SERIAL_NUMBER>" << std::endl ;
1334  *rocstream << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ;
1335  *rocstream << " </PART>" << std::endl ;
1336 
1337  // TBM LEVELS MAIN XML FILE
1338  tbmfullPath << path << "/Pixel_TbmAnalogLevels_" << PixelTimeFormatter::getmSecTime() << ".xml" ;
1339  std::cout << __LINE__ << "]\t" << mthn << "Writing to: " << tbmfullPath.str() << "" << std::endl ;
1340 
1341  tbmstream->open(tbmfullPath.str().c_str()) ;
1342 
1343 
1344  *tbmstream << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" << std::endl ;
1345  *tbmstream << "<ROOT xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">" << std::endl ;
1346  *tbmstream << "" << std::endl ;
1347  *tbmstream << " <HEADER>" << std::endl ;
1348  *tbmstream << " <HINTS mode='only-det-root,load-as-group' />" << std::endl ;
1349  *tbmstream << " <TYPE>" << std::endl ;
1350  *tbmstream << " <EXTENSION_TABLE_NAME>TBM_ANALOG_LEVELS</EXTENSION_TABLE_NAME>" << std::endl ;
1351  *tbmstream << " <NAME>TBM Analog Levels</NAME>" << std::endl ;
1352  *tbmstream << " </TYPE>" << std::endl ;
1353  *tbmstream << " <RUN>" << std::endl ;
1354  *tbmstream << " <RUN_TYPE>TBM Analog Levels</RUN_TYPE>" << std::endl ;
1355  *tbmstream << " <RUN_NUMBER>1</RUN_NUMBER>" << std::endl ;
1356  *tbmstream << " <RUN_BEGIN_TIMESTAMP>" << PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>" << std::endl ;
1357  *tbmstream << " <CREATED_BY_USER>Umesh Joshi</CREATED_BY_USER> " << std::endl ;
1358  *tbmstream << " <LOCATION>CERN</LOCATION> " << std::endl ;
1359  *tbmstream << " <COMMENT_DESCRIPTION>TBM Analog Levels</COMMENT_DESCRIPTION>" << std::endl ;
1360  *tbmstream << " </RUN>" << std::endl ;
1361  *tbmstream << " </HEADER>" << std::endl ;
1362  *tbmstream << "" << std::endl ;
1363  *tbmstream << " <DATA_SET>" << std::endl ;
1364  *tbmstream << " <VERSION>" << version << "</VERSION>" << std::endl ;
1365  *tbmstream << " " << std::endl ;
1366  *tbmstream << " <PART>" << std::endl ;
1367  *tbmstream << " <SERIAL_NUMBER>CMS-PIXEL-ROOT</SERIAL_NUMBER>" << std::endl ;
1368  *tbmstream << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ;
1369  *tbmstream << " </PART>" << std::endl ;
1370 
1371 }
static std::string getmSecTime(void)
static std::string getTime(void)
std::string getComment() const
std::string getAuthor() const
tuple cout
Definition: gather_cfg.py:121
void PixelFEDCard::writeXMLTrailer ( std::ofstream *  out) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1646 of file PixelFEDCard.cc.

References gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.

1646  {
1647  std::string mthn = "[PixelFEDCard::writeXMLTrailer()]\t\t\t " ;
1648 
1649  *out << " </DATA_SET>" << std::endl ;
1650  *out << "</ROOT>" << std::endl ;
1651 
1652  out->close() ;
1653  std::cout << __LINE__ << "]\t" << mthn << "Data written" << std::endl ;
1654 }
tuple out
Definition: dbtoconf.py:99
tuple cout
Definition: gather_cfg.py:121
void PixelFEDCard::writeXMLTrailer ( std::ofstream *  fedstream,
std::ofstream *  recostream,
std::ofstream *  tbmstream 
) const
virtual

Reimplemented from pos::PixelConfigBase.

Definition at line 1617 of file PixelFEDCard.cc.

References gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.

1620 {
1621  std::string mthn = "[PixelFEDCard::writeXMLTrailer()]\t\t\t " ;
1622 
1623  // Main FED
1624  *fedstream << " </DATA_SET>" << std::endl ;
1625  *fedstream << "</ROOT>" << std::endl ;
1626 
1627  fedstream->close() ;
1628  std::cout << __LINE__ << "]\t" << mthn << "Data written for main fed" << std::endl ;
1629 
1630  // ROC LVLS
1631  *rocstream << " </DATA_SET>" << std::endl ;
1632  *rocstream << "</ROOT>" << std::endl ;
1633 
1634  rocstream->close() ;
1635  std::cout << __LINE__ << "]\t" << mthn << "Data written for roc analog levels" << std::endl ;
1636 
1637  // TBM LVLS
1638  *tbmstream << " </DATA_SET>" << std::endl ;
1639  *tbmstream << "</ROOT>" << std::endl ;
1640 
1641  tbmstream->close() ;
1642  std::cout << __LINE__ << "]\t" << mthn << "Data written for tbm analog levels" << std::endl ;
1643 }
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

int pos::PixelFEDCard::BlackHi[36]

Definition at line 85 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::BlackLo[36]

Definition at line 86 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Ccntrl

Definition at line 117 of file PixelFEDCard.h.

Referenced by clear(), restoreControlAndModeRegister(), writeASCII(), and writeXML().

int pos::PixelFEDCard::Ccntrl_original

Definition at line 151 of file PixelFEDCard.h.

Referenced by restoreControlAndModeRegister().

unsigned int pos::PixelFEDCard::ClkDes2

Definition at line 114 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::clkphs10_18

Definition at line 79 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::clkphs19_27

Definition at line 79 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::clkphs1_9

Definition at line 79 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::clkphs28_36

Definition at line 79 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::CoarseDel

Definition at line 113 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::DelayCh[36]

Definition at line 82 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::Errlvl

Definition at line 132 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned long pos::PixelFEDCard::FEDBASE_0

Definition at line 155 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned long pos::PixelFEDCard::fedNumber
int pos::PixelFEDCard::FedTTCDelay

Definition at line 138 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

int pos::PixelFEDCard::fifo3Wrnlvl

Definition at line 135 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::FineDes1Del

Definition at line 113 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::FineDes2Del

Definition at line 113 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::modeRegister

Definition at line 120 of file PixelFEDCard.h.

Referenced by clear(), restoreControlAndModeRegister(), writeASCII(), and writeXML().

int pos::PixelFEDCard::modeRegister_original

Definition at line 152 of file PixelFEDCard.h.

Referenced by restoreControlAndModeRegister().

int pos::PixelFEDCard::N_hitlimit

Definition at line 141 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::N_Pword

Definition at line 107 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::N_TBMmask

Definition at line 104 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::N_testreg

Definition at line 144 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Nadcg

Definition at line 126 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Nbaseln

Definition at line 129 of file PixelFEDCard.h.

Referenced by clear(), restoreBaselinAndChannelMasks(), writeASCII(), and writeXML().

int pos::PixelFEDCard::Nbaseln_original

Definition at line 148 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

int pos::PixelFEDCard::NC_hitlimit

Definition at line 141 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::NC_Pword

Definition at line 107 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::NC_TBMmask

Definition at line 104 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::NC_testreg

Definition at line 144 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::NCadcg

Definition at line 126 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::NCbaseln

Definition at line 129 of file PixelFEDCard.h.

Referenced by clear(), restoreBaselinAndChannelMasks(), writeASCII(), and writeXML().

int pos::PixelFEDCard::NCbaseln_original

Definition at line 148 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

unsigned int pos::PixelFEDCard::NCcntrl
unsigned int pos::PixelFEDCard::NCcntrl_original

Definition at line 101 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

int pos::PixelFEDCard::NCfifo1Bzlvl

Definition at line 135 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Ncntrl
unsigned int pos::PixelFEDCard::Ncntrl_original

Definition at line 101 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

int pos::PixelFEDCard::Nfifo1Bzlvl

Definition at line 135 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::NRocs[36]

Definition at line 123 of file PixelFEDCard.h.

Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().

int pos::PixelFEDCard::offs_dac[36]

Definition at line 76 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::Ooslvl

Definition at line 132 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::opt_cap[3]

Definition at line 71 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::opt_inadj[3]

Definition at line 72 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::opt_ouadj[3]

Definition at line 73 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::ROC_L0[36][26]

Definition at line 93 of file PixelFEDCard.h.

Referenced by clear(), readDBROCLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::ROC_L1[36][26]

Definition at line 93 of file PixelFEDCard.h.

Referenced by clear(), readDBROCLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::ROC_L2[36][26]

Definition at line 93 of file PixelFEDCard.h.

Referenced by clear(), readDBROCLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::ROC_L3[36][26]

Definition at line 93 of file PixelFEDCard.h.

Referenced by clear(), readDBROCLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::ROC_L4[36][26]

Definition at line 93 of file PixelFEDCard.h.

Referenced by clear(), readDBROCLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::S_hitlimit

Definition at line 141 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::S_Pword

Definition at line 107 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::S_TBMmask

Definition at line 104 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::S_testreg

Definition at line 144 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Sadcg

Definition at line 126 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Sbaseln

Definition at line 129 of file PixelFEDCard.h.

Referenced by clear(), restoreBaselinAndChannelMasks(), writeASCII(), and writeXML().

int pos::PixelFEDCard::Sbaseln_original

Definition at line 148 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

int pos::PixelFEDCard::SC_hitlimit

Definition at line 141 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::SC_Pword

Definition at line 107 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::SC_TBMmask

Definition at line 104 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::SC_testreg

Definition at line 144 of file PixelFEDCard.h.

Referenced by writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::SCadcg

Definition at line 126 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::SCbaseln

Definition at line 129 of file PixelFEDCard.h.

Referenced by clear(), restoreBaselinAndChannelMasks(), writeASCII(), and writeXML().

int pos::PixelFEDCard::SCbaseln_original

Definition at line 148 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

unsigned int pos::PixelFEDCard::SCcntrl
unsigned int pos::PixelFEDCard::SCcntrl_original

Definition at line 101 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

int pos::PixelFEDCard::SCfifo1Bzlvl

Definition at line 135 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::Scntrl
unsigned int pos::PixelFEDCard::Scntrl_original

Definition at line 101 of file PixelFEDCard.h.

Referenced by restoreBaselinAndChannelMasks().

int pos::PixelFEDCard::Sfifo1Bzlvl

Definition at line 135 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

unsigned int pos::PixelFEDCard::SpecialDac

Definition at line 110 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TBM_L0[36]

Definition at line 90 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TBM_L1[36]

Definition at line 90 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TBM_L2[36]

Definition at line 90 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TBM_L3[36]

Definition at line 90 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TBM_L4[36]

Definition at line 90 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TRL_L0[36]

Definition at line 91 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TRL_L1[36]

Definition at line 91 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TRL_L2[36]

Definition at line 91 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TRL_L3[36]

Definition at line 91 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::TRL_L4[36]

Definition at line 91 of file PixelFEDCard.h.

Referenced by clear(), readDBTBMLevels(), writeASCII(), and writeXML().

int pos::PixelFEDCard::Ublack[36]

Definition at line 87 of file PixelFEDCard.h.

Referenced by clear(), writeASCII(), and writeXML().