1 #ifndef __JACOUSTICS__JGLOBALFIT__ 
    2 #define __JACOUSTICS__JGLOBALFIT__ 
   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)
 
  108         double chi2[] = { numeric_limits<double>::max(),
 
  109                           numeric_limits<double>::max() };
 
  117           for (
T hit = __begin; hit != __end; ++hit) {
 
  119             const double x = fabs(hit->getValue() - 
estimator.getToA(
result, *hit)) / hit->getSigma();
 
  129             if (chi2[0] == numeric_limits<double>::max()) {
 
  135             iter_swap(out, --__end);
 
  148               iter_swap(out, __end++);
 
size_t getN() const 
Get number of fit parameters. 
 
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. 
 
int size() const 
Get number of hits used in fit (after outlier removal). 
 
Template specialisation of fit function of acoustic model based on linear approximation. 
 
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
 
JTimeRange getTimeRange() const 
Get time range of data. 
 
Global fit of prameterised detector geometry to acoustics data. 
 
double stdev
standard deviation for outlier removal 
 
Model for fit to acoustics data. 
 
Template specialisation of fit function of acoustic model based on JGandalf minimiser. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
JGlobalfit(const JGeometry &geometry, const JSoundVelocity &V, const JFitParameters ¶meters)
Constructor. 
 
JFitParameters parameters
 
Auxiliary data structure for return value of fit. 
 
Implementation for depth dependend velocity of sound. 
 
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...
 
Fit functions of acoustic model. 
 
result_type< T > operator()(T __begin, T __end)
Fit. 
 
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. 
 
JMEstimator * getMEstimator(const int type)
Get M-Estimator. 
 
JKatoomba< JGandalf > gandalf
 
JKatoomba< JEstimator > estimator
 
Model for fit to acoutsics data. 
 
JKatoomba< JAbstractMinimiser > evaluator