CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <stdint.h>
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
33  bool mergeProduct(LHEXMLStringProduct const &other);
34 
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
int i
Definition: DBlmapReader.cc:9
const std::vector< std::string > & getStrings() const
static std::string const input
Definition: EdmProvDump.cc:44
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)