Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JRECONSTRUCTION::JStringEditor Struct Reference

Auxiliary class to edit time offset of data per string. More...

Inheritance diagram for JRECONSTRUCTION::JStringEditor:
JFIT::JParameter_t

Public Member Functions

 JStringEditor (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
 string identifier More...
 
double t0
 time offset [ns] More...
 

Detailed Description

Auxiliary class to edit time offset of data per string.

Definition at line 88 of file JPerth.cc.

Constructor & Destructor Documentation

JRECONSTRUCTION::JStringEditor::JStringEditor ( data_type data,
const int  id 
)
inline

Constructor.

Parameters
datadata
idstring identifier

Definition at line 97 of file JPerth.cc.

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

Member Function Documentation

virtual void JRECONSTRUCTION::JStringEditor::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<JTRIGGER::JHit&>(*hit) = JTRIGGER::JHit(hit->getT1() + step, hit->getToT());
118  }
119  }
120  }
121 
122  this->t0 += step;
123  }
Hit data structure.
data_type & data
data
Definition: JPerth.cc:125
double t0
time offset [ns]
Definition: JPerth.cc:127

Member Data Documentation

data_type& JRECONSTRUCTION::JStringEditor::data

data

Definition at line 125 of file JPerth.cc.

int JRECONSTRUCTION::JStringEditor::id

string identifier

Definition at line 126 of file JPerth.cc.

double JRECONSTRUCTION::JStringEditor::t0

time offset [ns]

Definition at line 127 of file JPerth.cc.


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