Jpp 21.0.0-rc.3
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 475 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 485 of file JSydney.cc.

485 :
487 z0 (z0)
488 {
489 for (size_t i = 0; i != detector.size(); ++i) {
490 if (detector[i].getString() == id && detector[i].getFloor() != 0) {
491 index.push_back(i);
492 }
493 }
494 }
JMODEL::JString getString(const JFit &fit)
Get model parameters of string.
Detector file.
Definition JHead.hh:227
JDetector detector
detector
Definition JSydney.cc:131
std::vector< size_t > index
Definition JSydney.cc:518

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 502 of file JSydney.cc.

503 {
504 for (const auto i : index) {
505
506 JModule& module = detector[i];
507
508 if (step > 0.0)
509 module.set(JVector3D(module.getX(), module.getY(), z0 + (module.getZ() - z0) * (1.0 + step)));
510 else if (step < 0.0)
511 module.set(JVector3D(module.getX(), module.getY(), z0 + (module.getZ() - z0) / (1.0 - step)));
512 }
513 }
Data structure for a composite optical module.
Definition JModule.hh:76

Member Data Documentation

◆ detector

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

Definition at line 516 of file JSydney.cc.

◆ z0

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

Definition at line 517 of file JSydney.cc.

◆ index

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

Definition at line 518 of file JSydney.cc.


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