Jpp  18.1.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
JACOUSTICS::JFit Struct Reference

Acoustic single fit. More...

#include <JEvt.hh>

Inheritance diagram for JACOUSTICS::JFit:
TObject

Public Member Functions

 JFit ()
 Default constructor. More...
 
 JFit (const int id, const double tx, const double ty, const double tx2, const double ty2, const double vs)
 Constructor. More...
 
virtual ~JFit ()
 Virtual destructor. More...
 
 ClassDefOverride (JFit, 2)
 

Public Attributes

int id
 string identifier More...
 
double tx
 slope dx/dz More...
 
double ty
 slope dy/dz More...
 
double tx2
 2nd order correction of slope dx/dz More...
 
double ty2
 2nd order correction of slope dy/dz More...
 
double vs
 stretching factor More...
 

Friends

std::ostream & operator<< (std::ostream &out, const JFit &fit)
 Write fit to output. More...
 
JReaderoperator>> (JReader &in, JFit &object)
 Read fit from input. More...
 
JWriteroperator<< (JWriter &out, const JFit &object)
 Write fit to output. More...
 

Detailed Description

Acoustic single fit.

Definition at line 35 of file JAcoustics/JEvt.hh.

Constructor & Destructor Documentation

JACOUSTICS::JFit::JFit ( )
inline

Default constructor.

Definition at line 41 of file JAcoustics/JEvt.hh.

41  :
42  id (-1),
43  tx (0.0),
44  ty (0.0),
45  tx2(0.0),
46  ty2(0.0),
47  vs (0.0)
48  {}
int id
string identifier
double ty
slope dy/dz
double tx
slope dx/dz
double ty2
2nd order correction of slope dy/dz
double vs
stretching factor
double tx2
2nd order correction of slope dx/dz
JACOUSTICS::JFit::JFit ( const int  id,
const double  tx,
const double  ty,
const double  tx2,
const double  ty2,
const double  vs 
)
inline

Constructor.

Parameters
idstring identifier
txslope dx/dz
tyslope dy/dz
tx22nd order correction of slope dx/dz
ty22nd order correction of slope dy/dz
vsstretching factor

Definition at line 61 of file JAcoustics/JEvt.hh.

66  :
67  id (id),
68  tx (tx),
69  ty (ty),
70  tx2(tx2),
71  ty2(ty2),
72  vs (vs)
73  {}
int id
string identifier
double ty
slope dy/dz
double tx
slope dx/dz
double ty2
2nd order correction of slope dy/dz
double vs
stretching factor
double tx2
2nd order correction of slope dx/dz
virtual JACOUSTICS::JFit::~JFit ( )
inlinevirtual

Virtual destructor.

Definition at line 79 of file JAcoustics/JEvt.hh.

80  {}

Member Function Documentation

JACOUSTICS::JFit::ClassDefOverride ( JFit  ,
 
)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JFit fit 
)
friend

Write fit to output.

Parameters
outoutput stream
fitfit
Returns
output stream

Definition at line 90 of file JAcoustics/JEvt.hh.

91  {
92  using namespace std;
93 
94  out << setw(4) << fit.id << ' '
95  << FIXED(10,7) << fit.tx << ' '
96  << FIXED(10,7) << fit.ty << ' '
97  << SCIENTIFIC(12,3) << fit.tx2 << ' '
98  << SCIENTIFIC(12,3) << fit.ty2 << ' '
99  << FIXED(8,5) << fit.vs;
100 
101  return out;
102  }
int id
string identifier
Auxiliary data structure for floating point format specification.
Definition: JManip.hh:446
double ty
slope dy/dz
double tx
slope dx/dz
double ty2
2nd order correction of slope dy/dz
double vs
stretching factor
double tx2
2nd order correction of slope dx/dz
Auxiliary data structure for floating point format specification.
Definition: JManip.hh:484
JReader& operator>> ( JReader in,
JFit object 
)
friend

Read fit from input.

Parameters
inreader
objectfit
Returns
reader

Definition at line 112 of file JAcoustics/JEvt.hh.

113  {
114  in >> object.id;
115  in >> object.tx;
116  in >> object.ty;
117  in >> object.tx2;
118  in >> object.ty2;
119  in >> object.vs;
120 
121  return in;
122  }
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
JWriter& operator<< ( JWriter out,
const JFit object 
)
friend

Write fit to output.

Parameters
outwriter
objectfit
Returns
writer

Definition at line 132 of file JAcoustics/JEvt.hh.

133  {
134  out << object.id;
135  out << object.tx;
136  out << object.ty;
137  out << object.tx2;
138  out << object.ty2;
139  out << object.vs;
140 
141  return out;
142  }

Member Data Documentation

int JACOUSTICS::JFit::id

string identifier

Definition at line 146 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JFit::tx

slope dx/dz

Definition at line 147 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JFit::ty

slope dy/dz

Definition at line 148 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JFit::tx2

2nd order correction of slope dx/dz

Definition at line 149 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JFit::ty2

2nd order correction of slope dy/dz

Definition at line 150 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JFit::vs

stretching factor

Definition at line 151 of file JAcoustics/JEvt.hh.


The documentation for this struct was generated from the following file: