Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JSydney::JDyneemaEditor Struct Reference

Auxiliary class to edit length of Dyneema ropes. More...

Inheritance diagram for JACOUSTICS::JSydney::JDyneemaEditor:
JFIT::JParameter_t

Public Member Functions

 JDyneemaEditor (JSetup &setup, const int id, const double z0=0.0)
 Constructor.
 
virtual void apply (const double step) override
 Apply step.
 

Private Attributes

JDetectordetector
 
double z0
 
std::vector< size_t > index
 

Detailed Description

Auxiliary class to edit length of Dyneema ropes.

Definition at line 376 of file JSydney.cc.

Constructor & Destructor Documentation

◆ JDyneemaEditor()

JACOUSTICS::JSydney::JDyneemaEditor::JDyneemaEditor ( JSetup & setup,
const int id,
const double z0 = 0.0 )
inline

Constructor.

Parameters
setupsetup
idstring number
z0reference position

Definition at line 386 of file JSydney.cc.

386 :
388 z0 (z0)
389 {
390 for (size_t i = 0; i != detector.size(); ++i) {
391 if (detector[i].getString() == id && detector[i].getFloor() != 0) {
392 index.push_back(i);
393 }
394 }
395 }
JMODEL::JString getString(const JFit &fit)
Get model parameters of string.
Detector file.
Definition JHead.hh:227
JDetector detector
detector
Definition JSydney.cc:125
std::vector< size_t > index
Definition JSydney.cc:419

Member Function Documentation

◆ apply()

virtual void JACOUSTICS::JSydney::JDyneemaEditor::apply ( const double step)
inlineoverridevirtual

Apply step.

Parameters
stepstep

Implements JFIT::JParameter_t.

Definition at line 403 of file JSydney.cc.

404 {
405 for (const auto i : index) {
406
407 JModule& module = detector[i];
408
409 if (step > 0.0)
410 module.set(JVector3D(module.getX(), module.getY(), z0 + (module.getZ() - z0) * (1.0 + step)));
411 else if (step < 0.0)
412 module.set(JVector3D(module.getX(), module.getY(), z0 + (module.getZ() - z0) / (1.0 - step)));
413 }
414 }
Data structure for a composite optical module.
Definition JModule.hh:75

Member Data Documentation

◆ detector

JDetector& JACOUSTICS::JSydney::JDyneemaEditor::detector
private

Definition at line 417 of file JSydney.cc.

◆ z0

double JACOUSTICS::JSydney::JDyneemaEditor::z0
private

Definition at line 418 of file JSydney.cc.

◆ index

std::vector<size_t> JACOUSTICS::JSydney::JDyneemaEditor::index
private

Definition at line 419 of file JSydney.cc.


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