#include <PixelTTCciConfig.h>
|
std::stringstream & | getTTCConfigStream () |
|
| PixelTTCciConfig (std::string filename) |
|
| PixelTTCciConfig (std::vector< std::vector< std::string > > &) |
|
virtual void | writeASCII (std::string dir) const |
|
virtual void | writeXML (pos::PixelConfigKey key, int version, std::string path) const |
|
virtual void | writeXML (std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const |
|
virtual void | writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const |
|
virtual void | writeXMLTrailer (std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const |
|
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 void | writeXML (std::ofstream *out) const |
|
virtual void | writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const |
|
virtual void | writeXMLTrailer (std::ofstream *out) const |
|
virtual | ~PixelConfigBase () |
|
Definition at line 19 of file PixelTTCciConfig.h.
PixelTTCciConfig::PixelTTCciConfig |
( |
std::string |
filename | ) |
|
pos::PixelTTCciConfig::PixelTTCciConfig |
( |
std::vector< std::vector< std::string > > & |
| ) |
|
std::stringstream& pos::PixelTTCciConfig::getTTCConfigStream |
( |
| ) |
|
|
inline |
void PixelTTCciConfig::writeASCII |
( |
std::string |
dir | ) |
const |
|
virtual |
virtual void pos::PixelTTCciConfig::writeXML |
( |
pos::PixelConfigKey |
key, |
|
|
int |
version, |
|
|
std::string |
path |
|
) |
| const |
|
inlinevirtual |
void PixelTTCciConfig::writeXML |
( |
std::ofstream * |
out, |
|
|
std::ofstream * |
out1 = NULL , |
|
|
std::ofstream * |
out2 = NULL |
|
) |
| const |
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 152 of file PixelTTCciConfig.cc.
156 std::string mthn =
"[PixelTTCciConfig::writeXML()]\t\t\t " ;
158 *outstream <<
" " << std::endl ;
159 *outstream <<
" <DATA>" << std::endl ;
160 *outstream <<
" <TTC_OBJ_DATA_FILE>TTCciConfiguration.txt</TTC_OBJ_DATA_FILE>" << std::endl ;
161 *outstream <<
" </DATA>" << std::endl ;
162 *outstream <<
" " << std::endl ;
void PixelTTCciConfig::writeXMLHeader |
( |
pos::PixelConfigKey |
key, |
|
|
int |
version, |
|
|
std::string |
path, |
|
|
std::ofstream * |
out, |
|
|
std::ofstream * |
out1 = NULL , |
|
|
std::ofstream * |
out2 = NULL |
|
) |
| const |
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 105 of file PixelTTCciConfig.cc.
References gather_cfg::cout, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), and writeASCII().
112 std::string mthn =
"[PixelTTCciConfig::writeXMLHeader()]\t\t\t " ;
113 std::stringstream maskFullPath ;
118 std::cout << mthn <<
"Writing to: " << maskFullPath.str() << std::endl ;
120 outstream->open(maskFullPath.str().c_str()) ;
122 *outstream <<
"<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" << std::endl ;
123 *outstream <<
"<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>" << std::endl ;
124 *outstream <<
"" << std::endl ;
125 *outstream <<
" <HEADER>" << std::endl ;
126 *outstream <<
" <TYPE>" << std::endl ;
127 *outstream <<
" <EXTENSION_TABLE_NAME>PIXEL_TTC_PARAMETERS</EXTENSION_TABLE_NAME>" << std::endl ;
128 *outstream <<
" <NAME>TTC Configuration Parameters</NAME>" << std::endl ;
129 *outstream <<
" </TYPE>" << std::endl ;
130 *outstream <<
" <RUN>" << std::endl ;
131 *outstream <<
" <RUN_TYPE>TTC Configuration Parameters</RUN_TYPE>" << std::endl ;
132 *outstream <<
" <RUN_NUMBER>1</RUN_NUMBER>" << std::endl ;
134 *outstream <<
" <LOCATION>CERN P5</LOCATION>" << std::endl ;
135 *outstream <<
" </RUN>" << std::endl ;
136 *outstream <<
" </HEADER>" << std::endl ;
137 *outstream <<
"" << std::endl ;
138 *outstream <<
" <DATA_SET>" << std::endl ;
139 *outstream <<
"" << std::endl ;
140 *outstream <<
" <VERSION>" <<
version <<
"</VERSION>" << std::endl ;
141 *outstream <<
" <COMMENT_DESCRIPTION>" <<
getComment() <<
"</COMMENT_DESCRIPTION>" << std::endl ;
142 *outstream <<
" <CREATED_BY_USER>" <<
getAuthor() <<
"</CREATED_BY_USER>" << std::endl ;
143 *outstream <<
"" << std::endl ;
144 *outstream <<
" <PART>" << std::endl ;
145 *outstream <<
" <NAME_LABEL>CMS-PIXEL-ROOT</NAME_LABEL>" << std::endl ;
146 *outstream <<
" <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ;
147 *outstream <<
" </PART>" << std::endl ;
virtual void writeASCII(std::string dir) const
std::string getComment() const
std::string getAuthor() const
void PixelTTCciConfig::writeXMLTrailer |
( |
std::ofstream * |
out, |
|
|
std::ofstream * |
out1 = NULL , |
|
|
std::ofstream * |
out2 = NULL |
|
) |
| const |
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 166 of file PixelTTCciConfig.cc.
References gather_cfg::cout.
170 std::string mthn =
"[PixelTTCciConfig::writeXMLTrailer()]\t\t\t " ;
172 *outstream <<
" " << std::endl ;
173 *outstream <<
" </DATA_SET>" << std::endl ;
174 *outstream <<
"</ROOT>" << std::endl ;
177 std::cout << mthn <<
"Data written " << std::endl ;
std::stringstream pos::PixelTTCciConfig::ttcConfigStream_ |
|
private |