dipolefit C++ API Reference

struct Hit

Public Members

double x
double y
double z
double t
double amp
class I3DipoleFit : public I3ConditionalModule
#include <I3DipoleFit.h>

IceTray module to implement the dipole fit first guess routine.

Public Functions

I3DipoleFit(const I3Context &ctx)

Builds an instance of this class

Parameters:

ctx – the context with which this module’s built

~I3DipoleFit()

Destroys an instance of this class

void Configure()

This module takes a configuration parameter and so it must be configured

void Physics(I3FramePtr frame)

Physics method operates on the event (the physics frame), once per frame.

Private Functions

I3DipoleFit()
I3DipoleFit(const I3DipoleFit&)
I3DipoleFit &operator=(const I3DipoleFit&)
SET_LOGGER ("I3DipoleFit")

Private Members

std::string fitName_

Parameter: ame to assign to the fit that is produced.

std::string inputRecoPulses_

Parameter: name of the input RecoPulseSeriesMap to use for reconstruction.

int minHits_

Parameter: minimum number of hits needed to fit the event.

int dipoleStep_

Parameter: step size in the dipole calculation.

The dipole fit will (after sorting the hits to time) determine the ‘dipole’ direction as: sum(i) weight(i,i+N) * (pos(i+N) - pos(i) ) divided by the sum of the weights. With the DipoleStep option you set the value of N.

double ampWeightPower_

Parameter: power of hits weights.

Hits are weighted with the amplitude raised to this power. Typically 0. (for all hits weight=1) or 1. (weight=amplitude).

namespace dipolefit

Functions

bool operator<(Hit l, Hit r)
void Fill(I3RecoPulseSeriesMapConstPtr hitmap, const I3Geometry &geometry, std::vector<Hit> &hitvect)
namespace std

STL namespace.

file I3DipoleFit.cxx
#include “icetray/I3TrayHeaders.h”
#include “icetray/I3PhysicsTimer.h”
#include “dipolefit/I3DipoleFit.h
#include “recclasses/I3DipoleFitParams.h”
#include “dataclasses/geometry/I3Geometry.h”
#include “dataclasses/physics/I3Particle.h”
#include “dataclasses/I3Constants.h”
#include “dataclasses/I3Position.h”
#include “icetray/OMKey.h”
#include “dataclasses/physics/I3RecoHit.h”
#include “dataclasses/physics/I3RecoPulse.h”
#include “I3DipoleFitExtras.h
#include <iostream>

Functions

I3_MODULE(I3DipoleFit)
file I3DipoleFit.h
#include “icetray/I3ConditionalModule.h”

copyright (C) 2004 the icecube collaboration $Id$

Version

Rcs

1.2

Date

$Date$

Author

troy

file I3DipoleFitExtras.h
dir dipolefit
dir dipolefit
dir dipolefit
dir icetray
dir private
dir public