Jpp  17.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDAQTriggerCounterIO.hh
Go to the documentation of this file.
1 #ifndef __JDAQTRIGGERCOUNTER_IO__
2 #define __JDAQTRIGGERCOUNTER_IO__
3 
5 
6 #include "JIO/JSerialisable.hh"
7 
8 /**
9  * \author mdejong
10  */
11 namespace KM3NETDAQ {
12 
13  /**
14  * Get size of type.
15  *
16  * \return number of bytes
17  */
18  template<>
20  {
22  }
23 
24 
25  /**
26  * Read DAQ trigger counter from input.
27  *
28  * \param in reader
29  * \param counter DAQ trigger counter
30  * \return reader
31  */
33  {
34  in >> counter.trigger_counter;
35 
36  return in;
37  }
38 
39 
40  /**
41  * Write JDAQTriggerCounter to output.
42  *
43  * \param out writer
44  * \param counter DAQ trigger counter
45  * \return writer
46  */
47  inline JWriter& operator<<(JWriter& out, const JDAQTriggerCounter& counter)
48  {
49  out << counter.trigger_counter;
50 
51  return out;
52  }
53 }
54 
55 #endif
size_t getSizeof< JDAQTriggerCounter >()
Get size of type.
Interface for binary output.
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
Interface for binary input.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.
Auxiliary class to count triggers.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46