Jpp master_rocky-44-g75b7c4f75
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 35 of file JAcoustics/JEvt.hh.

Constructor & Destructor Documentation

◆ JFit() [1/2]

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 {}
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 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 {}

◆ ~JFit()

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

Virtual destructor.

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

80 {}

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 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 }
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 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 }

◆ operator<< [2/2]

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

◆ id

int JACOUSTICS::JFit::id

string identifier

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

◆ tx

double JACOUSTICS::JFit::tx

slope dx/dz

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

◆ ty

double JACOUSTICS::JFit::ty

slope dy/dz

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

◆ tx2

double JACOUSTICS::JFit::tx2

2nd order correction of slope dx/dz

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

◆ ty2

double JACOUSTICS::JFit::ty2

2nd order correction of slope dy/dz

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

◆ vs

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: