CMS 3D CMS Logo

LHEXMLStringProduct.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
2 #define SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
3 
8 #include <string>
9 #include <vector>
10 #include <cstdint>
11 
13 public:
14  // constructors, destructors
17  virtual ~LHEXMLStringProduct();
18 
19  // getters
20  const std::vector<std::string>& getStrings() const { return content_; }
21 
22  const std::vector<std::vector<uint8_t> >& getCompressed() const { return compressedContent_; }
23 
24  void fillCompressedContent(std::istream& input, unsigned int initialSize = 4 * 1024 * 1024);
25  void writeCompressedContent(std::ostream& output, unsigned int i) const;
26 
27  // merge method. It will be used when merging different jobs populating the same lumi section
30 
31 private:
32  std::vector<std::string> content_;
33  std::vector<std::vector<uint8_t> > compressedContent_;
34 };
35 
36 #endif // SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
mps_fire.i
i
Definition: mps_fire.py:428
input
static const std::string input
Definition: EdmProvDump.cc:48
LHEXMLStringProduct::compressedContent_
std::vector< std::vector< uint8_t > > compressedContent_
Definition: LHEXMLStringProduct.h:33
LHEXMLStringProduct::getCompressed
const std::vector< std::vector< uint8_t > > & getCompressed() const
Definition: LHEXMLStringProduct.h:22
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
LHEXMLStringProduct::writeCompressedContent
void writeCompressedContent(std::ostream &output, unsigned int i) const
Definition: LHEXMLStringProduct.cc:84
LHEXMLStringProduct::fillCompressedContent
void fillCompressedContent(std::istream &input, unsigned int initialSize=4 *1024 *1024)
Definition: LHEXMLStringProduct.cc:18
LHEXMLStringProduct::LHEXMLStringProduct
LHEXMLStringProduct()
Definition: LHEXMLStringProduct.cc:12
LHEXMLStringProduct::swap
void swap(LHEXMLStringProduct &other)
Definition: LHEXMLStringProduct.cc:128
LHEXMLStringProduct::content_
std::vector< std::string > content_
Definition: LHEXMLStringProduct.h:32
trackingPlots.other
other
Definition: trackingPlots.py:1464
LHEXMLStringProduct::mergeProduct
bool mergeProduct(LHEXMLStringProduct const &other)
Definition: LHEXMLStringProduct.cc:122
Skims_PA_cff.content
content
Definition: Skims_PA_cff.py:19
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LHEXMLStringProduct
Definition: LHEXMLStringProduct.h:12
LHEXMLStringProduct::getStrings
const std::vector< std::string > & getStrings() const
Definition: LHEXMLStringProduct.h:20
LHEXMLStringProduct::~LHEXMLStringProduct
virtual ~LHEXMLStringProduct()
Definition: LHEXMLStringProduct.cc:16