35 name =
"HCAL zero suppression [type 1]";
67 setTagValue(
"EXTENSION_TABLE_NAME", config -> extention_table_name );
72 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> run_begin_timestamp) ) );
73 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description );
76 setTagValue(
"INTERVAL_OF_VALIDITY_BEGIN", config -> iov_begin );
77 setTagValue(
"INTERVAL_OF_VALIDITY_END", config -> iov_end );
81 setTagValue(
"DETECTOR_NAME", config -> detector_name );
82 setTagValue(
"COMMENT_DESCRIPTION", config -> elements_comment_description, 1 );
118 DOMDocument * dataSet = dataSetDoc .
getDocument();
122 setTagValue(
"SUBVERSION", config -> subversion, 0, dataSet );
125 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> create_timestamp) ) );
126 setTagValue(
"CREATE_TIMESTAMP", timebuf , 0, dataSet );
128 setTagValue(
"CREATED_BY_USER", config -> created_by_user, 0, dataSet );
129 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description, 0, dataSet );
130 setTagValue(
"EXTENSION_TABLE_NAME", config -> extention_table_name, 0, dataSet );
136 setTagValue(
"HCAL_CHANNEL_ID", config -> hcal_channel_id, 0, dataSet );
137 setTagValue(
"DETECTOR_NAME", config -> detector_name, 0, dataSet );
138 setTagValue(
"ZERO_SUPPRESSION", config -> zero_suppression, 0, dataSet );
141 DOMNode * cloneDataSet =
document -> importNode( dataSet -> getDocumentElement(),
true );
142 root -> appendChild( cloneDataSet );
time_t run_begin_timestamp
std::string comment_description
long long int hcal_channel_id
std::string extention_table_name
XMLHTRZeroSuppressionLoader()
virtual ~XMLHTRZeroSuppressionLoader()
DOMDocument * getDocument(void)
int addZS(datasetDBConfig *config, std::string templateFileName="HCAL_HTR_ZERO_SUPPRESSION.dataset.template")
std::string detector_name
std::string comment_description
std::string elements_comment_description
std::string detector_name
std::string extention_table_name
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