Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

The first three values of the getShape() parameter for electrons and pions using only the highest energy cluster with no timing or energy cuts.

Creating and Testing an HMatrix

With these simple measurements of the clusters we can classify clusters from different particles using a hat matrix. org.lcsim has a convenient hat matrix class.

No Format

import org.lcsim.recon.emid.hmatrix.HMatrix;
import org.lcsim.recon.emid.hmatrix.HMatrixBuilder;

The basic principle of a hat matrix is comparing individual measurement vectors against a table of averages and covariances that is trained with relevant data. This comparison results in a chi^2 value, which is simply a measure of how similar the vector is to the data it was trained on, with 1 being the most similar. Thus, if we train a hat matrix with measurements of electron showers, we should be able to look at other showers and decide if it is an electron or not. Click here or here for more on hat matrices.

As a simple first test, I trained an HMatrix using the first three values of the shape vector on electron clusters and calculated chi^2 values using the same electron data and pion data (see attached files SimpleHMatrixBuilder.java and SimpleHMatrixTester.java). The histograms of these chi^2 values are below.

Panel

blah