Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JRECONSTRUCTION::JEditor Struct Reference

Auxiliary class for editing time offset. More...

Inheritance diagram for JRECONSTRUCTION::JEditor:
JFIT::JParameter_t

Public Member Functions

 JEditor (data_type &data, const int id)
 Constructor.
 
virtual void apply (const double step) override
 Apply step.
 

Public Attributes

data_typedata
 data
 
int id
 identifier
 
double t0
 time offset [ns]
 

Detailed Description

Auxiliary class for editing time offset.

Definition at line 88 of file JPerth.cc.

Constructor & Destructor Documentation

◆ JEditor()

JRECONSTRUCTION::JEditor::JEditor ( data_type & data,
const int id )
inline

Constructor.

Parameters
datadata
ididentifier

Definition at line 97 of file JPerth.cc.

97 :
98 data(data),
99 id(id),
100 t0(0.0)
101 {}
data_type & data
data
Definition JPerth.cc:125
double t0
time offset [ns]
Definition JPerth.cc:127

Member Function Documentation

◆ apply()

virtual void JRECONSTRUCTION::JEditor::apply ( const double step)
inlineoverridevirtual

Apply step.

Parameters
stepstep

Implements JFIT::JParameter_t.

Definition at line 109 of file JPerth.cc.

110 {
111 for (data_type::iterator evt = data.begin(); evt != data.end(); ++evt) {
112
113 map_type::iterator p = evt->data.find(id);
114
115 if (p != evt->data.end()) {
116 for (buffer_type::iterator hit = p->second.begin(); hit != p->second.end(); ++hit) {
117 static_cast<JHit&>(*hit) = JHit(hit->getT1() + step, hit->getToT());
118 }
119 }
120 }
121
122 this->t0 += step;
123 }
Acoustics hit.

Member Data Documentation

◆ data

data_type& JRECONSTRUCTION::JEditor::data

data

Definition at line 125 of file JPerth.cc.

◆ id

int JRECONSTRUCTION::JEditor::id

identifier

Definition at line 126 of file JPerth.cc.

◆ t0

double JRECONSTRUCTION::JEditor::t0

time offset [ns]

Definition at line 127 of file JPerth.cc.


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