Jpp  19.1.0
the software that should make you happy
Classes | Namespaces | Functions
JAcoustics/JTriggerParameters.hh File Reference

Acoustic trigger parameters. More...

#include <istream>
#include <ostream>
#include <iomanip>
#include <TROOT.h>
#include <TObject.h>

Go to the source code of this file.

Classes

struct  JACOUSTICS::JTriggerParameters
 Trigger parameters. More...
 

Namespaces

 JACOUSTICS
 Auxiliary classes and methods for acoustic position calibration.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

std::istream & operator>> (std::istream &in, JACOUSTICS::JTriggerParameters &parameters)
 Read parameters from input stream. More...
 
std::ostream & operator<< (std::ostream &out, const JACOUSTICS::JTriggerParameters &parameters)
 Write parameters to output stream. More...
 

Detailed Description

Acoustic trigger parameters.

Author
mdejong

Definition in file JAcoustics/JTriggerParameters.hh.

Function Documentation

◆ operator>>()

std::istream& operator>> ( std::istream &  in,
JACOUSTICS::JTriggerParameters parameters 
)

Read parameters from input stream.

Parameters
ininput stream
parametersparameters
Returns
input stream

Definition at line 15 of file software/JAcoustics/JTriggerParameters.cc.

16 {
17  using namespace JPP;
18 
19  JStringStream is(in);
20 
21  if (getFileStatus(is.str().c_str())) {
22  is.load();
23  }
24 
26 
27  return in;
28 }
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
Implementation for ASCII input of objects with ROOT dictionary.
JRootReader & get(T &object)
Read object according equation format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static JStat getFileStatus
Function object for file status.
Definition: JStat.hh:173
static data_type & getInstance()
Get unique instance of template class.
Definition: JSingleton.hh:27

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const JACOUSTICS::JTriggerParameters parameters 
)

Write parameters to output stream.

Parameters
outoutput stream
parametersparameters
Returns
output stream

Definition at line 38 of file software/JAcoustics/JTriggerParameters.cc.

39 {
40  using namespace JPP;
41 
42  const size_t n = out.precision(6);
43 
45 
46  out.precision(n);
47 
48  return out;
49 }
Implementation for ASCII output of objects with ROOT dictionary.
JRootWriter & put(const T &object)
Write object according equation format.
const int n
Definition: JPolint.hh:786