Jpp master_rocky-44-g75b7c4f75
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 89 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 98 of file JPerth.cc.

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

Member Function Documentation

◆ apply()

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

Apply step.

Parameters
stepstep

Implements JFIT::JParameter_t.

Definition at line 110 of file JPerth.cc.

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

Member Data Documentation

◆ data

data_type& JRECONSTRUCTION::JEditor::data

data

Definition at line 126 of file JPerth.cc.

◆ id

int JRECONSTRUCTION::JEditor::id

identifier

Definition at line 127 of file JPerth.cc.

◆ t0

double JRECONSTRUCTION::JEditor::t0

time offset [ns]

Definition at line 128 of file JPerth.cc.


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