1 #ifndef __JACOUSTICS__JKATOOMBA_T__
2 #define __JACOUSTICS__JKATOOMBA_T__
21 namespace JACOUSTICS {}
22 namespace JPP {
using namespace JACOUSTICS; }
24 namespace JACOUSTICS {
38 parameters(parameters),
39 estimator(geometry, V, parameters.option),
40 evaluator(geometry, V, parameters.option),
41 gandalf (geometry, V, parameters.option)
109 for (
T hit = __begin; hit != __end; ++hit) {
111 const double x = fabs(hit->getValue() -
estimator.getToA(
result, *hit)) / hit->getSigma();
121 iter_swap(out, --__end);
134 iter_swap(out, __end++);
Worker class for complete fit procedure of acoustic model.
size_t getN() const
Get number of fit parameters.
int size() const
Get number of hits used in fit (after outlier removal).
JKatoomba< JEstimator > estimator
double getWeight(T __begin, T __end)
Get total weight of data points.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
JKatoomba< JAbstractMinimiser > evaluator
Template specialisation of fit function of acoustic model based on linear approximation.
JKatoomba_t(const JGeometry &geometry, const JSoundVelocity &V, const JFitParameters ¶meters)
Constructor.
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
Auxiliary data structure for return value of fit.
double stdev
standard deviation for outlier removal
Model for fit to acoustics data.
JFitParameters parameters
Template specialisation of fit function of acoustic model based on JGandalf minimiser.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Implementation for depth dependend velocity of sound.
JTimeRange getTimeRange() const
Get time range of data.
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
Template specialisation of fit function of acoustic model based on JAbstractMinimiser minimiser...
then if[[!-f $DETECTOR]] then JDetector sh $DETECTOR fi cat $WORKDIR trigger_parameters txt<< EOFtrigger3DMuon.enabled=1;trigger3DMuon.numberOfHits=5;trigger3DMuon.gridAngle_deg=1;ctMin=0.0;TMaxLocal_ns=15.0;EOF set_variable TRIGGEREFFICIENCY_TRIGGERED_EVENTS_ONLY INPUT_FILES=() for((i=1;$i<=$NUMBER_OF_RUNS;++i));do JSirene.sh $DETECTOR $JPP_DATA/genhen.km3net_wpd_V2_0.evt.gz $WORKDIR/sirene_ ${i}.root JTriggerEfficiency.sh $DETECTOR $DETECTOR $WORKDIR/sirene_ ${i}.root $WORKDIR/trigger_efficiency_ ${i}.root $WORKDIR/trigger_parameters.txt $JPP_DATA/PMT_parameters.txt INPUT_FILES+=($WORKDIR/trigger_efficiency_ ${i}.root) done for ANGLE_DEG in $ANGLES_DEG[*];do set_variable SIGMA_NS 3.0 set_variable OUTLIERS 3 set_variable OUTPUT_FILE $WORKDIR/matrix\[${ANGLE_DEG}\deg\].root $JPP_DIR/examples/JReconstruction-f"$INPUT_FILES[*]"-o $OUTPUT_FILE-S ${SIGMA_NS}-A ${ANGLE_DEG}-O ${OUTLIERS}-d ${DEBUG}--!fiif[[$OPTION=="plot"]];then if((0));then for H1 in h0 h1;do JPlot1D-f"$WORKDIR/matrix["${^ANGLES_DEG}" deg].root:${H1}"-y"1 2e3"-Y-L TR-T""-\^"number of events [a.u.]"-> o chi2
int mestimator
M-estimator.
Fit functions of acoustic model.
JMEstimator * getMEstimator(const int type)
Get M-Estimator.
Model for fit to acoutsics data.
JKatoomba< JGandalf > gandalf
result_type< T > operator()(T __begin, T __end)
Fit.