Fork me on GitHub

source: git/external/ProMC/ProMC.pb.cc@ 00078bc

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 00078bc was 6b9b91f, checked in by pavel <pavel@…>, 11 years ago

add external/ProMC

  • Property mode set to 100644
File size: 90.9 KB
RevLine 
[6b9b91f]1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ProMC.proto
3
4#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5#include "ProMC.pb.h"
6
7#include <algorithm>
8
9#include <google/protobuf/stubs/common.h>
10#include <google/protobuf/stubs/once.h>
11#include <google/protobuf/io/coded_stream.h>
12#include <google/protobuf/wire_format_lite_inl.h>
13#include <google/protobuf/descriptor.h>
14#include <google/protobuf/generated_message_reflection.h>
15#include <google/protobuf/reflection_ops.h>
16#include <google/protobuf/wire_format.h>
17// @@protoc_insertion_point(includes)
18
19namespace promc {
20
21namespace {
22
23const ::google::protobuf::Descriptor* ProMCEvent_descriptor_ = NULL;
24const ::google::protobuf::internal::GeneratedMessageReflection*
25 ProMCEvent_reflection_ = NULL;
26const ::google::protobuf::Descriptor* ProMCEvent_Event_descriptor_ = NULL;
27const ::google::protobuf::internal::GeneratedMessageReflection*
28 ProMCEvent_Event_reflection_ = NULL;
29const ::google::protobuf::Descriptor* ProMCEvent_Particles_descriptor_ = NULL;
30const ::google::protobuf::internal::GeneratedMessageReflection*
31 ProMCEvent_Particles_reflection_ = NULL;
32
33} // namespace
34
35
36void protobuf_AssignDesc_ProMC_2eproto() {
37 protobuf_AddDesc_ProMC_2eproto();
38 const ::google::protobuf::FileDescriptor* file =
39 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
40 "ProMC.proto");
41 GOOGLE_CHECK(file != NULL);
42 ProMCEvent_descriptor_ = file->message_type(0);
43 static const int ProMCEvent_offsets_[2] = {
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent, event_),
45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent, particles_),
46 };
47 ProMCEvent_reflection_ =
48 new ::google::protobuf::internal::GeneratedMessageReflection(
49 ProMCEvent_descriptor_,
50 ProMCEvent::default_instance_,
51 ProMCEvent_offsets_,
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent, _has_bits_[0]),
53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent, _unknown_fields_),
54 -1,
55 ::google::protobuf::DescriptorPool::generated_pool(),
56 ::google::protobuf::MessageFactory::generated_factory(),
57 sizeof(ProMCEvent));
58 ProMCEvent_Event_descriptor_ = ProMCEvent_descriptor_->nested_type(0);
59 static const int ProMCEvent_Event_offsets_[14] = {
60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, number_),
61 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, process_id_),
62 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, mpi_),
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, id1_),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, id2_),
65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, pdf1_),
66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, pdf2_),
67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, x1_),
68 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, x2_),
69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, scale_pdf_),
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, alpha_qed_),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, scale_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, alpha_qcd_),
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, weight_),
74 };
75 ProMCEvent_Event_reflection_ =
76 new ::google::protobuf::internal::GeneratedMessageReflection(
77 ProMCEvent_Event_descriptor_,
78 ProMCEvent_Event::default_instance_,
79 ProMCEvent_Event_offsets_,
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, _has_bits_[0]),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Event, _unknown_fields_),
82 -1,
83 ::google::protobuf::DescriptorPool::generated_pool(),
84 ::google::protobuf::MessageFactory::generated_factory(),
85 sizeof(ProMCEvent_Event));
86 ProMCEvent_Particles_descriptor_ = ProMCEvent_descriptor_->nested_type(1);
87 static const int ProMCEvent_Particles_offsets_[18] = {
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, id_),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, pdg_id_),
90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, status_),
91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, mass_),
92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, px_),
93 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, py_),
94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, pz_),
95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, mother1_),
96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, mother2_),
97 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, daughter1_),
98 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, daughter2_),
99 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, barcode_),
100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, x_),
101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, y_),
102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, z_),
103 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, t_),
104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, weight_),
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, charge_),
106 };
107 ProMCEvent_Particles_reflection_ =
108 new ::google::protobuf::internal::GeneratedMessageReflection(
109 ProMCEvent_Particles_descriptor_,
110 ProMCEvent_Particles::default_instance_,
111 ProMCEvent_Particles_offsets_,
112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, _has_bits_[0]),
113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCEvent_Particles, _unknown_fields_),
114 -1,
115 ::google::protobuf::DescriptorPool::generated_pool(),
116 ::google::protobuf::MessageFactory::generated_factory(),
117 sizeof(ProMCEvent_Particles));
118}
119
120namespace {
121
122GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
123inline void protobuf_AssignDescriptorsOnce() {
124 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
125 &protobuf_AssignDesc_ProMC_2eproto);
126}
127
128void protobuf_RegisterTypes(const ::std::string&) {
129 protobuf_AssignDescriptorsOnce();
130 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
131 ProMCEvent_descriptor_, &ProMCEvent::default_instance());
132 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
133 ProMCEvent_Event_descriptor_, &ProMCEvent_Event::default_instance());
134 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
135 ProMCEvent_Particles_descriptor_, &ProMCEvent_Particles::default_instance());
136}
137
138} // namespace
139
140void protobuf_ShutdownFile_ProMC_2eproto() {
141 delete ProMCEvent::default_instance_;
142 delete ProMCEvent_reflection_;
143 delete ProMCEvent_Event::default_instance_;
144 delete ProMCEvent_Event_reflection_;
145 delete ProMCEvent_Particles::default_instance_;
146 delete ProMCEvent_Particles_reflection_;
147}
148
149void protobuf_AddDesc_ProMC_2eproto() {
150 static bool already_here = false;
151 if (already_here) return;
152 already_here = true;
153 GOOGLE_PROTOBUF_VERIFY_VERSION;
154
155 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
156 "\n\013ProMC.proto\022\005promc\"\236\005\n\nProMCEvent\022&\n\005e"
157 "vent\030\001 \001(\0132\027.promc.ProMCEvent.Event\022.\n\tp"
158 "articles\030\002 \001(\0132\033.promc.ProMCEvent.Partic"
159 "les\032\336\001\n\005Event\022\016\n\006Number\030\001 \001(\005\022\022\n\nProcess"
160 "_ID\030\002 \001(\005\022\013\n\003MPI\030\003 \001(\005\022\013\n\003ID1\030\004 \001(\005\022\013\n\003I"
161 "D2\030\005 \001(\005\022\014\n\004PDF1\030\006 \001(\002\022\014\n\004PDF2\030\007 \001(\002\022\n\n\002"
162 "X1\030\010 \001(\002\022\n\n\002X2\030\t \001(\002\022\021\n\tScale_PDF\030\n \001(\002\022"
163 "\021\n\tAlpha_QED\030\013 \001(\002\022\r\n\005Scale\030\014 \001(\002\022\021\n\tAlp"
164 "ha_QCD\030\r \001(\002\022\016\n\006Weight\030\016 \001(\001\032\326\002\n\tParticl"
165 "es\022\016\n\002id\030\001 \003(\rB\002\020\001\022\022\n\006pdg_id\030\002 \003(\021B\002\020\001\022\022"
166 "\n\006status\030\003 \003(\rB\002\020\001\022\020\n\004mass\030\004 \003(\004B\002\020\001\022\016\n\002"
167 "Px\030\005 \003(\022B\002\020\001\022\016\n\002Py\030\006 \003(\022B\002\020\001\022\016\n\002Pz\030\007 \003(\022"
168 "B\002\020\001\022\023\n\007mother1\030\010 \003(\rB\002\020\001\022\023\n\007mother2\030\t \003"
169 "(\rB\002\020\001\022\025\n\tdaughter1\030\n \003(\rB\002\020\001\022\025\n\tdaughte"
170 "r2\030\013 \003(\rB\002\020\001\022\023\n\007barcode\030\014 \003(\021B\002\020\001\022\r\n\001X\030\r"
171 " \003(\021B\002\020\001\022\r\n\001Y\030\016 \003(\021B\002\020\001\022\r\n\001Z\030\017 \003(\021B\002\020\001\022\r"
172 "\n\001T\030\020 \003(\rB\002\020\001\022\022\n\006weight\030\021 \003(\004B\002\020\001\022\022\n\006cha"
173 "rge\030\022 \003(\021B\002\020\001B\021\n\010promc.ioB\005ProMC", 712);
174 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
175 "ProMC.proto", &protobuf_RegisterTypes);
176 ProMCEvent::default_instance_ = new ProMCEvent();
177 ProMCEvent_Event::default_instance_ = new ProMCEvent_Event();
178 ProMCEvent_Particles::default_instance_ = new ProMCEvent_Particles();
179 ProMCEvent::default_instance_->InitAsDefaultInstance();
180 ProMCEvent_Event::default_instance_->InitAsDefaultInstance();
181 ProMCEvent_Particles::default_instance_->InitAsDefaultInstance();
182 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ProMC_2eproto);
183}
184
185// Force AddDescriptors() to be called at static initialization time.
186struct StaticDescriptorInitializer_ProMC_2eproto {
187 StaticDescriptorInitializer_ProMC_2eproto() {
188 protobuf_AddDesc_ProMC_2eproto();
189 }
190} static_descriptor_initializer_ProMC_2eproto_;
191
192// ===================================================================
193
194#ifndef _MSC_VER
195const int ProMCEvent_Event::kNumberFieldNumber;
196const int ProMCEvent_Event::kProcessIDFieldNumber;
197const int ProMCEvent_Event::kMPIFieldNumber;
198const int ProMCEvent_Event::kID1FieldNumber;
199const int ProMCEvent_Event::kID2FieldNumber;
200const int ProMCEvent_Event::kPDF1FieldNumber;
201const int ProMCEvent_Event::kPDF2FieldNumber;
202const int ProMCEvent_Event::kX1FieldNumber;
203const int ProMCEvent_Event::kX2FieldNumber;
204const int ProMCEvent_Event::kScalePDFFieldNumber;
205const int ProMCEvent_Event::kAlphaQEDFieldNumber;
206const int ProMCEvent_Event::kScaleFieldNumber;
207const int ProMCEvent_Event::kAlphaQCDFieldNumber;
208const int ProMCEvent_Event::kWeightFieldNumber;
209#endif // !_MSC_VER
210
211ProMCEvent_Event::ProMCEvent_Event()
212 : ::google::protobuf::Message() {
213 SharedCtor();
214}
215
216void ProMCEvent_Event::InitAsDefaultInstance() {
217}
218
219ProMCEvent_Event::ProMCEvent_Event(const ProMCEvent_Event& from)
220 : ::google::protobuf::Message() {
221 SharedCtor();
222 MergeFrom(from);
223}
224
225void ProMCEvent_Event::SharedCtor() {
226 _cached_size_ = 0;
227 number_ = 0;
228 process_id_ = 0;
229 mpi_ = 0;
230 id1_ = 0;
231 id2_ = 0;
232 pdf1_ = 0;
233 pdf2_ = 0;
234 x1_ = 0;
235 x2_ = 0;
236 scale_pdf_ = 0;
237 alpha_qed_ = 0;
238 scale_ = 0;
239 alpha_qcd_ = 0;
240 weight_ = 0;
241 ::memset(_has_bits_, 0, sizeof(_has_bits_));
242}
243
244ProMCEvent_Event::~ProMCEvent_Event() {
245 SharedDtor();
246}
247
248void ProMCEvent_Event::SharedDtor() {
249 if (this != default_instance_) {
250 }
251}
252
253void ProMCEvent_Event::SetCachedSize(int size) const {
254 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
255 _cached_size_ = size;
256 GOOGLE_SAFE_CONCURRENT_WRITES_END();
257}
258const ::google::protobuf::Descriptor* ProMCEvent_Event::descriptor() {
259 protobuf_AssignDescriptorsOnce();
260 return ProMCEvent_Event_descriptor_;
261}
262
263const ProMCEvent_Event& ProMCEvent_Event::default_instance() {
264 if (default_instance_ == NULL) protobuf_AddDesc_ProMC_2eproto();
265 return *default_instance_;
266}
267
268ProMCEvent_Event* ProMCEvent_Event::default_instance_ = NULL;
269
270ProMCEvent_Event* ProMCEvent_Event::New() const {
271 return new ProMCEvent_Event;
272}
273
274void ProMCEvent_Event::Clear() {
275 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
276 number_ = 0;
277 process_id_ = 0;
278 mpi_ = 0;
279 id1_ = 0;
280 id2_ = 0;
281 pdf1_ = 0;
282 pdf2_ = 0;
283 x1_ = 0;
284 }
285 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
286 x2_ = 0;
287 scale_pdf_ = 0;
288 alpha_qed_ = 0;
289 scale_ = 0;
290 alpha_qcd_ = 0;
291 weight_ = 0;
292 }
293 ::memset(_has_bits_, 0, sizeof(_has_bits_));
294 mutable_unknown_fields()->Clear();
295}
296
297bool ProMCEvent_Event::MergePartialFromCodedStream(
298 ::google::protobuf::io::CodedInputStream* input) {
299#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
300 ::google::protobuf::uint32 tag;
301 while ((tag = input->ReadTag()) != 0) {
302 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
303 // optional int32 Number = 1;
304 case 1: {
305 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
306 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
307 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
308 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
309 input, &number_)));
310 set_has_number();
311 } else {
312 goto handle_uninterpreted;
313 }
314 if (input->ExpectTag(16)) goto parse_Process_ID;
315 break;
316 }
317
318 // optional int32 Process_ID = 2;
319 case 2: {
320 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
321 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
322 parse_Process_ID:
323 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
324 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
325 input, &process_id_)));
326 set_has_process_id();
327 } else {
328 goto handle_uninterpreted;
329 }
330 if (input->ExpectTag(24)) goto parse_MPI;
331 break;
332 }
333
334 // optional int32 MPI = 3;
335 case 3: {
336 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
337 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
338 parse_MPI:
339 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
340 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
341 input, &mpi_)));
342 set_has_mpi();
343 } else {
344 goto handle_uninterpreted;
345 }
346 if (input->ExpectTag(32)) goto parse_ID1;
347 break;
348 }
349
350 // optional int32 ID1 = 4;
351 case 4: {
352 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
353 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
354 parse_ID1:
355 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
356 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
357 input, &id1_)));
358 set_has_id1();
359 } else {
360 goto handle_uninterpreted;
361 }
362 if (input->ExpectTag(40)) goto parse_ID2;
363 break;
364 }
365
366 // optional int32 ID2 = 5;
367 case 5: {
368 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
369 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
370 parse_ID2:
371 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
372 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
373 input, &id2_)));
374 set_has_id2();
375 } else {
376 goto handle_uninterpreted;
377 }
378 if (input->ExpectTag(53)) goto parse_PDF1;
379 break;
380 }
381
382 // optional float PDF1 = 6;
383 case 6: {
384 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
385 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
386 parse_PDF1:
387 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
388 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
389 input, &pdf1_)));
390 set_has_pdf1();
391 } else {
392 goto handle_uninterpreted;
393 }
394 if (input->ExpectTag(61)) goto parse_PDF2;
395 break;
396 }
397
398 // optional float PDF2 = 7;
399 case 7: {
400 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
401 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
402 parse_PDF2:
403 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
404 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
405 input, &pdf2_)));
406 set_has_pdf2();
407 } else {
408 goto handle_uninterpreted;
409 }
410 if (input->ExpectTag(69)) goto parse_X1;
411 break;
412 }
413
414 // optional float X1 = 8;
415 case 8: {
416 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
417 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
418 parse_X1:
419 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
420 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
421 input, &x1_)));
422 set_has_x1();
423 } else {
424 goto handle_uninterpreted;
425 }
426 if (input->ExpectTag(77)) goto parse_X2;
427 break;
428 }
429
430 // optional float X2 = 9;
431 case 9: {
432 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
433 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
434 parse_X2:
435 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
436 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
437 input, &x2_)));
438 set_has_x2();
439 } else {
440 goto handle_uninterpreted;
441 }
442 if (input->ExpectTag(85)) goto parse_Scale_PDF;
443 break;
444 }
445
446 // optional float Scale_PDF = 10;
447 case 10: {
448 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
449 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
450 parse_Scale_PDF:
451 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
452 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
453 input, &scale_pdf_)));
454 set_has_scale_pdf();
455 } else {
456 goto handle_uninterpreted;
457 }
458 if (input->ExpectTag(93)) goto parse_Alpha_QED;
459 break;
460 }
461
462 // optional float Alpha_QED = 11;
463 case 11: {
464 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
465 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
466 parse_Alpha_QED:
467 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
468 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
469 input, &alpha_qed_)));
470 set_has_alpha_qed();
471 } else {
472 goto handle_uninterpreted;
473 }
474 if (input->ExpectTag(101)) goto parse_Scale;
475 break;
476 }
477
478 // optional float Scale = 12;
479 case 12: {
480 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
481 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
482 parse_Scale:
483 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
484 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
485 input, &scale_)));
486 set_has_scale();
487 } else {
488 goto handle_uninterpreted;
489 }
490 if (input->ExpectTag(109)) goto parse_Alpha_QCD;
491 break;
492 }
493
494 // optional float Alpha_QCD = 13;
495 case 13: {
496 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
497 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
498 parse_Alpha_QCD:
499 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
500 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
501 input, &alpha_qcd_)));
502 set_has_alpha_qcd();
503 } else {
504 goto handle_uninterpreted;
505 }
506 if (input->ExpectTag(113)) goto parse_Weight;
507 break;
508 }
509
510 // optional double Weight = 14;
511 case 14: {
512 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
513 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
514 parse_Weight:
515 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
516 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
517 input, &weight_)));
518 set_has_weight();
519 } else {
520 goto handle_uninterpreted;
521 }
522 if (input->ExpectAtEnd()) return true;
523 break;
524 }
525
526 default: {
527 handle_uninterpreted:
528 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
529 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
530 return true;
531 }
532 DO_(::google::protobuf::internal::WireFormat::SkipField(
533 input, tag, mutable_unknown_fields()));
534 break;
535 }
536 }
537 }
538 return true;
539#undef DO_
540}
541
542void ProMCEvent_Event::SerializeWithCachedSizes(
543 ::google::protobuf::io::CodedOutputStream* output) const {
544 // optional int32 Number = 1;
545 if (has_number()) {
546 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->number(), output);
547 }
548
549 // optional int32 Process_ID = 2;
550 if (has_process_id()) {
551 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->process_id(), output);
552 }
553
554 // optional int32 MPI = 3;
555 if (has_mpi()) {
556 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->mpi(), output);
557 }
558
559 // optional int32 ID1 = 4;
560 if (has_id1()) {
561 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->id1(), output);
562 }
563
564 // optional int32 ID2 = 5;
565 if (has_id2()) {
566 ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->id2(), output);
567 }
568
569 // optional float PDF1 = 6;
570 if (has_pdf1()) {
571 ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->pdf1(), output);
572 }
573
574 // optional float PDF2 = 7;
575 if (has_pdf2()) {
576 ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->pdf2(), output);
577 }
578
579 // optional float X1 = 8;
580 if (has_x1()) {
581 ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->x1(), output);
582 }
583
584 // optional float X2 = 9;
585 if (has_x2()) {
586 ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->x2(), output);
587 }
588
589 // optional float Scale_PDF = 10;
590 if (has_scale_pdf()) {
591 ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->scale_pdf(), output);
592 }
593
594 // optional float Alpha_QED = 11;
595 if (has_alpha_qed()) {
596 ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->alpha_qed(), output);
597 }
598
599 // optional float Scale = 12;
600 if (has_scale()) {
601 ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->scale(), output);
602 }
603
604 // optional float Alpha_QCD = 13;
605 if (has_alpha_qcd()) {
606 ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->alpha_qcd(), output);
607 }
608
609 // optional double Weight = 14;
610 if (has_weight()) {
611 ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->weight(), output);
612 }
613
614 if (!unknown_fields().empty()) {
615 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
616 unknown_fields(), output);
617 }
618}
619
620::google::protobuf::uint8* ProMCEvent_Event::SerializeWithCachedSizesToArray(
621 ::google::protobuf::uint8* target) const {
622 // optional int32 Number = 1;
623 if (has_number()) {
624 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->number(), target);
625 }
626
627 // optional int32 Process_ID = 2;
628 if (has_process_id()) {
629 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->process_id(), target);
630 }
631
632 // optional int32 MPI = 3;
633 if (has_mpi()) {
634 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->mpi(), target);
635 }
636
637 // optional int32 ID1 = 4;
638 if (has_id1()) {
639 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->id1(), target);
640 }
641
642 // optional int32 ID2 = 5;
643 if (has_id2()) {
644 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->id2(), target);
645 }
646
647 // optional float PDF1 = 6;
648 if (has_pdf1()) {
649 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->pdf1(), target);
650 }
651
652 // optional float PDF2 = 7;
653 if (has_pdf2()) {
654 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->pdf2(), target);
655 }
656
657 // optional float X1 = 8;
658 if (has_x1()) {
659 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->x1(), target);
660 }
661
662 // optional float X2 = 9;
663 if (has_x2()) {
664 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->x2(), target);
665 }
666
667 // optional float Scale_PDF = 10;
668 if (has_scale_pdf()) {
669 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->scale_pdf(), target);
670 }
671
672 // optional float Alpha_QED = 11;
673 if (has_alpha_qed()) {
674 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->alpha_qed(), target);
675 }
676
677 // optional float Scale = 12;
678 if (has_scale()) {
679 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->scale(), target);
680 }
681
682 // optional float Alpha_QCD = 13;
683 if (has_alpha_qcd()) {
684 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->alpha_qcd(), target);
685 }
686
687 // optional double Weight = 14;
688 if (has_weight()) {
689 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->weight(), target);
690 }
691
692 if (!unknown_fields().empty()) {
693 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
694 unknown_fields(), target);
695 }
696 return target;
697}
698
699int ProMCEvent_Event::ByteSize() const {
700 int total_size = 0;
701
702 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
703 // optional int32 Number = 1;
704 if (has_number()) {
705 total_size += 1 +
706 ::google::protobuf::internal::WireFormatLite::Int32Size(
707 this->number());
708 }
709
710 // optional int32 Process_ID = 2;
711 if (has_process_id()) {
712 total_size += 1 +
713 ::google::protobuf::internal::WireFormatLite::Int32Size(
714 this->process_id());
715 }
716
717 // optional int32 MPI = 3;
718 if (has_mpi()) {
719 total_size += 1 +
720 ::google::protobuf::internal::WireFormatLite::Int32Size(
721 this->mpi());
722 }
723
724 // optional int32 ID1 = 4;
725 if (has_id1()) {
726 total_size += 1 +
727 ::google::protobuf::internal::WireFormatLite::Int32Size(
728 this->id1());
729 }
730
731 // optional int32 ID2 = 5;
732 if (has_id2()) {
733 total_size += 1 +
734 ::google::protobuf::internal::WireFormatLite::Int32Size(
735 this->id2());
736 }
737
738 // optional float PDF1 = 6;
739 if (has_pdf1()) {
740 total_size += 1 + 4;
741 }
742
743 // optional float PDF2 = 7;
744 if (has_pdf2()) {
745 total_size += 1 + 4;
746 }
747
748 // optional float X1 = 8;
749 if (has_x1()) {
750 total_size += 1 + 4;
751 }
752
753 }
754 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
755 // optional float X2 = 9;
756 if (has_x2()) {
757 total_size += 1 + 4;
758 }
759
760 // optional float Scale_PDF = 10;
761 if (has_scale_pdf()) {
762 total_size += 1 + 4;
763 }
764
765 // optional float Alpha_QED = 11;
766 if (has_alpha_qed()) {
767 total_size += 1 + 4;
768 }
769
770 // optional float Scale = 12;
771 if (has_scale()) {
772 total_size += 1 + 4;
773 }
774
775 // optional float Alpha_QCD = 13;
776 if (has_alpha_qcd()) {
777 total_size += 1 + 4;
778 }
779
780 // optional double Weight = 14;
781 if (has_weight()) {
782 total_size += 1 + 8;
783 }
784
785 }
786 if (!unknown_fields().empty()) {
787 total_size +=
788 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
789 unknown_fields());
790 }
791 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
792 _cached_size_ = total_size;
793 GOOGLE_SAFE_CONCURRENT_WRITES_END();
794 return total_size;
795}
796
797void ProMCEvent_Event::MergeFrom(const ::google::protobuf::Message& from) {
798 GOOGLE_CHECK_NE(&from, this);
799 const ProMCEvent_Event* source =
800 ::google::protobuf::internal::dynamic_cast_if_available<const ProMCEvent_Event*>(
801 &from);
802 if (source == NULL) {
803 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
804 } else {
805 MergeFrom(*source);
806 }
807}
808
809void ProMCEvent_Event::MergeFrom(const ProMCEvent_Event& from) {
810 GOOGLE_CHECK_NE(&from, this);
811 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
812 if (from.has_number()) {
813 set_number(from.number());
814 }
815 if (from.has_process_id()) {
816 set_process_id(from.process_id());
817 }
818 if (from.has_mpi()) {
819 set_mpi(from.mpi());
820 }
821 if (from.has_id1()) {
822 set_id1(from.id1());
823 }
824 if (from.has_id2()) {
825 set_id2(from.id2());
826 }
827 if (from.has_pdf1()) {
828 set_pdf1(from.pdf1());
829 }
830 if (from.has_pdf2()) {
831 set_pdf2(from.pdf2());
832 }
833 if (from.has_x1()) {
834 set_x1(from.x1());
835 }
836 }
837 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
838 if (from.has_x2()) {
839 set_x2(from.x2());
840 }
841 if (from.has_scale_pdf()) {
842 set_scale_pdf(from.scale_pdf());
843 }
844 if (from.has_alpha_qed()) {
845 set_alpha_qed(from.alpha_qed());
846 }
847 if (from.has_scale()) {
848 set_scale(from.scale());
849 }
850 if (from.has_alpha_qcd()) {
851 set_alpha_qcd(from.alpha_qcd());
852 }
853 if (from.has_weight()) {
854 set_weight(from.weight());
855 }
856 }
857 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
858}
859
860void ProMCEvent_Event::CopyFrom(const ::google::protobuf::Message& from) {
861 if (&from == this) return;
862 Clear();
863 MergeFrom(from);
864}
865
866void ProMCEvent_Event::CopyFrom(const ProMCEvent_Event& from) {
867 if (&from == this) return;
868 Clear();
869 MergeFrom(from);
870}
871
872bool ProMCEvent_Event::IsInitialized() const {
873
874 return true;
875}
876
877void ProMCEvent_Event::Swap(ProMCEvent_Event* other) {
878 if (other != this) {
879 std::swap(number_, other->number_);
880 std::swap(process_id_, other->process_id_);
881 std::swap(mpi_, other->mpi_);
882 std::swap(id1_, other->id1_);
883 std::swap(id2_, other->id2_);
884 std::swap(pdf1_, other->pdf1_);
885 std::swap(pdf2_, other->pdf2_);
886 std::swap(x1_, other->x1_);
887 std::swap(x2_, other->x2_);
888 std::swap(scale_pdf_, other->scale_pdf_);
889 std::swap(alpha_qed_, other->alpha_qed_);
890 std::swap(scale_, other->scale_);
891 std::swap(alpha_qcd_, other->alpha_qcd_);
892 std::swap(weight_, other->weight_);
893 std::swap(_has_bits_[0], other->_has_bits_[0]);
894 _unknown_fields_.Swap(&other->_unknown_fields_);
895 std::swap(_cached_size_, other->_cached_size_);
896 }
897}
898
899::google::protobuf::Metadata ProMCEvent_Event::GetMetadata() const {
900 protobuf_AssignDescriptorsOnce();
901 ::google::protobuf::Metadata metadata;
902 metadata.descriptor = ProMCEvent_Event_descriptor_;
903 metadata.reflection = ProMCEvent_Event_reflection_;
904 return metadata;
905}
906
907
908// -------------------------------------------------------------------
909
910#ifndef _MSC_VER
911const int ProMCEvent_Particles::kIdFieldNumber;
912const int ProMCEvent_Particles::kPdgIdFieldNumber;
913const int ProMCEvent_Particles::kStatusFieldNumber;
914const int ProMCEvent_Particles::kMassFieldNumber;
915const int ProMCEvent_Particles::kPxFieldNumber;
916const int ProMCEvent_Particles::kPyFieldNumber;
917const int ProMCEvent_Particles::kPzFieldNumber;
918const int ProMCEvent_Particles::kMother1FieldNumber;
919const int ProMCEvent_Particles::kMother2FieldNumber;
920const int ProMCEvent_Particles::kDaughter1FieldNumber;
921const int ProMCEvent_Particles::kDaughter2FieldNumber;
922const int ProMCEvent_Particles::kBarcodeFieldNumber;
923const int ProMCEvent_Particles::kXFieldNumber;
924const int ProMCEvent_Particles::kYFieldNumber;
925const int ProMCEvent_Particles::kZFieldNumber;
926const int ProMCEvent_Particles::kTFieldNumber;
927const int ProMCEvent_Particles::kWeightFieldNumber;
928const int ProMCEvent_Particles::kChargeFieldNumber;
929#endif // !_MSC_VER
930
931ProMCEvent_Particles::ProMCEvent_Particles()
932 : ::google::protobuf::Message() {
933 SharedCtor();
934}
935
936void ProMCEvent_Particles::InitAsDefaultInstance() {
937}
938
939ProMCEvent_Particles::ProMCEvent_Particles(const ProMCEvent_Particles& from)
940 : ::google::protobuf::Message() {
941 SharedCtor();
942 MergeFrom(from);
943}
944
945void ProMCEvent_Particles::SharedCtor() {
946 _cached_size_ = 0;
947 ::memset(_has_bits_, 0, sizeof(_has_bits_));
948}
949
950ProMCEvent_Particles::~ProMCEvent_Particles() {
951 SharedDtor();
952}
953
954void ProMCEvent_Particles::SharedDtor() {
955 if (this != default_instance_) {
956 }
957}
958
959void ProMCEvent_Particles::SetCachedSize(int size) const {
960 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
961 _cached_size_ = size;
962 GOOGLE_SAFE_CONCURRENT_WRITES_END();
963}
964const ::google::protobuf::Descriptor* ProMCEvent_Particles::descriptor() {
965 protobuf_AssignDescriptorsOnce();
966 return ProMCEvent_Particles_descriptor_;
967}
968
969const ProMCEvent_Particles& ProMCEvent_Particles::default_instance() {
970 if (default_instance_ == NULL) protobuf_AddDesc_ProMC_2eproto();
971 return *default_instance_;
972}
973
974ProMCEvent_Particles* ProMCEvent_Particles::default_instance_ = NULL;
975
976ProMCEvent_Particles* ProMCEvent_Particles::New() const {
977 return new ProMCEvent_Particles;
978}
979
980void ProMCEvent_Particles::Clear() {
981 id_.Clear();
982 pdg_id_.Clear();
983 status_.Clear();
984 mass_.Clear();
985 px_.Clear();
986 py_.Clear();
987 pz_.Clear();
988 mother1_.Clear();
989 mother2_.Clear();
990 daughter1_.Clear();
991 daughter2_.Clear();
992 barcode_.Clear();
993 x_.Clear();
994 y_.Clear();
995 z_.Clear();
996 t_.Clear();
997 weight_.Clear();
998 charge_.Clear();
999 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1000 mutable_unknown_fields()->Clear();
1001}
1002
1003bool ProMCEvent_Particles::MergePartialFromCodedStream(
1004 ::google::protobuf::io::CodedInputStream* input) {
1005#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1006 ::google::protobuf::uint32 tag;
1007 while ((tag = input->ReadTag()) != 0) {
1008 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1009 // repeated uint32 id = 1 [packed = true];
1010 case 1: {
1011 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1012 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1013 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1014 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1015 input, this->mutable_id())));
1016 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1017 == ::google::protobuf::internal::WireFormatLite::
1018 WIRETYPE_VARINT) {
1019 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1020 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1021 1, 10, input, this->mutable_id())));
1022 } else {
1023 goto handle_uninterpreted;
1024 }
1025 if (input->ExpectTag(18)) goto parse_pdg_id;
1026 break;
1027 }
1028
1029 // repeated sint32 pdg_id = 2 [packed = true];
1030 case 2: {
1031 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1032 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1033 parse_pdg_id:
1034 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1035 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1036 input, this->mutable_pdg_id())));
1037 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1038 == ::google::protobuf::internal::WireFormatLite::
1039 WIRETYPE_VARINT) {
1040 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1041 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1042 1, 18, input, this->mutable_pdg_id())));
1043 } else {
1044 goto handle_uninterpreted;
1045 }
1046 if (input->ExpectTag(26)) goto parse_status;
1047 break;
1048 }
1049
1050 // repeated uint32 status = 3 [packed = true];
1051 case 3: {
1052 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1053 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1054 parse_status:
1055 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1056 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1057 input, this->mutable_status())));
1058 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1059 == ::google::protobuf::internal::WireFormatLite::
1060 WIRETYPE_VARINT) {
1061 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1062 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1063 1, 26, input, this->mutable_status())));
1064 } else {
1065 goto handle_uninterpreted;
1066 }
1067 if (input->ExpectTag(34)) goto parse_mass;
1068 break;
1069 }
1070
1071 // repeated uint64 mass = 4 [packed = true];
1072 case 4: {
1073 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1074 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1075 parse_mass:
1076 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1077 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1078 input, this->mutable_mass())));
1079 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1080 == ::google::protobuf::internal::WireFormatLite::
1081 WIRETYPE_VARINT) {
1082 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1083 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1084 1, 34, input, this->mutable_mass())));
1085 } else {
1086 goto handle_uninterpreted;
1087 }
1088 if (input->ExpectTag(42)) goto parse_Px;
1089 break;
1090 }
1091
1092 // repeated sint64 Px = 5 [packed = true];
1093 case 5: {
1094 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1095 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1096 parse_Px:
1097 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1098 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1099 input, this->mutable_px())));
1100 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1101 == ::google::protobuf::internal::WireFormatLite::
1102 WIRETYPE_VARINT) {
1103 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1104 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1105 1, 42, input, this->mutable_px())));
1106 } else {
1107 goto handle_uninterpreted;
1108 }
1109 if (input->ExpectTag(50)) goto parse_Py;
1110 break;
1111 }
1112
1113 // repeated sint64 Py = 6 [packed = true];
1114 case 6: {
1115 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1116 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1117 parse_Py:
1118 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1119 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1120 input, this->mutable_py())));
1121 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1122 == ::google::protobuf::internal::WireFormatLite::
1123 WIRETYPE_VARINT) {
1124 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1125 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1126 1, 50, input, this->mutable_py())));
1127 } else {
1128 goto handle_uninterpreted;
1129 }
1130 if (input->ExpectTag(58)) goto parse_Pz;
1131 break;
1132 }
1133
1134 // repeated sint64 Pz = 7 [packed = true];
1135 case 7: {
1136 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1137 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1138 parse_Pz:
1139 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1140 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1141 input, this->mutable_pz())));
1142 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1143 == ::google::protobuf::internal::WireFormatLite::
1144 WIRETYPE_VARINT) {
1145 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1146 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1147 1, 58, input, this->mutable_pz())));
1148 } else {
1149 goto handle_uninterpreted;
1150 }
1151 if (input->ExpectTag(66)) goto parse_mother1;
1152 break;
1153 }
1154
1155 // repeated uint32 mother1 = 8 [packed = true];
1156 case 8: {
1157 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1158 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1159 parse_mother1:
1160 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1161 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1162 input, this->mutable_mother1())));
1163 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1164 == ::google::protobuf::internal::WireFormatLite::
1165 WIRETYPE_VARINT) {
1166 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1167 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1168 1, 66, input, this->mutable_mother1())));
1169 } else {
1170 goto handle_uninterpreted;
1171 }
1172 if (input->ExpectTag(74)) goto parse_mother2;
1173 break;
1174 }
1175
1176 // repeated uint32 mother2 = 9 [packed = true];
1177 case 9: {
1178 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1179 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1180 parse_mother2:
1181 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1182 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1183 input, this->mutable_mother2())));
1184 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1185 == ::google::protobuf::internal::WireFormatLite::
1186 WIRETYPE_VARINT) {
1187 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1188 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1189 1, 74, input, this->mutable_mother2())));
1190 } else {
1191 goto handle_uninterpreted;
1192 }
1193 if (input->ExpectTag(82)) goto parse_daughter1;
1194 break;
1195 }
1196
1197 // repeated uint32 daughter1 = 10 [packed = true];
1198 case 10: {
1199 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1200 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1201 parse_daughter1:
1202 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1203 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1204 input, this->mutable_daughter1())));
1205 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1206 == ::google::protobuf::internal::WireFormatLite::
1207 WIRETYPE_VARINT) {
1208 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1209 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1210 1, 82, input, this->mutable_daughter1())));
1211 } else {
1212 goto handle_uninterpreted;
1213 }
1214 if (input->ExpectTag(90)) goto parse_daughter2;
1215 break;
1216 }
1217
1218 // repeated uint32 daughter2 = 11 [packed = true];
1219 case 11: {
1220 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1221 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1222 parse_daughter2:
1223 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1224 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1225 input, this->mutable_daughter2())));
1226 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1227 == ::google::protobuf::internal::WireFormatLite::
1228 WIRETYPE_VARINT) {
1229 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1230 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1231 1, 90, input, this->mutable_daughter2())));
1232 } else {
1233 goto handle_uninterpreted;
1234 }
1235 if (input->ExpectTag(98)) goto parse_barcode;
1236 break;
1237 }
1238
1239 // repeated sint32 barcode = 12 [packed = true];
1240 case 12: {
1241 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1242 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1243 parse_barcode:
1244 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1245 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1246 input, this->mutable_barcode())));
1247 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1248 == ::google::protobuf::internal::WireFormatLite::
1249 WIRETYPE_VARINT) {
1250 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1251 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1252 1, 98, input, this->mutable_barcode())));
1253 } else {
1254 goto handle_uninterpreted;
1255 }
1256 if (input->ExpectTag(106)) goto parse_X;
1257 break;
1258 }
1259
1260 // repeated sint32 X = 13 [packed = true];
1261 case 13: {
1262 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1264 parse_X:
1265 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1266 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1267 input, this->mutable_x())));
1268 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1269 == ::google::protobuf::internal::WireFormatLite::
1270 WIRETYPE_VARINT) {
1271 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1272 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1273 1, 106, input, this->mutable_x())));
1274 } else {
1275 goto handle_uninterpreted;
1276 }
1277 if (input->ExpectTag(114)) goto parse_Y;
1278 break;
1279 }
1280
1281 // repeated sint32 Y = 14 [packed = true];
1282 case 14: {
1283 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1284 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1285 parse_Y:
1286 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1287 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1288 input, this->mutable_y())));
1289 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1290 == ::google::protobuf::internal::WireFormatLite::
1291 WIRETYPE_VARINT) {
1292 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1293 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1294 1, 114, input, this->mutable_y())));
1295 } else {
1296 goto handle_uninterpreted;
1297 }
1298 if (input->ExpectTag(122)) goto parse_Z;
1299 break;
1300 }
1301
1302 // repeated sint32 Z = 15 [packed = true];
1303 case 15: {
1304 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1305 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1306 parse_Z:
1307 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1308 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1309 input, this->mutable_z())));
1310 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1311 == ::google::protobuf::internal::WireFormatLite::
1312 WIRETYPE_VARINT) {
1313 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1314 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1315 1, 122, input, this->mutable_z())));
1316 } else {
1317 goto handle_uninterpreted;
1318 }
1319 if (input->ExpectTag(130)) goto parse_T;
1320 break;
1321 }
1322
1323 // repeated uint32 T = 16 [packed = true];
1324 case 16: {
1325 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1326 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1327 parse_T:
1328 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1329 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1330 input, this->mutable_t())));
1331 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1332 == ::google::protobuf::internal::WireFormatLite::
1333 WIRETYPE_VARINT) {
1334 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1335 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1336 2, 130, input, this->mutable_t())));
1337 } else {
1338 goto handle_uninterpreted;
1339 }
1340 if (input->ExpectTag(138)) goto parse_weight;
1341 break;
1342 }
1343
1344 // repeated uint64 weight = 17 [packed = true];
1345 case 17: {
1346 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1347 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1348 parse_weight:
1349 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1350 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1351 input, this->mutable_weight())));
1352 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1353 == ::google::protobuf::internal::WireFormatLite::
1354 WIRETYPE_VARINT) {
1355 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1356 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1357 2, 138, input, this->mutable_weight())));
1358 } else {
1359 goto handle_uninterpreted;
1360 }
1361 if (input->ExpectTag(146)) goto parse_charge;
1362 break;
1363 }
1364
1365 // repeated sint32 charge = 18 [packed = true];
1366 case 18: {
1367 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1368 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1369 parse_charge:
1370 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1371 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1372 input, this->mutable_charge())));
1373 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1374 == ::google::protobuf::internal::WireFormatLite::
1375 WIRETYPE_VARINT) {
1376 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1377 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1378 2, 146, input, this->mutable_charge())));
1379 } else {
1380 goto handle_uninterpreted;
1381 }
1382 if (input->ExpectAtEnd()) return true;
1383 break;
1384 }
1385
1386 default: {
1387 handle_uninterpreted:
1388 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1389 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1390 return true;
1391 }
1392 DO_(::google::protobuf::internal::WireFormat::SkipField(
1393 input, tag, mutable_unknown_fields()));
1394 break;
1395 }
1396 }
1397 }
1398 return true;
1399#undef DO_
1400}
1401
1402void ProMCEvent_Particles::SerializeWithCachedSizes(
1403 ::google::protobuf::io::CodedOutputStream* output) const {
1404 // repeated uint32 id = 1 [packed = true];
1405 if (this->id_size() > 0) {
1406 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1407 output->WriteVarint32(_id_cached_byte_size_);
1408 }
1409 for (int i = 0; i < this->id_size(); i++) {
1410 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1411 this->id(i), output);
1412 }
1413
1414 // repeated sint32 pdg_id = 2 [packed = true];
1415 if (this->pdg_id_size() > 0) {
1416 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1417 output->WriteVarint32(_pdg_id_cached_byte_size_);
1418 }
1419 for (int i = 0; i < this->pdg_id_size(); i++) {
1420 ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
1421 this->pdg_id(i), output);
1422 }
1423
1424 // repeated uint32 status = 3 [packed = true];
1425 if (this->status_size() > 0) {
1426 ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1427 output->WriteVarint32(_status_cached_byte_size_);
1428 }
1429 for (int i = 0; i < this->status_size(); i++) {
1430 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1431 this->status(i), output);
1432 }
1433
1434 // repeated uint64 mass = 4 [packed = true];
1435 if (this->mass_size() > 0) {
1436 ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1437 output->WriteVarint32(_mass_cached_byte_size_);
1438 }
1439 for (int i = 0; i < this->mass_size(); i++) {
1440 ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
1441 this->mass(i), output);
1442 }
1443
1444 // repeated sint64 Px = 5 [packed = true];
1445 if (this->px_size() > 0) {
1446 ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1447 output->WriteVarint32(_px_cached_byte_size_);
1448 }
1449 for (int i = 0; i < this->px_size(); i++) {
1450 ::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
1451 this->px(i), output);
1452 }
1453
1454 // repeated sint64 Py = 6 [packed = true];
1455 if (this->py_size() > 0) {
1456 ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1457 output->WriteVarint32(_py_cached_byte_size_);
1458 }
1459 for (int i = 0; i < this->py_size(); i++) {
1460 ::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
1461 this->py(i), output);
1462 }
1463
1464 // repeated sint64 Pz = 7 [packed = true];
1465 if (this->pz_size() > 0) {
1466 ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1467 output->WriteVarint32(_pz_cached_byte_size_);
1468 }
1469 for (int i = 0; i < this->pz_size(); i++) {
1470 ::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
1471 this->pz(i), output);
1472 }
1473
1474 // repeated uint32 mother1 = 8 [packed = true];
1475 if (this->mother1_size() > 0) {
1476 ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1477 output->WriteVarint32(_mother1_cached_byte_size_);
1478 }
1479 for (int i = 0; i < this->mother1_size(); i++) {
1480 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1481 this->mother1(i), output);
1482 }
1483
1484 // repeated uint32 mother2 = 9 [packed = true];
1485 if (this->mother2_size() > 0) {
1486 ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1487 output->WriteVarint32(_mother2_cached_byte_size_);
1488 }
1489 for (int i = 0; i < this->mother2_size(); i++) {
1490 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1491 this->mother2(i), output);
1492 }
1493
1494 // repeated uint32 daughter1 = 10 [packed = true];
1495 if (this->daughter1_size() > 0) {
1496 ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1497 output->WriteVarint32(_daughter1_cached_byte_size_);
1498 }
1499 for (int i = 0; i < this->daughter1_size(); i++) {
1500 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1501 this->daughter1(i), output);
1502 }
1503
1504 // repeated uint32 daughter2 = 11 [packed = true];
1505 if (this->daughter2_size() > 0) {
1506 ::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1507 output->WriteVarint32(_daughter2_cached_byte_size_);
1508 }
1509 for (int i = 0; i < this->daughter2_size(); i++) {
1510 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1511 this->daughter2(i), output);
1512 }
1513
1514 // repeated sint32 barcode = 12 [packed = true];
1515 if (this->barcode_size() > 0) {
1516 ::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1517 output->WriteVarint32(_barcode_cached_byte_size_);
1518 }
1519 for (int i = 0; i < this->barcode_size(); i++) {
1520 ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
1521 this->barcode(i), output);
1522 }
1523
1524 // repeated sint32 X = 13 [packed = true];
1525 if (this->x_size() > 0) {
1526 ::google::protobuf::internal::WireFormatLite::WriteTag(13, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1527 output->WriteVarint32(_x_cached_byte_size_);
1528 }
1529 for (int i = 0; i < this->x_size(); i++) {
1530 ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
1531 this->x(i), output);
1532 }
1533
1534 // repeated sint32 Y = 14 [packed = true];
1535 if (this->y_size() > 0) {
1536 ::google::protobuf::internal::WireFormatLite::WriteTag(14, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1537 output->WriteVarint32(_y_cached_byte_size_);
1538 }
1539 for (int i = 0; i < this->y_size(); i++) {
1540 ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
1541 this->y(i), output);
1542 }
1543
1544 // repeated sint32 Z = 15 [packed = true];
1545 if (this->z_size() > 0) {
1546 ::google::protobuf::internal::WireFormatLite::WriteTag(15, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1547 output->WriteVarint32(_z_cached_byte_size_);
1548 }
1549 for (int i = 0; i < this->z_size(); i++) {
1550 ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
1551 this->z(i), output);
1552 }
1553
1554 // repeated uint32 T = 16 [packed = true];
1555 if (this->t_size() > 0) {
1556 ::google::protobuf::internal::WireFormatLite::WriteTag(16, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1557 output->WriteVarint32(_t_cached_byte_size_);
1558 }
1559 for (int i = 0; i < this->t_size(); i++) {
1560 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1561 this->t(i), output);
1562 }
1563
1564 // repeated uint64 weight = 17 [packed = true];
1565 if (this->weight_size() > 0) {
1566 ::google::protobuf::internal::WireFormatLite::WriteTag(17, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1567 output->WriteVarint32(_weight_cached_byte_size_);
1568 }
1569 for (int i = 0; i < this->weight_size(); i++) {
1570 ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
1571 this->weight(i), output);
1572 }
1573
1574 // repeated sint32 charge = 18 [packed = true];
1575 if (this->charge_size() > 0) {
1576 ::google::protobuf::internal::WireFormatLite::WriteTag(18, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1577 output->WriteVarint32(_charge_cached_byte_size_);
1578 }
1579 for (int i = 0; i < this->charge_size(); i++) {
1580 ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
1581 this->charge(i), output);
1582 }
1583
1584 if (!unknown_fields().empty()) {
1585 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1586 unknown_fields(), output);
1587 }
1588}
1589
1590::google::protobuf::uint8* ProMCEvent_Particles::SerializeWithCachedSizesToArray(
1591 ::google::protobuf::uint8* target) const {
1592 // repeated uint32 id = 1 [packed = true];
1593 if (this->id_size() > 0) {
1594 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1595 1,
1596 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1597 target);
1598 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1599 _id_cached_byte_size_, target);
1600 }
1601 for (int i = 0; i < this->id_size(); i++) {
1602 target = ::google::protobuf::internal::WireFormatLite::
1603 WriteUInt32NoTagToArray(this->id(i), target);
1604 }
1605
1606 // repeated sint32 pdg_id = 2 [packed = true];
1607 if (this->pdg_id_size() > 0) {
1608 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1609 2,
1610 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1611 target);
1612 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1613 _pdg_id_cached_byte_size_, target);
1614 }
1615 for (int i = 0; i < this->pdg_id_size(); i++) {
1616 target = ::google::protobuf::internal::WireFormatLite::
1617 WriteSInt32NoTagToArray(this->pdg_id(i), target);
1618 }
1619
1620 // repeated uint32 status = 3 [packed = true];
1621 if (this->status_size() > 0) {
1622 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1623 3,
1624 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1625 target);
1626 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1627 _status_cached_byte_size_, target);
1628 }
1629 for (int i = 0; i < this->status_size(); i++) {
1630 target = ::google::protobuf::internal::WireFormatLite::
1631 WriteUInt32NoTagToArray(this->status(i), target);
1632 }
1633
1634 // repeated uint64 mass = 4 [packed = true];
1635 if (this->mass_size() > 0) {
1636 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1637 4,
1638 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1639 target);
1640 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1641 _mass_cached_byte_size_, target);
1642 }
1643 for (int i = 0; i < this->mass_size(); i++) {
1644 target = ::google::protobuf::internal::WireFormatLite::
1645 WriteUInt64NoTagToArray(this->mass(i), target);
1646 }
1647
1648 // repeated sint64 Px = 5 [packed = true];
1649 if (this->px_size() > 0) {
1650 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1651 5,
1652 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1653 target);
1654 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1655 _px_cached_byte_size_, target);
1656 }
1657 for (int i = 0; i < this->px_size(); i++) {
1658 target = ::google::protobuf::internal::WireFormatLite::
1659 WriteSInt64NoTagToArray(this->px(i), target);
1660 }
1661
1662 // repeated sint64 Py = 6 [packed = true];
1663 if (this->py_size() > 0) {
1664 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1665 6,
1666 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1667 target);
1668 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1669 _py_cached_byte_size_, target);
1670 }
1671 for (int i = 0; i < this->py_size(); i++) {
1672 target = ::google::protobuf::internal::WireFormatLite::
1673 WriteSInt64NoTagToArray(this->py(i), target);
1674 }
1675
1676 // repeated sint64 Pz = 7 [packed = true];
1677 if (this->pz_size() > 0) {
1678 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1679 7,
1680 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1681 target);
1682 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1683 _pz_cached_byte_size_, target);
1684 }
1685 for (int i = 0; i < this->pz_size(); i++) {
1686 target = ::google::protobuf::internal::WireFormatLite::
1687 WriteSInt64NoTagToArray(this->pz(i), target);
1688 }
1689
1690 // repeated uint32 mother1 = 8 [packed = true];
1691 if (this->mother1_size() > 0) {
1692 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1693 8,
1694 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1695 target);
1696 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1697 _mother1_cached_byte_size_, target);
1698 }
1699 for (int i = 0; i < this->mother1_size(); i++) {
1700 target = ::google::protobuf::internal::WireFormatLite::
1701 WriteUInt32NoTagToArray(this->mother1(i), target);
1702 }
1703
1704 // repeated uint32 mother2 = 9 [packed = true];
1705 if (this->mother2_size() > 0) {
1706 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1707 9,
1708 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1709 target);
1710 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1711 _mother2_cached_byte_size_, target);
1712 }
1713 for (int i = 0; i < this->mother2_size(); i++) {
1714 target = ::google::protobuf::internal::WireFormatLite::
1715 WriteUInt32NoTagToArray(this->mother2(i), target);
1716 }
1717
1718 // repeated uint32 daughter1 = 10 [packed = true];
1719 if (this->daughter1_size() > 0) {
1720 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1721 10,
1722 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1723 target);
1724 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1725 _daughter1_cached_byte_size_, target);
1726 }
1727 for (int i = 0; i < this->daughter1_size(); i++) {
1728 target = ::google::protobuf::internal::WireFormatLite::
1729 WriteUInt32NoTagToArray(this->daughter1(i), target);
1730 }
1731
1732 // repeated uint32 daughter2 = 11 [packed = true];
1733 if (this->daughter2_size() > 0) {
1734 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1735 11,
1736 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1737 target);
1738 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1739 _daughter2_cached_byte_size_, target);
1740 }
1741 for (int i = 0; i < this->daughter2_size(); i++) {
1742 target = ::google::protobuf::internal::WireFormatLite::
1743 WriteUInt32NoTagToArray(this->daughter2(i), target);
1744 }
1745
1746 // repeated sint32 barcode = 12 [packed = true];
1747 if (this->barcode_size() > 0) {
1748 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1749 12,
1750 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1751 target);
1752 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1753 _barcode_cached_byte_size_, target);
1754 }
1755 for (int i = 0; i < this->barcode_size(); i++) {
1756 target = ::google::protobuf::internal::WireFormatLite::
1757 WriteSInt32NoTagToArray(this->barcode(i), target);
1758 }
1759
1760 // repeated sint32 X = 13 [packed = true];
1761 if (this->x_size() > 0) {
1762 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1763 13,
1764 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1765 target);
1766 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1767 _x_cached_byte_size_, target);
1768 }
1769 for (int i = 0; i < this->x_size(); i++) {
1770 target = ::google::protobuf::internal::WireFormatLite::
1771 WriteSInt32NoTagToArray(this->x(i), target);
1772 }
1773
1774 // repeated sint32 Y = 14 [packed = true];
1775 if (this->y_size() > 0) {
1776 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1777 14,
1778 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1779 target);
1780 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1781 _y_cached_byte_size_, target);
1782 }
1783 for (int i = 0; i < this->y_size(); i++) {
1784 target = ::google::protobuf::internal::WireFormatLite::
1785 WriteSInt32NoTagToArray(this->y(i), target);
1786 }
1787
1788 // repeated sint32 Z = 15 [packed = true];
1789 if (this->z_size() > 0) {
1790 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1791 15,
1792 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1793 target);
1794 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1795 _z_cached_byte_size_, target);
1796 }
1797 for (int i = 0; i < this->z_size(); i++) {
1798 target = ::google::protobuf::internal::WireFormatLite::
1799 WriteSInt32NoTagToArray(this->z(i), target);
1800 }
1801
1802 // repeated uint32 T = 16 [packed = true];
1803 if (this->t_size() > 0) {
1804 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1805 16,
1806 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1807 target);
1808 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1809 _t_cached_byte_size_, target);
1810 }
1811 for (int i = 0; i < this->t_size(); i++) {
1812 target = ::google::protobuf::internal::WireFormatLite::
1813 WriteUInt32NoTagToArray(this->t(i), target);
1814 }
1815
1816 // repeated uint64 weight = 17 [packed = true];
1817 if (this->weight_size() > 0) {
1818 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1819 17,
1820 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1821 target);
1822 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1823 _weight_cached_byte_size_, target);
1824 }
1825 for (int i = 0; i < this->weight_size(); i++) {
1826 target = ::google::protobuf::internal::WireFormatLite::
1827 WriteUInt64NoTagToArray(this->weight(i), target);
1828 }
1829
1830 // repeated sint32 charge = 18 [packed = true];
1831 if (this->charge_size() > 0) {
1832 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1833 18,
1834 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1835 target);
1836 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1837 _charge_cached_byte_size_, target);
1838 }
1839 for (int i = 0; i < this->charge_size(); i++) {
1840 target = ::google::protobuf::internal::WireFormatLite::
1841 WriteSInt32NoTagToArray(this->charge(i), target);
1842 }
1843
1844 if (!unknown_fields().empty()) {
1845 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1846 unknown_fields(), target);
1847 }
1848 return target;
1849}
1850
1851int ProMCEvent_Particles::ByteSize() const {
1852 int total_size = 0;
1853
1854 // repeated uint32 id = 1 [packed = true];
1855 {
1856 int data_size = 0;
1857 for (int i = 0; i < this->id_size(); i++) {
1858 data_size += ::google::protobuf::internal::WireFormatLite::
1859 UInt32Size(this->id(i));
1860 }
1861 if (data_size > 0) {
1862 total_size += 1 +
1863 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1864 }
1865 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1866 _id_cached_byte_size_ = data_size;
1867 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1868 total_size += data_size;
1869 }
1870
1871 // repeated sint32 pdg_id = 2 [packed = true];
1872 {
1873 int data_size = 0;
1874 for (int i = 0; i < this->pdg_id_size(); i++) {
1875 data_size += ::google::protobuf::internal::WireFormatLite::
1876 SInt32Size(this->pdg_id(i));
1877 }
1878 if (data_size > 0) {
1879 total_size += 1 +
1880 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1881 }
1882 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1883 _pdg_id_cached_byte_size_ = data_size;
1884 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1885 total_size += data_size;
1886 }
1887
1888 // repeated uint32 status = 3 [packed = true];
1889 {
1890 int data_size = 0;
1891 for (int i = 0; i < this->status_size(); i++) {
1892 data_size += ::google::protobuf::internal::WireFormatLite::
1893 UInt32Size(this->status(i));
1894 }
1895 if (data_size > 0) {
1896 total_size += 1 +
1897 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1898 }
1899 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1900 _status_cached_byte_size_ = data_size;
1901 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1902 total_size += data_size;
1903 }
1904
1905 // repeated uint64 mass = 4 [packed = true];
1906 {
1907 int data_size = 0;
1908 for (int i = 0; i < this->mass_size(); i++) {
1909 data_size += ::google::protobuf::internal::WireFormatLite::
1910 UInt64Size(this->mass(i));
1911 }
1912 if (data_size > 0) {
1913 total_size += 1 +
1914 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1915 }
1916 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1917 _mass_cached_byte_size_ = data_size;
1918 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1919 total_size += data_size;
1920 }
1921
1922 // repeated sint64 Px = 5 [packed = true];
1923 {
1924 int data_size = 0;
1925 for (int i = 0; i < this->px_size(); i++) {
1926 data_size += ::google::protobuf::internal::WireFormatLite::
1927 SInt64Size(this->px(i));
1928 }
1929 if (data_size > 0) {
1930 total_size += 1 +
1931 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1932 }
1933 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1934 _px_cached_byte_size_ = data_size;
1935 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1936 total_size += data_size;
1937 }
1938
1939 // repeated sint64 Py = 6 [packed = true];
1940 {
1941 int data_size = 0;
1942 for (int i = 0; i < this->py_size(); i++) {
1943 data_size += ::google::protobuf::internal::WireFormatLite::
1944 SInt64Size(this->py(i));
1945 }
1946 if (data_size > 0) {
1947 total_size += 1 +
1948 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1949 }
1950 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1951 _py_cached_byte_size_ = data_size;
1952 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1953 total_size += data_size;
1954 }
1955
1956 // repeated sint64 Pz = 7 [packed = true];
1957 {
1958 int data_size = 0;
1959 for (int i = 0; i < this->pz_size(); i++) {
1960 data_size += ::google::protobuf::internal::WireFormatLite::
1961 SInt64Size(this->pz(i));
1962 }
1963 if (data_size > 0) {
1964 total_size += 1 +
1965 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1966 }
1967 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1968 _pz_cached_byte_size_ = data_size;
1969 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1970 total_size += data_size;
1971 }
1972
1973 // repeated uint32 mother1 = 8 [packed = true];
1974 {
1975 int data_size = 0;
1976 for (int i = 0; i < this->mother1_size(); i++) {
1977 data_size += ::google::protobuf::internal::WireFormatLite::
1978 UInt32Size(this->mother1(i));
1979 }
1980 if (data_size > 0) {
1981 total_size += 1 +
1982 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1983 }
1984 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1985 _mother1_cached_byte_size_ = data_size;
1986 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1987 total_size += data_size;
1988 }
1989
1990 // repeated uint32 mother2 = 9 [packed = true];
1991 {
1992 int data_size = 0;
1993 for (int i = 0; i < this->mother2_size(); i++) {
1994 data_size += ::google::protobuf::internal::WireFormatLite::
1995 UInt32Size(this->mother2(i));
1996 }
1997 if (data_size > 0) {
1998 total_size += 1 +
1999 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2000 }
2001 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2002 _mother2_cached_byte_size_ = data_size;
2003 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2004 total_size += data_size;
2005 }
2006
2007 // repeated uint32 daughter1 = 10 [packed = true];
2008 {
2009 int data_size = 0;
2010 for (int i = 0; i < this->daughter1_size(); i++) {
2011 data_size += ::google::protobuf::internal::WireFormatLite::
2012 UInt32Size(this->daughter1(i));
2013 }
2014 if (data_size > 0) {
2015 total_size += 1 +
2016 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2017 }
2018 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2019 _daughter1_cached_byte_size_ = data_size;
2020 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2021 total_size += data_size;
2022 }
2023
2024 // repeated uint32 daughter2 = 11 [packed = true];
2025 {
2026 int data_size = 0;
2027 for (int i = 0; i < this->daughter2_size(); i++) {
2028 data_size += ::google::protobuf::internal::WireFormatLite::
2029 UInt32Size(this->daughter2(i));
2030 }
2031 if (data_size > 0) {
2032 total_size += 1 +
2033 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2034 }
2035 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2036 _daughter2_cached_byte_size_ = data_size;
2037 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2038 total_size += data_size;
2039 }
2040
2041 // repeated sint32 barcode = 12 [packed = true];
2042 {
2043 int data_size = 0;
2044 for (int i = 0; i < this->barcode_size(); i++) {
2045 data_size += ::google::protobuf::internal::WireFormatLite::
2046 SInt32Size(this->barcode(i));
2047 }
2048 if (data_size > 0) {
2049 total_size += 1 +
2050 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2051 }
2052 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2053 _barcode_cached_byte_size_ = data_size;
2054 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2055 total_size += data_size;
2056 }
2057
2058 // repeated sint32 X = 13 [packed = true];
2059 {
2060 int data_size = 0;
2061 for (int i = 0; i < this->x_size(); i++) {
2062 data_size += ::google::protobuf::internal::WireFormatLite::
2063 SInt32Size(this->x(i));
2064 }
2065 if (data_size > 0) {
2066 total_size += 1 +
2067 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2068 }
2069 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2070 _x_cached_byte_size_ = data_size;
2071 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2072 total_size += data_size;
2073 }
2074
2075 // repeated sint32 Y = 14 [packed = true];
2076 {
2077 int data_size = 0;
2078 for (int i = 0; i < this->y_size(); i++) {
2079 data_size += ::google::protobuf::internal::WireFormatLite::
2080 SInt32Size(this->y(i));
2081 }
2082 if (data_size > 0) {
2083 total_size += 1 +
2084 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2085 }
2086 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2087 _y_cached_byte_size_ = data_size;
2088 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2089 total_size += data_size;
2090 }
2091
2092 // repeated sint32 Z = 15 [packed = true];
2093 {
2094 int data_size = 0;
2095 for (int i = 0; i < this->z_size(); i++) {
2096 data_size += ::google::protobuf::internal::WireFormatLite::
2097 SInt32Size(this->z(i));
2098 }
2099 if (data_size > 0) {
2100 total_size += 1 +
2101 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2102 }
2103 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2104 _z_cached_byte_size_ = data_size;
2105 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2106 total_size += data_size;
2107 }
2108
2109 // repeated uint32 T = 16 [packed = true];
2110 {
2111 int data_size = 0;
2112 for (int i = 0; i < this->t_size(); i++) {
2113 data_size += ::google::protobuf::internal::WireFormatLite::
2114 UInt32Size(this->t(i));
2115 }
2116 if (data_size > 0) {
2117 total_size += 2 +
2118 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2119 }
2120 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2121 _t_cached_byte_size_ = data_size;
2122 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2123 total_size += data_size;
2124 }
2125
2126 // repeated uint64 weight = 17 [packed = true];
2127 {
2128 int data_size = 0;
2129 for (int i = 0; i < this->weight_size(); i++) {
2130 data_size += ::google::protobuf::internal::WireFormatLite::
2131 UInt64Size(this->weight(i));
2132 }
2133 if (data_size > 0) {
2134 total_size += 2 +
2135 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2136 }
2137 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2138 _weight_cached_byte_size_ = data_size;
2139 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2140 total_size += data_size;
2141 }
2142
2143 // repeated sint32 charge = 18 [packed = true];
2144 {
2145 int data_size = 0;
2146 for (int i = 0; i < this->charge_size(); i++) {
2147 data_size += ::google::protobuf::internal::WireFormatLite::
2148 SInt32Size(this->charge(i));
2149 }
2150 if (data_size > 0) {
2151 total_size += 2 +
2152 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
2153 }
2154 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2155 _charge_cached_byte_size_ = data_size;
2156 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2157 total_size += data_size;
2158 }
2159
2160 if (!unknown_fields().empty()) {
2161 total_size +=
2162 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2163 unknown_fields());
2164 }
2165 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2166 _cached_size_ = total_size;
2167 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2168 return total_size;
2169}
2170
2171void ProMCEvent_Particles::MergeFrom(const ::google::protobuf::Message& from) {
2172 GOOGLE_CHECK_NE(&from, this);
2173 const ProMCEvent_Particles* source =
2174 ::google::protobuf::internal::dynamic_cast_if_available<const ProMCEvent_Particles*>(
2175 &from);
2176 if (source == NULL) {
2177 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2178 } else {
2179 MergeFrom(*source);
2180 }
2181}
2182
2183void ProMCEvent_Particles::MergeFrom(const ProMCEvent_Particles& from) {
2184 GOOGLE_CHECK_NE(&from, this);
2185 id_.MergeFrom(from.id_);
2186 pdg_id_.MergeFrom(from.pdg_id_);
2187 status_.MergeFrom(from.status_);
2188 mass_.MergeFrom(from.mass_);
2189 px_.MergeFrom(from.px_);
2190 py_.MergeFrom(from.py_);
2191 pz_.MergeFrom(from.pz_);
2192 mother1_.MergeFrom(from.mother1_);
2193 mother2_.MergeFrom(from.mother2_);
2194 daughter1_.MergeFrom(from.daughter1_);
2195 daughter2_.MergeFrom(from.daughter2_);
2196 barcode_.MergeFrom(from.barcode_);
2197 x_.MergeFrom(from.x_);
2198 y_.MergeFrom(from.y_);
2199 z_.MergeFrom(from.z_);
2200 t_.MergeFrom(from.t_);
2201 weight_.MergeFrom(from.weight_);
2202 charge_.MergeFrom(from.charge_);
2203 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2204}
2205
2206void ProMCEvent_Particles::CopyFrom(const ::google::protobuf::Message& from) {
2207 if (&from == this) return;
2208 Clear();
2209 MergeFrom(from);
2210}
2211
2212void ProMCEvent_Particles::CopyFrom(const ProMCEvent_Particles& from) {
2213 if (&from == this) return;
2214 Clear();
2215 MergeFrom(from);
2216}
2217
2218bool ProMCEvent_Particles::IsInitialized() const {
2219
2220 return true;
2221}
2222
2223void ProMCEvent_Particles::Swap(ProMCEvent_Particles* other) {
2224 if (other != this) {
2225 id_.Swap(&other->id_);
2226 pdg_id_.Swap(&other->pdg_id_);
2227 status_.Swap(&other->status_);
2228 mass_.Swap(&other->mass_);
2229 px_.Swap(&other->px_);
2230 py_.Swap(&other->py_);
2231 pz_.Swap(&other->pz_);
2232 mother1_.Swap(&other->mother1_);
2233 mother2_.Swap(&other->mother2_);
2234 daughter1_.Swap(&other->daughter1_);
2235 daughter2_.Swap(&other->daughter2_);
2236 barcode_.Swap(&other->barcode_);
2237 x_.Swap(&other->x_);
2238 y_.Swap(&other->y_);
2239 z_.Swap(&other->z_);
2240 t_.Swap(&other->t_);
2241 weight_.Swap(&other->weight_);
2242 charge_.Swap(&other->charge_);
2243 std::swap(_has_bits_[0], other->_has_bits_[0]);
2244 _unknown_fields_.Swap(&other->_unknown_fields_);
2245 std::swap(_cached_size_, other->_cached_size_);
2246 }
2247}
2248
2249::google::protobuf::Metadata ProMCEvent_Particles::GetMetadata() const {
2250 protobuf_AssignDescriptorsOnce();
2251 ::google::protobuf::Metadata metadata;
2252 metadata.descriptor = ProMCEvent_Particles_descriptor_;
2253 metadata.reflection = ProMCEvent_Particles_reflection_;
2254 return metadata;
2255}
2256
2257
2258// -------------------------------------------------------------------
2259
2260#ifndef _MSC_VER
2261const int ProMCEvent::kEventFieldNumber;
2262const int ProMCEvent::kParticlesFieldNumber;
2263#endif // !_MSC_VER
2264
2265ProMCEvent::ProMCEvent()
2266 : ::google::protobuf::Message() {
2267 SharedCtor();
2268}
2269
2270void ProMCEvent::InitAsDefaultInstance() {
2271 event_ = const_cast< ::promc::ProMCEvent_Event*>(&::promc::ProMCEvent_Event::default_instance());
2272 particles_ = const_cast< ::promc::ProMCEvent_Particles*>(&::promc::ProMCEvent_Particles::default_instance());
2273}
2274
2275ProMCEvent::ProMCEvent(const ProMCEvent& from)
2276 : ::google::protobuf::Message() {
2277 SharedCtor();
2278 MergeFrom(from);
2279}
2280
2281void ProMCEvent::SharedCtor() {
2282 _cached_size_ = 0;
2283 event_ = NULL;
2284 particles_ = NULL;
2285 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2286}
2287
2288ProMCEvent::~ProMCEvent() {
2289 SharedDtor();
2290}
2291
2292void ProMCEvent::SharedDtor() {
2293 if (this != default_instance_) {
2294 delete event_;
2295 delete particles_;
2296 }
2297}
2298
2299void ProMCEvent::SetCachedSize(int size) const {
2300 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2301 _cached_size_ = size;
2302 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2303}
2304const ::google::protobuf::Descriptor* ProMCEvent::descriptor() {
2305 protobuf_AssignDescriptorsOnce();
2306 return ProMCEvent_descriptor_;
2307}
2308
2309const ProMCEvent& ProMCEvent::default_instance() {
2310 if (default_instance_ == NULL) protobuf_AddDesc_ProMC_2eproto();
2311 return *default_instance_;
2312}
2313
2314ProMCEvent* ProMCEvent::default_instance_ = NULL;
2315
2316ProMCEvent* ProMCEvent::New() const {
2317 return new ProMCEvent;
2318}
2319
2320void ProMCEvent::Clear() {
2321 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2322 if (has_event()) {
2323 if (event_ != NULL) event_->::promc::ProMCEvent_Event::Clear();
2324 }
2325 if (has_particles()) {
2326 if (particles_ != NULL) particles_->::promc::ProMCEvent_Particles::Clear();
2327 }
2328 }
2329 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2330 mutable_unknown_fields()->Clear();
2331}
2332
2333bool ProMCEvent::MergePartialFromCodedStream(
2334 ::google::protobuf::io::CodedInputStream* input) {
2335#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2336 ::google::protobuf::uint32 tag;
2337 while ((tag = input->ReadTag()) != 0) {
2338 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2339 // optional .promc.ProMCEvent.Event event = 1;
2340 case 1: {
2341 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2342 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2343 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2344 input, mutable_event()));
2345 } else {
2346 goto handle_uninterpreted;
2347 }
2348 if (input->ExpectTag(18)) goto parse_particles;
2349 break;
2350 }
2351
2352 // optional .promc.ProMCEvent.Particles particles = 2;
2353 case 2: {
2354 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2355 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2356 parse_particles:
2357 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2358 input, mutable_particles()));
2359 } else {
2360 goto handle_uninterpreted;
2361 }
2362 if (input->ExpectAtEnd()) return true;
2363 break;
2364 }
2365
2366 default: {
2367 handle_uninterpreted:
2368 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2369 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2370 return true;
2371 }
2372 DO_(::google::protobuf::internal::WireFormat::SkipField(
2373 input, tag, mutable_unknown_fields()));
2374 break;
2375 }
2376 }
2377 }
2378 return true;
2379#undef DO_
2380}
2381
2382void ProMCEvent::SerializeWithCachedSizes(
2383 ::google::protobuf::io::CodedOutputStream* output) const {
2384 // optional .promc.ProMCEvent.Event event = 1;
2385 if (has_event()) {
2386 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2387 1, this->event(), output);
2388 }
2389
2390 // optional .promc.ProMCEvent.Particles particles = 2;
2391 if (has_particles()) {
2392 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2393 2, this->particles(), output);
2394 }
2395
2396 if (!unknown_fields().empty()) {
2397 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2398 unknown_fields(), output);
2399 }
2400}
2401
2402::google::protobuf::uint8* ProMCEvent::SerializeWithCachedSizesToArray(
2403 ::google::protobuf::uint8* target) const {
2404 // optional .promc.ProMCEvent.Event event = 1;
2405 if (has_event()) {
2406 target = ::google::protobuf::internal::WireFormatLite::
2407 WriteMessageNoVirtualToArray(
2408 1, this->event(), target);
2409 }
2410
2411 // optional .promc.ProMCEvent.Particles particles = 2;
2412 if (has_particles()) {
2413 target = ::google::protobuf::internal::WireFormatLite::
2414 WriteMessageNoVirtualToArray(
2415 2, this->particles(), target);
2416 }
2417
2418 if (!unknown_fields().empty()) {
2419 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2420 unknown_fields(), target);
2421 }
2422 return target;
2423}
2424
2425int ProMCEvent::ByteSize() const {
2426 int total_size = 0;
2427
2428 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2429 // optional .promc.ProMCEvent.Event event = 1;
2430 if (has_event()) {
2431 total_size += 1 +
2432 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2433 this->event());
2434 }
2435
2436 // optional .promc.ProMCEvent.Particles particles = 2;
2437 if (has_particles()) {
2438 total_size += 1 +
2439 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2440 this->particles());
2441 }
2442
2443 }
2444 if (!unknown_fields().empty()) {
2445 total_size +=
2446 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2447 unknown_fields());
2448 }
2449 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2450 _cached_size_ = total_size;
2451 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2452 return total_size;
2453}
2454
2455void ProMCEvent::MergeFrom(const ::google::protobuf::Message& from) {
2456 GOOGLE_CHECK_NE(&from, this);
2457 const ProMCEvent* source =
2458 ::google::protobuf::internal::dynamic_cast_if_available<const ProMCEvent*>(
2459 &from);
2460 if (source == NULL) {
2461 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2462 } else {
2463 MergeFrom(*source);
2464 }
2465}
2466
2467void ProMCEvent::MergeFrom(const ProMCEvent& from) {
2468 GOOGLE_CHECK_NE(&from, this);
2469 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2470 if (from.has_event()) {
2471 mutable_event()->::promc::ProMCEvent_Event::MergeFrom(from.event());
2472 }
2473 if (from.has_particles()) {
2474 mutable_particles()->::promc::ProMCEvent_Particles::MergeFrom(from.particles());
2475 }
2476 }
2477 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2478}
2479
2480void ProMCEvent::CopyFrom(const ::google::protobuf::Message& from) {
2481 if (&from == this) return;
2482 Clear();
2483 MergeFrom(from);
2484}
2485
2486void ProMCEvent::CopyFrom(const ProMCEvent& from) {
2487 if (&from == this) return;
2488 Clear();
2489 MergeFrom(from);
2490}
2491
2492bool ProMCEvent::IsInitialized() const {
2493
2494 return true;
2495}
2496
2497void ProMCEvent::Swap(ProMCEvent* other) {
2498 if (other != this) {
2499 std::swap(event_, other->event_);
2500 std::swap(particles_, other->particles_);
2501 std::swap(_has_bits_[0], other->_has_bits_[0]);
2502 _unknown_fields_.Swap(&other->_unknown_fields_);
2503 std::swap(_cached_size_, other->_cached_size_);
2504 }
2505}
2506
2507::google::protobuf::Metadata ProMCEvent::GetMetadata() const {
2508 protobuf_AssignDescriptorsOnce();
2509 ::google::protobuf::Metadata metadata;
2510 metadata.descriptor = ProMCEvent_descriptor_;
2511 metadata.reflection = ProMCEvent_reflection_;
2512 return metadata;
2513}
2514
2515
2516// @@protoc_insertion_point(namespace_scope)
2517
2518} // namespace promc
2519
2520// @@protoc_insertion_point(global_scope)
Note: See TracBrowser for help on using the repository browser.