MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
BeamFitUtils Class Reference

Helpers for the 2-D beam-spot description. More...

#include <BeamFit2D.hpp>

Static Public Member Functions

static Bool_t InEllipseXY (const BeamFit2D &b, Double_t x, Double_t y, Double_t nx, Double_t ny)
 Whether a point lies inside the fitted beam ellipse.
static Moments2D ComputeMoments (TH2F *h, Int_t lo_bx, Int_t hi_bx, Int_t lo_by, Int_t hi_by, Double_t thresh, Double_t bw_x, Double_t bw_y)
 Second moments of a histogram region above a threshold.

Detailed Description

Helpers for the 2-D beam-spot description.

Definition at line 39 of file BeamFit2D.hpp.

Member Function Documentation

◆ ComputeMoments()

Moments2D BeamFitUtils::ComputeMoments ( TH2F * h,
Int_t lo_bx,
Int_t hi_bx,
Int_t lo_by,
Int_t hi_by,
Double_t thresh,
Double_t bw_x,
Double_t bw_y )
static

Second moments of a histogram region above a threshold.

Parameters
hHistogram to measure. Must not be null.
lo_bxFirst x bin, inclusive.
hi_bxLast x bin, inclusive.
lo_byFirst y bin, inclusive.
hi_byLast y bin, inclusive.
threshBin contents at or below this are ignored, which keeps background out of the widths.
bw_xx bin width, for converting bin indices to physical units.
bw_yy bin width.
Returns
The moments; weight == 0 when nothing cleared thresh.

Definition at line 20 of file BeamFit2D.cpp.

Referenced by FindBeamGateStrips().

◆ InEllipseXY()

Bool_t BeamFitUtils::InEllipseXY ( const BeamFit2D & b,
Double_t x,
Double_t y,
Double_t nx,
Double_t ny )
static

Whether a point lies inside the fitted beam ellipse.

Parameters
bFitted spot. Must have ok == kTRUE to be meaningful.
xPoint x.
yPoint y.
nxEllipse half-width in units of sigma_x.
nyEllipse half-height in units of sigma_y.
Returns
kTRUE if inside the correlation-aware ellipse.

Definition at line 3 of file BeamFit2D.cpp.

Referenced by CollectAnchorSamplesOneSubfile().


The documentation for this class was generated from the following files: