31 std::shared_ptr<GenRunInfo> run = std::shared_ptr<GenRunInfo>());
35 std::shared_ptr<GenRunInfo> run = std::shared_ptr<GenRunInfo>());
38 std::shared_ptr<GenRunInfo> run = std::shared_ptr<GenRunInfo>());
55 void close()
override;
75 void allocate_buffer();
81 void set_buffer_size(
const size_t& size );
84 static std::string escape(
const std::string& s);
102 void write_string(
const std::string &str );
107 void write_vertex(
const ConstGenVertexPtr& v);
112 void write_particle(
const ConstGenParticlePtr& p,
int second_field);
118 std::ofstream m_file;
119 std::shared_ptr<std::ostream> m_shared_stream =
nullptr;
120 std::ostream* m_stream =
nullptr;
122 int m_precision = 16;
123 char* m_buffer =
nullptr;
124 char* m_cursor =
nullptr;
125 unsigned long m_buffer_size = 262144;
126 std::string m_float_printf_specifier;
127 std::string m_particle_printf_specifier;
128 std::string m_vertex_short_printf_specifier;
129 std::string m_vertex_long_printf_specifier;