Auxiliary data structure to convert event to model.
More...
#include <JEvtToolkit.hh>
Auxiliary data structure to convert event to model.
Definition at line 85 of file JAcoustics/JEvtToolkit.hh.
template<class T >
JACOUSTICS::getModel::getModel |
( |
const T & |
object | ) |
|
template<>
JACOUSTICS::getModel::getModel |
( |
const JEvt & |
evt | ) |
|
|
inline |
Get model of detector.
- Parameters
-
Definition at line 103 of file JAcoustics/JEvtToolkit.hh.
105 for (JEvt::const_iterator
i = evt.begin();
i != evt.end(); ++
i) {
JMODEL::JString getString(const JFit &fit)
Get model parameters of string.
template<>
JACOUSTICS::getModel::getModel |
( |
const JSuperEvt & |
evt | ) |
|
|
inline |
Get model of detector.
- Parameters
-
Definition at line 29 of file JSuperEvtToolkit.hh.
30 getModel(static_cast<const JEvt&>(evt))
32 for (JSuperEvt::tx_type::const_iterator
i = evt.
tx.begin();
i != evt.
tx.end(); ++
i) {
getModel(const T &object)
Constructor.
JACOUSTICS::JModel::emission_type emission
void JACOUSTICS::JModel::setOption |
( |
const int |
option | ) |
|
|
inlineinherited |
Set fit option.
- Parameters
-
Definition at line 558 of file JAcoustics/JModel.hh.
560 using namespace JMODEL;
572 THROW(JValueOutOfRange,
"Invalid option " <<
option);
fit times of emission of emitters and tilt angles of strings with second order correction ...
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
fit times of emission of emitters and tilt angles of strings
fit only times of emission of emitters
fit times of emission of emitters and tilt angles of strings with second order correction and stretch...
void JACOUSTICS::JModel::clear |
( |
| ) |
|
|
inlineinherited |
void JACOUSTICS::JModel::reset |
( |
| ) |
|
|
inlineinherited |
JModel& JACOUSTICS::JModel::negate |
( |
| ) |
|
|
inlineinherited |
Negate model.
- Returns
- this model
Definition at line 602 of file JAcoustics/JModel.hh.
JEmission & negate()
Negate emission.
JString & negate()
Negate string.
JACOUSTICS::JModel::emission_type emission
void evaluate(value_type &(value_type::*f1)())
Evaluate arithmetic operation.
Add model.
- Parameters
-
- Returns
- this model
Definition at line 617 of file JAcoustics/JModel.hh.
JEmission & add(const JEmission &emission)
Add emission.
JString & add(const JString &string)
Add string.
JACOUSTICS::JModel::emission_type emission
JACOUSTICS::JModel::string_type string
void evaluate(value_type &(value_type::*f1)())
Evaluate arithmetic operation.
Subtract model.
- Parameters
-
- Returns
- this model
Definition at line 632 of file JAcoustics/JModel.hh.
JString & sub(const JString &string)
Subtract string.
JACOUSTICS::JModel::emission_type emission
JEmission & sub(const JEmission &emission)
Subtract emission.
JACOUSTICS::JModel::string_type string
void evaluate(value_type &(value_type::*f1)())
Evaluate arithmetic operation.
JModel& JACOUSTICS::JModel::mul |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale model.
- Parameters
-
factor | multiplication factor |
- Returns
- this model
Definition at line 647 of file JAcoustics/JModel.hh.
JString & mul(const double factor)
Scale string.
JACOUSTICS::JModel::emission_type emission
JEmission & mul(const double factor)
Scale emission.
void evaluate(value_type &(value_type::*f1)())
Evaluate arithmetic operation.
template<class JFirst_t, class JSecond_t = JNullType>
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul |
( |
const JSecond_t & |
object | ) |
|
|
inlineinherited |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 354 of file JMath.hh.
356 return static_cast<JFirst_t&
>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*
this),
object);
JModel& JACOUSTICS::JModel::div |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale model.
- Parameters
-
- Returns
- this model
Definition at line 662 of file JAcoustics/JModel.hh.
JACOUSTICS::JModel::emission_type emission
JString & div(const double factor)
Scale string.
JEmission & div(const double factor)
Scale emission.
void evaluate(value_type &(value_type::*f1)())
Evaluate arithmetic operation.
bool JACOUSTICS::JModel::equals |
( |
const JModel & |
model, |
|
|
const double |
precision = std::numeric_limits<double>::min() |
|
) |
| const |
|
inlineinherited |
Check equality.
- Parameters
-
model | model |
precision | precision |
- Returns
- true if models are equal; else false
Definition at line 678 of file JAcoustics/JModel.hh.
681 return (this->
string .
equals(model.
string, precision) &&
bool equals(const JModel &model, const double precision=std::numeric_limits< double >::min()) const
Check equality.
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
JACOUSTICS::JModel::emission_type emission
JACOUSTICS::JModel::string_type string
size_t JACOUSTICS::JModel::getN |
( |
| ) |
const |
|
inlineinherited |
Get number of fit parameters.
- Returns
- number of parameters
Definition at line 715 of file JAcoustics/JModel.hh.
JACOUSTICS::JModel::emission_type emission
size_t getN(const JMODEL::JOption_t option) const
Get number of fit parameters.
size_t JACOUSTICS::JModel::getIndex |
( |
int |
id, |
|
|
double JString::* |
p |
|
) |
| const |
|
inlineinherited |
Get index of fit parameter for given string.
- Parameters
-
id | string identifier |
p | pointer to data member |
- Returns
- parameter
Definition at line 728 of file JAcoustics/JModel.hh.
JACOUSTICS::JModel::emission_type emission
size_t getN(const JMODEL::JOption_t option) const
Get number of fit parameters.
size_t JACOUSTICS::JModel::getIndex |
( |
const JEKey & |
id, |
|
|
double JEmission::* |
p |
|
) |
| const |
|
inlineinherited |
Get index of fit parameter for given emission.
- Parameters
-
id | emission key |
p | pointer to data member |
- Returns
- parameter
Definition at line 741 of file JAcoustics/JModel.hh.
size_t getIndex(const key_type key, double value_type::*p, const JMODEL::JOption_t option) const
Get index of parameter.
JACOUSTICS::JModel::emission_type emission
double JACOUSTICS::JModel::operator[] |
( |
const size_t |
index | ) |
const |
|
inlineinherited |
Read access to fit parameter value by index.
- Parameters
-
- Returns
- value
Definition at line 753 of file JAcoustics/JModel.hh.
761 if (i <
string .
getN(this->
option)) {
return string .getParameter(i, this->
option); }
763 THROW(JIndexOutOfRange,
"Invalid index " << index <<
" >= " <<
getN());
size_t getN() const
Get number of fit parameters.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
JACOUSTICS::JModel::emission_type emission
size_t getN(const JMODEL::JOption_t option) const
Get number of fit parameters.
double getParameter(const size_t index, const JMODEL::JOption_t option) const
Get read access to fit parameter value at given index in buffer.
double& JACOUSTICS::JModel::operator[] |
( |
const size_t |
index | ) |
|
|
inlineinherited |
Read/write access to fit parameter value by index.
- Parameters
-
- Returns
- value
Definition at line 773 of file JAcoustics/JModel.hh.
781 if (i <
string .
getN(this->
option)) {
return string .getParameter(i, this->
option); }
783 THROW(JIndexOutOfRange,
"Invalid index " << index <<
" >= " <<
getN());
size_t getN() const
Get number of fit parameters.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
JACOUSTICS::JModel::emission_type emission
size_t getN(const JMODEL::JOption_t option) const
Get number of fit parameters.
double getParameter(const size_t index, const JMODEL::JOption_t option) const
Get read access to fit parameter value at given index in buffer.
The documentation for this struct was generated from the following files: