Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JFit Struct Reference

Acoustic single fit. More...

#include <JEvt.hh>

Inheritance diagram for JACOUSTICS::JFit:
TObject

Public Member Functions

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

Public Attributes

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

Friends

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

Detailed Description

Acoustic single fit.

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

Constructor & Destructor Documentation

◆ JFit() [1/2]

JACOUSTICS::JFit::JFit ( )
inline

Default constructor.

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

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

◆ JFit() [2/2]

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 60 of file JAcoustics/JEvt.hh.

65 :
66 id (id),
67 tx (tx),
68 ty (ty),
69 tx2(tx2),
70 ty2(ty2),
71 vs (vs)
72 {}

◆ ~JFit()

virtual JACOUSTICS::JFit::~JFit ( )
inlinevirtual

Virtual destructor.

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

79 {}

Member Function Documentation

◆ ClassDefOverride()

JACOUSTICS::JFit::ClassDefOverride ( JFit ,
2  )

Friends And Related Symbol Documentation

◆ operator<< [1/2]

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

Write fit to output.

Parameters
outoutput stream
fitfit
Returns
output stream

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

90 {
91 using namespace std;
92
93 out << setw(4) << fit.id << ' '
94 << FIXED(10,7) << fit.tx << ' '
95 << FIXED(10,7) << fit.ty << ' '
96 << SCIENTIFIC(12,3) << fit.tx2 << ' '
97 << SCIENTIFIC(12,3) << fit.ty2 << ' '
98 << FIXED(8,5) << fit.vs;
99
100 return out;
101 }
Auxiliary data structure for floating point format specification.
Definition JManip.hh:448
Auxiliary data structure for floating point format specification.
Definition JManip.hh:488

◆ operator>>

JReader & operator>> ( JReader & in,
JFit & object )
friend

Read fit from input.

Parameters
inreader
objectfit
Returns
reader

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

112 {
113 in >> object.id;
114 in >> object.tx;
115 in >> object.ty;
116 in >> object.tx2;
117 in >> object.ty2;
118 in >> object.vs;
119
120 return in;
121 }

◆ operator<< [2/2]

JWriter & operator<< ( JWriter & out,
const JFit & object )
friend

Write fit to output.

Parameters
outwriter
objectfit
Returns
writer

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

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

Member Data Documentation

◆ id

int JACOUSTICS::JFit::id

string identifier

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

◆ tx

double JACOUSTICS::JFit::tx

slope dx/dz

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

◆ ty

double JACOUSTICS::JFit::ty

slope dy/dz

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

◆ tx2

double JACOUSTICS::JFit::tx2

2nd order correction of slope dx/dz

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

◆ ty2

double JACOUSTICS::JFit::ty2

2nd order correction of slope dy/dz

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

◆ vs

double JACOUSTICS::JFit::vs

stretching factor

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


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