36 name =
"HCAL zero suppression [type 1]";
68 setTagValue(
"EXTENSION_TABLE_NAME", config -> extention_table_name );
73 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> run_begin_timestamp) ) );
74 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description );
77 setTagValue(
"INTERVAL_OF_VALIDITY_BEGIN", config -> iov_begin );
78 setTagValue(
"INTERVAL_OF_VALIDITY_END", config -> iov_end );
82 setTagValue(
"DETECTOR_NAME", config -> detector_name );
83 setTagValue(
"COMMENT_DESCRIPTION", config -> elements_comment_description, 1 );
119 DOMDocument * dataSet = dataSetDoc .
getDocument();
123 setTagValue(
"SUBVERSION", config -> subversion, 0, dataSet );
126 strftime( timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime( &(config -> create_timestamp) ) );
127 setTagValue(
"CREATE_TIMESTAMP", timebuf , 0, dataSet );
129 setTagValue(
"CREATED_BY_USER", config -> created_by_user, 0, dataSet );
130 setTagValue(
"COMMENT_DESCRIPTION", config -> comment_description, 0, dataSet );
131 setTagValue(
"EXTENSION_TABLE_NAME", config -> extention_table_name, 0, dataSet );
135 setTagValue(
"DEPTH", config -> depth, 0, dataSet );
137 setTagValue(
"HCAL_CHANNEL_ID", config -> hcal_channel_id, 0, dataSet );
138 setTagValue(
"DETECTOR_NAME", config -> detector_name, 0, dataSet );
139 setTagValue(
"ZERO_SUPPRESSION", config -> zero_suppression, 0, dataSet );
142 DOMNode * cloneDataSet =
document -> importNode( dataSet -> getDocumentElement(),
true );
143 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