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 
15  // constructors, destructors
18  virtual ~LHEXMLStringProduct();
19 
20  // getters
21  const std::vector<std::string>& getStrings() const{
22  return content_;
23  }
24 
25  const std::vector<std::vector<uint8_t> >& getCompressed() const{
26  return compressedContent_;
27  }
28 
29  void fillCompressedContent(std::istream &input, unsigned int initialSize = 4*1024*1024);
30  void writeCompressedContent(std::ostream &output, unsigned int i) const;
31 
32  // merge method. It will be used when merging different jobs populating the same lumi section
34  void swap(LHEXMLStringProduct& other);
35 
36 private:
37  std::vector<std::string> content_;
38  std::vector<std::vector<uint8_t> > compressedContent_;
39 
40 };
41 
42 
43 #endif // SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
void swap(LHEXMLStringProduct &other)
const std::vector< std::string > & getStrings() const
static std::string const input
Definition: EdmProvDump.cc:45
const std::vector< std::vector< uint8_t > > & getCompressed() const
std::vector< std::vector< uint8_t > > compressedContent_
std::vector< std::string > content_
void writeCompressedContent(std::ostream &output, unsigned int i) const
bool mergeProduct(LHEXMLStringProduct const &other)
void fillCompressedContent(std::istream &input, unsigned int initialSize=4 *1024 *1024)