Jpp master_rocky-44-g75b7c4f75
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 360 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 370 of file JSydney.cc.

370 :
372 z0 (z0)
373 {
374 for (size_t i = 0; i != detector.size(); ++i) {
375 if (detector[i].getString() == id && detector[i].getFloor() != 0) {
376 index.push_back(i);
377 }
378 }
379 }
JMODEL::JString getString(const JFit &fit)
Get model parameters of string.
Detector file.
Definition JHead.hh:227
JDetector detector
detector
Definition JSydney.cc:109
std::vector< size_t > index
Definition JSydney.cc:403

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

388 {
389 for (const auto i : index) {
390
391 JModule& module = detector[i];
392
393 if (step > 0.0)
394 module.set(JVector3D(module.getX(), module.getY(), z0 + (module.getZ() - z0) * (1.0 + step)));
395 else if (step < 0.0)
396 module.set(JVector3D(module.getX(), module.getY(), z0 + (module.getZ() - z0) / (1.0 - step)));
397 }
398 }
Data structure for a composite optical module.
Definition JModule.hh:75

Member Data Documentation

◆ detector

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

Definition at line 401 of file JSydney.cc.

◆ z0

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

Definition at line 402 of file JSydney.cc.

◆ index

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

Definition at line 403 of file JSydney.cc.


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