54 setTagValue(
"EXTENSION_TABLE_NAME", config -> extention_table_name );
59 setTagValue(
"INTERVAL_OF_VALIDITY_BEGIN", config -> iov_begin );
60 setTagValue(
"INTERVAL_OF_VALIDITY_END", config -> iov_end );
64 setTagValue(
"DETECTOR_NAME", config -> detector_name );
65 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description );
101 DOMDocument * dataSet = dataSetDoc .
getDocument();
105 setTagValue(
"SUBVERSION", config -> subversion, 0, dataSet );
108 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> create_timestamp) ) );
109 setTagValue(
"CREATE_TIMESTAMP", timebuf , 0, dataSet );
110 setTagValue(
"CREATED_BY_USER", config -> created_by_user, 0, dataSet );
111 setTagValue(
"KIND_OF_PART", config -> kind_of_part, 0, dataSet );
112 setTagValue(
"NAME_LABEL", config -> name_label, 0, dataSet );
113 setTagValue(
"TRIG_PRIM_LOOKUPTBL_DATA_FILE", config -> trig_prim_lookuptbl_data_file, 0, dataSet );
114 setTagValue(
"CRATE", config -> crate, 0, dataSet );
117 DOMNode * cloneDataSet =
document -> importNode( dataSet -> getDocumentElement(),
true );
118 root -> appendChild( cloneDataSet );
128 DOMDocument * dataSet = dataSetDoc .
getDocument();
132 setTagValue(
"SUBVERSION", config -> subversion, 0, dataSet );
135 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> create_timestamp) ) );
136 setTagValue(
"CREATE_TIMESTAMP", timebuf , 0, dataSet );
137 setTagValue(
"CREATED_BY_USER", config -> created_by_user, 0, dataSet );
138 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description, 0, dataSet );
139 setTagValue(
"NAME_LABEL", config -> name_label, 0, dataSet );
140 setTagValue(
"TRIG_PRIM_LOOKUPTBL_DATA_FILE", config -> trig_prim_lookuptbl_data_file, 0, dataSet );
141 setTagValue(
"CRATE", config -> crate, 0, dataSet );
144 DOMNode * cloneDataSet =
document -> importNode( dataSet -> getDocumentElement(),
true );
145 root -> appendChild( cloneDataSet );
155 for ( std::vector<std::string>::const_iterator _file = file_name .
begin(); _file != file_name .
end(); _file++ )
157 conf . trig_prim_lookuptbl_data_file = *_file;
158 conf . trig_prim_lookuptbl_data_file +=
".dat";
159 conf . crate = crate_number[ _file - file_name .
begin() ];
162 sprintf( _buf,
"CRATE%.2d", conf . crate );
164 _namelabel .
append( _buf );
165 conf . name_label = _namelabel;
169 CSconf . trig_prim_lookuptbl_data_file +=
".dat";
171 write(
"LUTLoader.xml" );
XERCES_CPP_NAMESPACE::DOMDocument * document
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
XERCES_CPP_NAMESPACE::DOMDocument * getDocument(void)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
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
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)