Jpp  master_rocky
the software that should make you happy
Public Member Functions | Public Attributes | List of all members
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. More...
 
virtual void apply (const double step) override
 Apply step. More...
 

Public Attributes

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

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
int id
identifier
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 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: