1 #ifndef __JACOUSTICS__JMECHANICS__
2 #define __JACOUSTICS__JMECHANICS__
18 namespace JACOUSTICS {}
19 namespace JPP {
using namespace JACOUSTICS; }
21 namespace JACOUSTICS {
61 return height + this->
b * log(1.0 - this->
a * height);
74 return in >> parameters.
a >> parameters.
b;
87 return out <<
FIXED(7,5) << parameters.
a <<
' '
88 <<
FIXED(7,3) << parameters.
b;
102 template<
int detector = 0>
129 virtual const JMechanics&
get(
const int string)
const override
131 if (this->
has(
string))
173 public JHashMap<int, JDetectorMechanics<> >
Auxiliary data structure for mechanical model parameters of strings in a given detector.
Mechanical model parameters for specific detector.
Mechanical model parameters for specific detector.
General purpose class for hash map of unique elements.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Auxiliary data structure for floating point format specification.
JMechanics(const double a, const double b)
Constructor.
JACOUSTICS::JGetMechanics getMechanics
friend std::istream & operator>>(std::istream &in, JMechanics ¶meters)
Read parameters from input stream.
double a
0 <= a < (maximal height)⁻1; [m^-1]
double getHeight(const double height) const
Get effective height.
JMechanics()
Default constructor.
JGetMechanics()
Default constructor.
Auxiliary data structure for mechanical model parameters of strings in any detector.
JDetectorMechanics()
Default constructor.
JMechanics mechanics
default parameters
friend std::ostream & operator<<(std::ostream &out, const JMechanics ¶meters)
Write parameters to output stream.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Auxiliary data structure for parameters of mechanical model.
JDetectorMechanics(const JMechanics &mechanics)
Constructor.