Fork me on GitHub

source: git/external/ProMC/ProMCStat.pb.cc@ 57e42c6

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

add external/ProMC

  • Property mode set to 100644
File size: 34.3 KB
Line 
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ProMCStat.proto
3
4#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5#include "ProMCStat.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* ProMCStat_descriptor_ = NULL;
24const ::google::protobuf::internal::GeneratedMessageReflection*
25 ProMCStat_reflection_ = NULL;
26const ::google::protobuf::Descriptor* ProMCStat_ProcessData_descriptor_ = NULL;
27const ::google::protobuf::internal::GeneratedMessageReflection*
28 ProMCStat_ProcessData_reflection_ = NULL;
29
30} // namespace
31
32
33void protobuf_AssignDesc_ProMCStat_2eproto() {
34 protobuf_AddDesc_ProMCStat_2eproto();
35 const ::google::protobuf::FileDescriptor* file =
36 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
37 "ProMCStat.proto");
38 GOOGLE_CHECK(file != NULL);
39 ProMCStat_descriptor_ = file->message_type(0);
40 static const int ProMCStat_offsets_[9] = {
41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, nevents_requested_),
42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, nevents_failed_),
43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, cross_section_accumulated_),
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, cross_section_error_accumulated_),
45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, luminosity_accumulated_),
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, ntried_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, nselected_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, naccepted_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, processdata_),
50 };
51 ProMCStat_reflection_ =
52 new ::google::protobuf::internal::GeneratedMessageReflection(
53 ProMCStat_descriptor_,
54 ProMCStat::default_instance_,
55 ProMCStat_offsets_,
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, _has_bits_[0]),
57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat, _unknown_fields_),
58 -1,
59 ::google::protobuf::DescriptorPool::generated_pool(),
60 ::google::protobuf::MessageFactory::generated_factory(),
61 sizeof(ProMCStat));
62 ProMCStat_ProcessData_descriptor_ = ProMCStat_descriptor_->nested_type(0);
63 static const int ProMCStat_ProcessData_offsets_[4] = {
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat_ProcessData, id_),
65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat_ProcessData, cross_section_),
66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat_ProcessData, cross_section_error_),
67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat_ProcessData, name_),
68 };
69 ProMCStat_ProcessData_reflection_ =
70 new ::google::protobuf::internal::GeneratedMessageReflection(
71 ProMCStat_ProcessData_descriptor_,
72 ProMCStat_ProcessData::default_instance_,
73 ProMCStat_ProcessData_offsets_,
74 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat_ProcessData, _has_bits_[0]),
75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCStat_ProcessData, _unknown_fields_),
76 -1,
77 ::google::protobuf::DescriptorPool::generated_pool(),
78 ::google::protobuf::MessageFactory::generated_factory(),
79 sizeof(ProMCStat_ProcessData));
80}
81
82namespace {
83
84GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
85inline void protobuf_AssignDescriptorsOnce() {
86 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
87 &protobuf_AssignDesc_ProMCStat_2eproto);
88}
89
90void protobuf_RegisterTypes(const ::std::string&) {
91 protobuf_AssignDescriptorsOnce();
92 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
93 ProMCStat_descriptor_, &ProMCStat::default_instance());
94 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
95 ProMCStat_ProcessData_descriptor_, &ProMCStat_ProcessData::default_instance());
96}
97
98} // namespace
99
100void protobuf_ShutdownFile_ProMCStat_2eproto() {
101 delete ProMCStat::default_instance_;
102 delete ProMCStat_reflection_;
103 delete ProMCStat_ProcessData::default_instance_;
104 delete ProMCStat_ProcessData_reflection_;
105}
106
107void protobuf_AddDesc_ProMCStat_2eproto() {
108 static bool already_here = false;
109 if (already_here) return;
110 already_here = true;
111 GOOGLE_PROTOBUF_VERIFY_VERSION;
112
113 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
114 "\n\017ProMCStat.proto\022\005promc\"\360\002\n\tProMCStat\022\031"
115 "\n\021nevents_requested\030\001 \001(\005\022\026\n\016nevents_fai"
116 "led\030\002 \001(\005\022!\n\031cross_section_accumulated\030\003"
117 " \001(\001\022\'\n\037cross_section_error_accumulated\030"
118 "\004 \001(\001\022\036\n\026luminosity_accumulated\030\005 \001(\001\022\016\n"
119 "\006nTried\030\006 \001(\005\022\021\n\tnSelected\030\007 \001(\005\022\021\n\tnAcc"
120 "epted\030\010 \001(\005\0221\n\013processData\030\n \003(\0132\034.promc"
121 ".ProMCStat.ProcessData\032[\n\013ProcessData\022\n\n"
122 "\002id\030\001 \002(\021\022\025\n\rcross_section\030\002 \002(\001\022\033\n\023cros"
123 "s_section_error\030\003 \002(\001\022\014\n\004name\030\004 \002(\tB\031\n\010p"
124 "romc.ioB\rProMCStatFile", 422);
125 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
126 "ProMCStat.proto", &protobuf_RegisterTypes);
127 ProMCStat::default_instance_ = new ProMCStat();
128 ProMCStat_ProcessData::default_instance_ = new ProMCStat_ProcessData();
129 ProMCStat::default_instance_->InitAsDefaultInstance();
130 ProMCStat_ProcessData::default_instance_->InitAsDefaultInstance();
131 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ProMCStat_2eproto);
132}
133
134// Force AddDescriptors() to be called at static initialization time.
135struct StaticDescriptorInitializer_ProMCStat_2eproto {
136 StaticDescriptorInitializer_ProMCStat_2eproto() {
137 protobuf_AddDesc_ProMCStat_2eproto();
138 }
139} static_descriptor_initializer_ProMCStat_2eproto_;
140
141// ===================================================================
142
143#ifndef _MSC_VER
144const int ProMCStat_ProcessData::kIdFieldNumber;
145const int ProMCStat_ProcessData::kCrossSectionFieldNumber;
146const int ProMCStat_ProcessData::kCrossSectionErrorFieldNumber;
147const int ProMCStat_ProcessData::kNameFieldNumber;
148#endif // !_MSC_VER
149
150ProMCStat_ProcessData::ProMCStat_ProcessData()
151 : ::google::protobuf::Message() {
152 SharedCtor();
153}
154
155void ProMCStat_ProcessData::InitAsDefaultInstance() {
156}
157
158ProMCStat_ProcessData::ProMCStat_ProcessData(const ProMCStat_ProcessData& from)
159 : ::google::protobuf::Message() {
160 SharedCtor();
161 MergeFrom(from);
162}
163
164void ProMCStat_ProcessData::SharedCtor() {
165 _cached_size_ = 0;
166 id_ = 0;
167 cross_section_ = 0;
168 cross_section_error_ = 0;
169 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
170 ::memset(_has_bits_, 0, sizeof(_has_bits_));
171}
172
173ProMCStat_ProcessData::~ProMCStat_ProcessData() {
174 SharedDtor();
175}
176
177void ProMCStat_ProcessData::SharedDtor() {
178 if (name_ != &::google::protobuf::internal::kEmptyString) {
179 delete name_;
180 }
181 if (this != default_instance_) {
182 }
183}
184
185void ProMCStat_ProcessData::SetCachedSize(int size) const {
186 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
187 _cached_size_ = size;
188 GOOGLE_SAFE_CONCURRENT_WRITES_END();
189}
190const ::google::protobuf::Descriptor* ProMCStat_ProcessData::descriptor() {
191 protobuf_AssignDescriptorsOnce();
192 return ProMCStat_ProcessData_descriptor_;
193}
194
195const ProMCStat_ProcessData& ProMCStat_ProcessData::default_instance() {
196 if (default_instance_ == NULL) protobuf_AddDesc_ProMCStat_2eproto();
197 return *default_instance_;
198}
199
200ProMCStat_ProcessData* ProMCStat_ProcessData::default_instance_ = NULL;
201
202ProMCStat_ProcessData* ProMCStat_ProcessData::New() const {
203 return new ProMCStat_ProcessData;
204}
205
206void ProMCStat_ProcessData::Clear() {
207 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
208 id_ = 0;
209 cross_section_ = 0;
210 cross_section_error_ = 0;
211 if (has_name()) {
212 if (name_ != &::google::protobuf::internal::kEmptyString) {
213 name_->clear();
214 }
215 }
216 }
217 ::memset(_has_bits_, 0, sizeof(_has_bits_));
218 mutable_unknown_fields()->Clear();
219}
220
221bool ProMCStat_ProcessData::MergePartialFromCodedStream(
222 ::google::protobuf::io::CodedInputStream* input) {
223#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
224 ::google::protobuf::uint32 tag;
225 while ((tag = input->ReadTag()) != 0) {
226 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
227 // required sint32 id = 1;
228 case 1: {
229 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
230 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
231 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
232 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
233 input, &id_)));
234 set_has_id();
235 } else {
236 goto handle_uninterpreted;
237 }
238 if (input->ExpectTag(17)) goto parse_cross_section;
239 break;
240 }
241
242 // required double cross_section = 2;
243 case 2: {
244 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
245 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
246 parse_cross_section:
247 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
248 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
249 input, &cross_section_)));
250 set_has_cross_section();
251 } else {
252 goto handle_uninterpreted;
253 }
254 if (input->ExpectTag(25)) goto parse_cross_section_error;
255 break;
256 }
257
258 // required double cross_section_error = 3;
259 case 3: {
260 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
261 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
262 parse_cross_section_error:
263 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
264 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
265 input, &cross_section_error_)));
266 set_has_cross_section_error();
267 } else {
268 goto handle_uninterpreted;
269 }
270 if (input->ExpectTag(34)) goto parse_name;
271 break;
272 }
273
274 // required string name = 4;
275 case 4: {
276 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
277 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
278 parse_name:
279 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
280 input, this->mutable_name()));
281 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
282 this->name().data(), this->name().length(),
283 ::google::protobuf::internal::WireFormat::PARSE);
284 } else {
285 goto handle_uninterpreted;
286 }
287 if (input->ExpectAtEnd()) return true;
288 break;
289 }
290
291 default: {
292 handle_uninterpreted:
293 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
294 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
295 return true;
296 }
297 DO_(::google::protobuf::internal::WireFormat::SkipField(
298 input, tag, mutable_unknown_fields()));
299 break;
300 }
301 }
302 }
303 return true;
304#undef DO_
305}
306
307void ProMCStat_ProcessData::SerializeWithCachedSizes(
308 ::google::protobuf::io::CodedOutputStream* output) const {
309 // required sint32 id = 1;
310 if (has_id()) {
311 ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->id(), output);
312 }
313
314 // required double cross_section = 2;
315 if (has_cross_section()) {
316 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->cross_section(), output);
317 }
318
319 // required double cross_section_error = 3;
320 if (has_cross_section_error()) {
321 ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->cross_section_error(), output);
322 }
323
324 // required string name = 4;
325 if (has_name()) {
326 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
327 this->name().data(), this->name().length(),
328 ::google::protobuf::internal::WireFormat::SERIALIZE);
329 ::google::protobuf::internal::WireFormatLite::WriteString(
330 4, this->name(), output);
331 }
332
333 if (!unknown_fields().empty()) {
334 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
335 unknown_fields(), output);
336 }
337}
338
339::google::protobuf::uint8* ProMCStat_ProcessData::SerializeWithCachedSizesToArray(
340 ::google::protobuf::uint8* target) const {
341 // required sint32 id = 1;
342 if (has_id()) {
343 target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->id(), target);
344 }
345
346 // required double cross_section = 2;
347 if (has_cross_section()) {
348 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->cross_section(), target);
349 }
350
351 // required double cross_section_error = 3;
352 if (has_cross_section_error()) {
353 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->cross_section_error(), target);
354 }
355
356 // required string name = 4;
357 if (has_name()) {
358 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
359 this->name().data(), this->name().length(),
360 ::google::protobuf::internal::WireFormat::SERIALIZE);
361 target =
362 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
363 4, this->name(), target);
364 }
365
366 if (!unknown_fields().empty()) {
367 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
368 unknown_fields(), target);
369 }
370 return target;
371}
372
373int ProMCStat_ProcessData::ByteSize() const {
374 int total_size = 0;
375
376 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
377 // required sint32 id = 1;
378 if (has_id()) {
379 total_size += 1 +
380 ::google::protobuf::internal::WireFormatLite::SInt32Size(
381 this->id());
382 }
383
384 // required double cross_section = 2;
385 if (has_cross_section()) {
386 total_size += 1 + 8;
387 }
388
389 // required double cross_section_error = 3;
390 if (has_cross_section_error()) {
391 total_size += 1 + 8;
392 }
393
394 // required string name = 4;
395 if (has_name()) {
396 total_size += 1 +
397 ::google::protobuf::internal::WireFormatLite::StringSize(
398 this->name());
399 }
400
401 }
402 if (!unknown_fields().empty()) {
403 total_size +=
404 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
405 unknown_fields());
406 }
407 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
408 _cached_size_ = total_size;
409 GOOGLE_SAFE_CONCURRENT_WRITES_END();
410 return total_size;
411}
412
413void ProMCStat_ProcessData::MergeFrom(const ::google::protobuf::Message& from) {
414 GOOGLE_CHECK_NE(&from, this);
415 const ProMCStat_ProcessData* source =
416 ::google::protobuf::internal::dynamic_cast_if_available<const ProMCStat_ProcessData*>(
417 &from);
418 if (source == NULL) {
419 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
420 } else {
421 MergeFrom(*source);
422 }
423}
424
425void ProMCStat_ProcessData::MergeFrom(const ProMCStat_ProcessData& from) {
426 GOOGLE_CHECK_NE(&from, this);
427 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
428 if (from.has_id()) {
429 set_id(from.id());
430 }
431 if (from.has_cross_section()) {
432 set_cross_section(from.cross_section());
433 }
434 if (from.has_cross_section_error()) {
435 set_cross_section_error(from.cross_section_error());
436 }
437 if (from.has_name()) {
438 set_name(from.name());
439 }
440 }
441 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
442}
443
444void ProMCStat_ProcessData::CopyFrom(const ::google::protobuf::Message& from) {
445 if (&from == this) return;
446 Clear();
447 MergeFrom(from);
448}
449
450void ProMCStat_ProcessData::CopyFrom(const ProMCStat_ProcessData& from) {
451 if (&from == this) return;
452 Clear();
453 MergeFrom(from);
454}
455
456bool ProMCStat_ProcessData::IsInitialized() const {
457 if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
458
459 return true;
460}
461
462void ProMCStat_ProcessData::Swap(ProMCStat_ProcessData* other) {
463 if (other != this) {
464 std::swap(id_, other->id_);
465 std::swap(cross_section_, other->cross_section_);
466 std::swap(cross_section_error_, other->cross_section_error_);
467 std::swap(name_, other->name_);
468 std::swap(_has_bits_[0], other->_has_bits_[0]);
469 _unknown_fields_.Swap(&other->_unknown_fields_);
470 std::swap(_cached_size_, other->_cached_size_);
471 }
472}
473
474::google::protobuf::Metadata ProMCStat_ProcessData::GetMetadata() const {
475 protobuf_AssignDescriptorsOnce();
476 ::google::protobuf::Metadata metadata;
477 metadata.descriptor = ProMCStat_ProcessData_descriptor_;
478 metadata.reflection = ProMCStat_ProcessData_reflection_;
479 return metadata;
480}
481
482
483// -------------------------------------------------------------------
484
485#ifndef _MSC_VER
486const int ProMCStat::kNeventsRequestedFieldNumber;
487const int ProMCStat::kNeventsFailedFieldNumber;
488const int ProMCStat::kCrossSectionAccumulatedFieldNumber;
489const int ProMCStat::kCrossSectionErrorAccumulatedFieldNumber;
490const int ProMCStat::kLuminosityAccumulatedFieldNumber;
491const int ProMCStat::kNTriedFieldNumber;
492const int ProMCStat::kNSelectedFieldNumber;
493const int ProMCStat::kNAcceptedFieldNumber;
494const int ProMCStat::kProcessDataFieldNumber;
495#endif // !_MSC_VER
496
497ProMCStat::ProMCStat()
498 : ::google::protobuf::Message() {
499 SharedCtor();
500}
501
502void ProMCStat::InitAsDefaultInstance() {
503}
504
505ProMCStat::ProMCStat(const ProMCStat& from)
506 : ::google::protobuf::Message() {
507 SharedCtor();
508 MergeFrom(from);
509}
510
511void ProMCStat::SharedCtor() {
512 _cached_size_ = 0;
513 nevents_requested_ = 0;
514 nevents_failed_ = 0;
515 cross_section_accumulated_ = 0;
516 cross_section_error_accumulated_ = 0;
517 luminosity_accumulated_ = 0;
518 ntried_ = 0;
519 nselected_ = 0;
520 naccepted_ = 0;
521 ::memset(_has_bits_, 0, sizeof(_has_bits_));
522}
523
524ProMCStat::~ProMCStat() {
525 SharedDtor();
526}
527
528void ProMCStat::SharedDtor() {
529 if (this != default_instance_) {
530 }
531}
532
533void ProMCStat::SetCachedSize(int size) const {
534 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
535 _cached_size_ = size;
536 GOOGLE_SAFE_CONCURRENT_WRITES_END();
537}
538const ::google::protobuf::Descriptor* ProMCStat::descriptor() {
539 protobuf_AssignDescriptorsOnce();
540 return ProMCStat_descriptor_;
541}
542
543const ProMCStat& ProMCStat::default_instance() {
544 if (default_instance_ == NULL) protobuf_AddDesc_ProMCStat_2eproto();
545 return *default_instance_;
546}
547
548ProMCStat* ProMCStat::default_instance_ = NULL;
549
550ProMCStat* ProMCStat::New() const {
551 return new ProMCStat;
552}
553
554void ProMCStat::Clear() {
555 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
556 nevents_requested_ = 0;
557 nevents_failed_ = 0;
558 cross_section_accumulated_ = 0;
559 cross_section_error_accumulated_ = 0;
560 luminosity_accumulated_ = 0;
561 ntried_ = 0;
562 nselected_ = 0;
563 naccepted_ = 0;
564 }
565 processdata_.Clear();
566 ::memset(_has_bits_, 0, sizeof(_has_bits_));
567 mutable_unknown_fields()->Clear();
568}
569
570bool ProMCStat::MergePartialFromCodedStream(
571 ::google::protobuf::io::CodedInputStream* input) {
572#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
573 ::google::protobuf::uint32 tag;
574 while ((tag = input->ReadTag()) != 0) {
575 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
576 // optional int32 nevents_requested = 1;
577 case 1: {
578 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
579 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
580 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
581 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
582 input, &nevents_requested_)));
583 set_has_nevents_requested();
584 } else {
585 goto handle_uninterpreted;
586 }
587 if (input->ExpectTag(16)) goto parse_nevents_failed;
588 break;
589 }
590
591 // optional int32 nevents_failed = 2;
592 case 2: {
593 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
594 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
595 parse_nevents_failed:
596 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
597 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
598 input, &nevents_failed_)));
599 set_has_nevents_failed();
600 } else {
601 goto handle_uninterpreted;
602 }
603 if (input->ExpectTag(25)) goto parse_cross_section_accumulated;
604 break;
605 }
606
607 // optional double cross_section_accumulated = 3;
608 case 3: {
609 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
610 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
611 parse_cross_section_accumulated:
612 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
613 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
614 input, &cross_section_accumulated_)));
615 set_has_cross_section_accumulated();
616 } else {
617 goto handle_uninterpreted;
618 }
619 if (input->ExpectTag(33)) goto parse_cross_section_error_accumulated;
620 break;
621 }
622
623 // optional double cross_section_error_accumulated = 4;
624 case 4: {
625 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
626 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
627 parse_cross_section_error_accumulated:
628 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
629 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
630 input, &cross_section_error_accumulated_)));
631 set_has_cross_section_error_accumulated();
632 } else {
633 goto handle_uninterpreted;
634 }
635 if (input->ExpectTag(41)) goto parse_luminosity_accumulated;
636 break;
637 }
638
639 // optional double luminosity_accumulated = 5;
640 case 5: {
641 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
642 ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
643 parse_luminosity_accumulated:
644 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
645 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
646 input, &luminosity_accumulated_)));
647 set_has_luminosity_accumulated();
648 } else {
649 goto handle_uninterpreted;
650 }
651 if (input->ExpectTag(48)) goto parse_nTried;
652 break;
653 }
654
655 // optional int32 nTried = 6;
656 case 6: {
657 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
658 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
659 parse_nTried:
660 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
661 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
662 input, &ntried_)));
663 set_has_ntried();
664 } else {
665 goto handle_uninterpreted;
666 }
667 if (input->ExpectTag(56)) goto parse_nSelected;
668 break;
669 }
670
671 // optional int32 nSelected = 7;
672 case 7: {
673 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
674 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
675 parse_nSelected:
676 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
677 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
678 input, &nselected_)));
679 set_has_nselected();
680 } else {
681 goto handle_uninterpreted;
682 }
683 if (input->ExpectTag(64)) goto parse_nAccepted;
684 break;
685 }
686
687 // optional int32 nAccepted = 8;
688 case 8: {
689 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
690 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
691 parse_nAccepted:
692 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
693 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
694 input, &naccepted_)));
695 set_has_naccepted();
696 } else {
697 goto handle_uninterpreted;
698 }
699 if (input->ExpectTag(82)) goto parse_processData;
700 break;
701 }
702
703 // repeated .promc.ProMCStat.ProcessData processData = 10;
704 case 10: {
705 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
706 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
707 parse_processData:
708 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
709 input, add_processdata()));
710 } else {
711 goto handle_uninterpreted;
712 }
713 if (input->ExpectTag(82)) goto parse_processData;
714 if (input->ExpectAtEnd()) return true;
715 break;
716 }
717
718 default: {
719 handle_uninterpreted:
720 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
721 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
722 return true;
723 }
724 DO_(::google::protobuf::internal::WireFormat::SkipField(
725 input, tag, mutable_unknown_fields()));
726 break;
727 }
728 }
729 }
730 return true;
731#undef DO_
732}
733
734void ProMCStat::SerializeWithCachedSizes(
735 ::google::protobuf::io::CodedOutputStream* output) const {
736 // optional int32 nevents_requested = 1;
737 if (has_nevents_requested()) {
738 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->nevents_requested(), output);
739 }
740
741 // optional int32 nevents_failed = 2;
742 if (has_nevents_failed()) {
743 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nevents_failed(), output);
744 }
745
746 // optional double cross_section_accumulated = 3;
747 if (has_cross_section_accumulated()) {
748 ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->cross_section_accumulated(), output);
749 }
750
751 // optional double cross_section_error_accumulated = 4;
752 if (has_cross_section_error_accumulated()) {
753 ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->cross_section_error_accumulated(), output);
754 }
755
756 // optional double luminosity_accumulated = 5;
757 if (has_luminosity_accumulated()) {
758 ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->luminosity_accumulated(), output);
759 }
760
761 // optional int32 nTried = 6;
762 if (has_ntried()) {
763 ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->ntried(), output);
764 }
765
766 // optional int32 nSelected = 7;
767 if (has_nselected()) {
768 ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->nselected(), output);
769 }
770
771 // optional int32 nAccepted = 8;
772 if (has_naccepted()) {
773 ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->naccepted(), output);
774 }
775
776 // repeated .promc.ProMCStat.ProcessData processData = 10;
777 for (int i = 0; i < this->processdata_size(); i++) {
778 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
779 10, this->processdata(i), output);
780 }
781
782 if (!unknown_fields().empty()) {
783 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
784 unknown_fields(), output);
785 }
786}
787
788::google::protobuf::uint8* ProMCStat::SerializeWithCachedSizesToArray(
789 ::google::protobuf::uint8* target) const {
790 // optional int32 nevents_requested = 1;
791 if (has_nevents_requested()) {
792 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->nevents_requested(), target);
793 }
794
795 // optional int32 nevents_failed = 2;
796 if (has_nevents_failed()) {
797 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->nevents_failed(), target);
798 }
799
800 // optional double cross_section_accumulated = 3;
801 if (has_cross_section_accumulated()) {
802 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->cross_section_accumulated(), target);
803 }
804
805 // optional double cross_section_error_accumulated = 4;
806 if (has_cross_section_error_accumulated()) {
807 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->cross_section_error_accumulated(), target);
808 }
809
810 // optional double luminosity_accumulated = 5;
811 if (has_luminosity_accumulated()) {
812 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->luminosity_accumulated(), target);
813 }
814
815 // optional int32 nTried = 6;
816 if (has_ntried()) {
817 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->ntried(), target);
818 }
819
820 // optional int32 nSelected = 7;
821 if (has_nselected()) {
822 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->nselected(), target);
823 }
824
825 // optional int32 nAccepted = 8;
826 if (has_naccepted()) {
827 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->naccepted(), target);
828 }
829
830 // repeated .promc.ProMCStat.ProcessData processData = 10;
831 for (int i = 0; i < this->processdata_size(); i++) {
832 target = ::google::protobuf::internal::WireFormatLite::
833 WriteMessageNoVirtualToArray(
834 10, this->processdata(i), target);
835 }
836
837 if (!unknown_fields().empty()) {
838 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
839 unknown_fields(), target);
840 }
841 return target;
842}
843
844int ProMCStat::ByteSize() const {
845 int total_size = 0;
846
847 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
848 // optional int32 nevents_requested = 1;
849 if (has_nevents_requested()) {
850 total_size += 1 +
851 ::google::protobuf::internal::WireFormatLite::Int32Size(
852 this->nevents_requested());
853 }
854
855 // optional int32 nevents_failed = 2;
856 if (has_nevents_failed()) {
857 total_size += 1 +
858 ::google::protobuf::internal::WireFormatLite::Int32Size(
859 this->nevents_failed());
860 }
861
862 // optional double cross_section_accumulated = 3;
863 if (has_cross_section_accumulated()) {
864 total_size += 1 + 8;
865 }
866
867 // optional double cross_section_error_accumulated = 4;
868 if (has_cross_section_error_accumulated()) {
869 total_size += 1 + 8;
870 }
871
872 // optional double luminosity_accumulated = 5;
873 if (has_luminosity_accumulated()) {
874 total_size += 1 + 8;
875 }
876
877 // optional int32 nTried = 6;
878 if (has_ntried()) {
879 total_size += 1 +
880 ::google::protobuf::internal::WireFormatLite::Int32Size(
881 this->ntried());
882 }
883
884 // optional int32 nSelected = 7;
885 if (has_nselected()) {
886 total_size += 1 +
887 ::google::protobuf::internal::WireFormatLite::Int32Size(
888 this->nselected());
889 }
890
891 // optional int32 nAccepted = 8;
892 if (has_naccepted()) {
893 total_size += 1 +
894 ::google::protobuf::internal::WireFormatLite::Int32Size(
895 this->naccepted());
896 }
897
898 }
899 // repeated .promc.ProMCStat.ProcessData processData = 10;
900 total_size += 1 * this->processdata_size();
901 for (int i = 0; i < this->processdata_size(); i++) {
902 total_size +=
903 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
904 this->processdata(i));
905 }
906
907 if (!unknown_fields().empty()) {
908 total_size +=
909 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
910 unknown_fields());
911 }
912 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
913 _cached_size_ = total_size;
914 GOOGLE_SAFE_CONCURRENT_WRITES_END();
915 return total_size;
916}
917
918void ProMCStat::MergeFrom(const ::google::protobuf::Message& from) {
919 GOOGLE_CHECK_NE(&from, this);
920 const ProMCStat* source =
921 ::google::protobuf::internal::dynamic_cast_if_available<const ProMCStat*>(
922 &from);
923 if (source == NULL) {
924 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
925 } else {
926 MergeFrom(*source);
927 }
928}
929
930void ProMCStat::MergeFrom(const ProMCStat& from) {
931 GOOGLE_CHECK_NE(&from, this);
932 processdata_.MergeFrom(from.processdata_);
933 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
934 if (from.has_nevents_requested()) {
935 set_nevents_requested(from.nevents_requested());
936 }
937 if (from.has_nevents_failed()) {
938 set_nevents_failed(from.nevents_failed());
939 }
940 if (from.has_cross_section_accumulated()) {
941 set_cross_section_accumulated(from.cross_section_accumulated());
942 }
943 if (from.has_cross_section_error_accumulated()) {
944 set_cross_section_error_accumulated(from.cross_section_error_accumulated());
945 }
946 if (from.has_luminosity_accumulated()) {
947 set_luminosity_accumulated(from.luminosity_accumulated());
948 }
949 if (from.has_ntried()) {
950 set_ntried(from.ntried());
951 }
952 if (from.has_nselected()) {
953 set_nselected(from.nselected());
954 }
955 if (from.has_naccepted()) {
956 set_naccepted(from.naccepted());
957 }
958 }
959 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
960}
961
962void ProMCStat::CopyFrom(const ::google::protobuf::Message& from) {
963 if (&from == this) return;
964 Clear();
965 MergeFrom(from);
966}
967
968void ProMCStat::CopyFrom(const ProMCStat& from) {
969 if (&from == this) return;
970 Clear();
971 MergeFrom(from);
972}
973
974bool ProMCStat::IsInitialized() const {
975
976 for (int i = 0; i < processdata_size(); i++) {
977 if (!this->processdata(i).IsInitialized()) return false;
978 }
979 return true;
980}
981
982void ProMCStat::Swap(ProMCStat* other) {
983 if (other != this) {
984 std::swap(nevents_requested_, other->nevents_requested_);
985 std::swap(nevents_failed_, other->nevents_failed_);
986 std::swap(cross_section_accumulated_, other->cross_section_accumulated_);
987 std::swap(cross_section_error_accumulated_, other->cross_section_error_accumulated_);
988 std::swap(luminosity_accumulated_, other->luminosity_accumulated_);
989 std::swap(ntried_, other->ntried_);
990 std::swap(nselected_, other->nselected_);
991 std::swap(naccepted_, other->naccepted_);
992 processdata_.Swap(&other->processdata_);
993 std::swap(_has_bits_[0], other->_has_bits_[0]);
994 _unknown_fields_.Swap(&other->_unknown_fields_);
995 std::swap(_cached_size_, other->_cached_size_);
996 }
997}
998
999::google::protobuf::Metadata ProMCStat::GetMetadata() const {
1000 protobuf_AssignDescriptorsOnce();
1001 ::google::protobuf::Metadata metadata;
1002 metadata.descriptor = ProMCStat_descriptor_;
1003 metadata.reflection = ProMCStat_reflection_;
1004 return metadata;
1005}
1006
1007
1008// @@protoc_insertion_point(namespace_scope)
1009
1010} // namespace promc
1011
1012// @@protoc_insertion_point(global_scope)
Note: See TracBrowser for help on using the repository browser.