Jpp  18.0.1-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
software/JTrigger/JTriggerParameters.cc
Go to the documentation of this file.
1 #include "JSystem/JStat.hh"
2 #include "JROOT/JRootStreamer.hh"
3 #include "JLang/JStringStream.hh"
5 #include "JTrigger/JTriggerDictionary.hh"
6 
7 /**
8  * \author mdejong
9  */
10 
11 /**
12  * Streamer version of JTriggerParameters as obtained from ROOT file.
13  */
15 
16 
17 /**
18  * Read L2 parameters from input.
19  *
20  * \param in input stream
21  * \param parameters L2 parameters
22  * \return input stream
23  */
24 std::istream& operator>>(std::istream& in, JTRIGGER::JL2Parameters& parameters)
25 {
26  using namespace JPP;
27 
29 
30  return in;
31 }
32 
33 
34 /**
35  * Write L2 parameters to output.
36  *
37  * \param out output stream
38  * \param parameters L2 parameters
39  * \return output stream
40  */
41 std::ostream& operator<<(std::ostream& out, const JTRIGGER::JL2Parameters& parameters)
42 {
43  using namespace JPP;
44 
46 
47  return out;
48 }
49 
50 
51 /**
52  * Read trigger parameters from input.
53  *
54  * \param in input stream
55  * \param parameters trigger parameters
56  * \return input stream
57  */
58 std::istream& operator>>(std::istream& in, JTRIGGER::JTriggerParameters& parameters)
59 {
60  using namespace JPP;
61 
62  JStringStream is(in);
63 
64  if (getFileStatus(is.str().c_str())) {
65  is.load();
66  }
67 
69 
70  return in;
71 }
72 
73 
74 /**
75  * Write trigger parameters to output.
76  *
77  * \param out output stream
78  * \param parameters trigger parameters
79  * \return output stream
80  */
81 std::ostream& operator<<(std::ostream& out, const JTRIGGER::JTriggerParameters& parameters)
82 {
83  using namespace JPP;
84 
86 
87  return out;
88 }
JRootReader & get(T &object)
Read object according equation format.
Data structure for all trigger parameters.
Implementation for ASCII output of objects with ROOT dictionary.
void load()
Load data from file with name corresponding to current contents.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Definition: diff-Tuna.sh:38
Simple data structure to support I/O of equations (see class JLANG::JEquation).
is
Definition: JDAQCHSM.chsm:167
Implementation for ASCII input of objects with ROOT dictionary.
ASCII I/O of objects with ROOT dictionary.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
static int ROOT_IO_VERSION
Streamer version of JTriggerParameters as obtained from ROOT file.
static JStat getFileStatus
Function object for file status.
Definition: JStat.hh:173
Data structure for L2 parameters.
Wrapper class around STL stringstream class to facilitate optional loading of data from file...
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1814
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
JRootWriter & put(const T &object)
Write object according equation format.
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
File status.