Jpp 21.0.0
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

JDetector & detector
 
double z0
 
std::vector< size_t > index
 

Detailed Description

Auxiliary class to edit length of Dyneema ropes.

Definition at line 473 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 483 of file JSydney.cc.

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

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

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

Member Data Documentation

◆ detector

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

Definition at line 514 of file JSydney.cc.

◆ z0

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

Definition at line 515 of file JSydney.cc.

◆ index

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

Definition at line 516 of file JSydney.cc.


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