53 setTagValue(
"EXTENSION_TABLE_NAME", config -> extention_table_name );
58 setTagValue(
"INTERVAL_OF_VALIDITY_BEGIN", config -> iov_begin );
59 setTagValue(
"INTERVAL_OF_VALIDITY_END", config -> iov_end );
63 setTagValue(
"DETECTOR_NAME", config -> detector_name );
64 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description );
100 DOMDocument * dataSet = dataSetDoc .
getDocument();
104 setTagValue(
"SUBVERSION", config -> subversion, 0, dataSet );
107 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> create_timestamp) ) );
108 setTagValue(
"CREATE_TIMESTAMP", timebuf , 0, dataSet );
109 setTagValue(
"CREATED_BY_USER", config -> created_by_user, 0, dataSet );
110 setTagValue(
"KIND_OF_PART", config -> kind_of_part, 0, dataSet );
111 setTagValue(
"NAME_LABEL", config -> name_label, 0, dataSet );
112 setTagValue(
"TRIG_PRIM_LOOKUPTBL_DATA_FILE", config -> trig_prim_lookuptbl_data_file, 0, dataSet );
113 setTagValue(
"CRATE", config -> crate, 0, dataSet );
116 DOMNode * cloneDataSet =
document -> importNode( dataSet -> getDocumentElement(),
true );
117 root -> appendChild( cloneDataSet );
127 DOMDocument * dataSet = dataSetDoc .
getDocument();
131 setTagValue(
"SUBVERSION", config -> subversion, 0, dataSet );
134 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> create_timestamp) ) );
135 setTagValue(
"CREATE_TIMESTAMP", timebuf , 0, dataSet );
136 setTagValue(
"CREATED_BY_USER", config -> created_by_user, 0, dataSet );
137 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description, 0, dataSet );
138 setTagValue(
"NAME_LABEL", config -> name_label, 0, dataSet );
139 setTagValue(
"TRIG_PRIM_LOOKUPTBL_DATA_FILE", config -> trig_prim_lookuptbl_data_file, 0, dataSet );
140 setTagValue(
"CRATE", config -> crate, 0, dataSet );
143 DOMNode * cloneDataSet =
document -> importNode( dataSet -> getDocumentElement(),
true );
144 root -> appendChild( cloneDataSet );
154 for ( std::vector<std::string>::const_iterator _file = file_name .
begin(); _file != file_name .
end(); _file++ )
156 conf . trig_prim_lookuptbl_data_file = *_file;
157 conf . trig_prim_lookuptbl_data_file +=
".dat";
158 conf . crate = crate_number[ _file - file_name .
begin() ];
161 sprintf( _buf,
"CRATE%.2d", conf . crate );
163 _namelabel .
append( _buf );
164 conf . name_label = _namelabel;
168 CSconf . trig_prim_lookuptbl_data_file +=
".dat";
170 write(
"LUTLoader.xml" );
std::string trig_prim_lookuptbl_data_file
int addLUT(lutDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template")
int write(std::string target="stdout")
std::string comment_description
DOMDocument * getDocument(void)
int createLoader(const std::vector< int > &crate_number, const std::vector< std::string > &file_name)
int addChecksums(checksumsDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template")
std::string trig_prim_lookuptbl_data_file
DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, DOMDocument *_document=NULL)
DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
string root
initialization