Jpp
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 }
JTriggerParameters.hh
JROOT::JRootReader::get
JRootReader & get(T &object)
Read object according equation format.
Definition: JRootStreamer.hh:142
JTRIGGER::JL2Parameters
Data structure for L2 parameters.
Definition: JTriggerParameters.hh:33
JLANG::getInstance
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
JTRIGGER::JTriggerParameters
Data structure for all trigger parameters.
Definition: JTriggerParameters.hh:116
JRootStreamer.hh
operator>>
std::istream & operator>>(std::istream &in, JTRIGGER::JL2Parameters &parameters)
Read L2 parameters from input.
Definition: software/JTrigger/JTriggerParameters.cc:24
JTRIGGER::JTriggerParameters::ROOT_IO_VERSION
static int ROOT_IO_VERSION
Streamer version of JTriggerParameters as obtained from ROOT file.
Definition: JTriggerParameters.hh:337
operator<<
std::ostream & operator<<(std::ostream &out, const JTRIGGER::JL2Parameters &parameters)
Write L2 parameters to output.
Definition: software/JTrigger/JTriggerParameters.cc:41
JROOT::JRootWriter
Implementation for ASCII output of objects with ROOT dictionary.
Definition: JRootStreamer.hh:332
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JSYSTEM::getFileStatus
static JStat getFileStatus
Function object for file status.
Definition: JStat.hh:173
JStringStream.hh
JStat.hh
JLANG::JStringStream::load
void load()
Load data from file with name corresponding to current contents.
Definition: JStringStream.hh:48
JLANG::JEquationParameters
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Definition: JEquationParameters.hh:20
JROOT::JRootReader
Implementation for ASCII input of objects with ROOT dictionary.
Definition: JRootStreamer.hh:52
JLANG::JStringStream
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
Definition: JStringStream.hh:22
JROOT::JRootWriter::put
static JRootWriter & put(JRootWriter &writer, const std::string &key, const T &value)
Write given key and value according equation format.
Definition: JRootStreamer.hh:442