Jpp  16.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDAQSummaryFrame.cc
Go to the documentation of this file.
2 
3 
4 /**
5  * \author mdejong
6  */
7 
8 /**
9  * Streamer version of JDAQSummaryslice as obtained from ROOT file.
10  */
12 
13 
14 /**
15  * Custom ROOT streamer.
16  *
17  * \param R__b I/O buffer
18  */
19 void KM3NETDAQ::JDAQSummaryFrame::Streamer(TBuffer& R__b)
20 {
21  JDAQModuleIdentifier::Streamer(R__b);
22 
23  if (R__b.IsReading()) {
24 
25  switch (ROOT_IO_VERSION) {
26 
27  case -1:
28  case 0:
29  case 1:
30  case 2:
31  case 3:
32  break;
33 
34  case 4:
35  R__b >> status;
36  break;
37 
38  default:
39  R__b >> daq;
40  R__b >> status;
41  R__b >> fifo;
42  R__b >> status_3;
43  R__b >> status_4;
44  break;
45  }
46 
47  for (int i = 0; i != NUMBER_OF_PMTS; ++i) {
48  R__b >> data[i].value;
49  }
50 
51  } else {
52 
53  R__b << daq;
54  R__b << status;
55  R__b << fifo;
56  R__b << status_3;
57  R__b << status_4;
58 
59  for (int i = 0; i != NUMBER_OF_PMTS; ++i) {
60  R__b << data[i].value;
61  }
62  }
63 }
JDAQRate data[NUMBER_OF_PMTS]
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file.
bool IsReading()
Definition: JRoot.hh:23
Definition: JRoot.hh:21
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26