Class Truth

java.lang.Object
org.jlab.analysis.efficiency.Truth

public class Truth extends Object
Efficiency matrix calculator based solely on the MC::GenMatch truth-matching bank (which is purely hit-based), and a pid assignment match in MC::Particle and REC::Particle.
Author:
baltzell
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Truth(org.jlab.jnp.hipo4.data.SchemaFactory s)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    add(int truth, int rec)
    Add an event in the form of truth and reconstructed particle species.
    void
    add(List<String> filenames)
    Add input HIPO files by path.
    void
    add(org.jlab.jnp.hipo4.data.Event e)
    Add a HIPO event.
    float
    get(int truth, int rec)
    Get one element of the efficiency matrix.
    static void
    main(String[] args)
     
    org.jlab.jnp.utils.json.JsonObject
    Get efficiencies as a JSON object.
    Get efficiencies as a Markdown table.
    Get efficiencies as a plain, human-readable table.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • Truth Link icon

      public Truth(org.jlab.jnp.hipo4.data.SchemaFactory s)
  • Method Details Link icon

    • get Link icon

      public float get(int truth, int rec)
      Get one element of the efficiency matrix.
      Parameters:
      truth - true PID
      rec - reconstructed PID
      Returns:
      probability
    • add Link icon

      public void add(int truth, int rec)
      Add an event in the form of truth and reconstructed particle species.
      Parameters:
      truth - truth PID
      rec - reconstructed PID
    • add Link icon

      public void add(org.jlab.jnp.hipo4.data.Event e)
      Add a HIPO event.
      Parameters:
      e -
    • add Link icon

      public void add(List<String> filenames)
      Add input HIPO files by path.
      Parameters:
      filenames -
    • toTable Link icon

      public String toTable()
      Get efficiencies as a plain, human-readable table.
      Returns:
    • toJson Link icon

      public org.jlab.jnp.utils.json.JsonObject toJson()
      Get efficiencies as a JSON object.
      Returns:
    • toMarkdown Link icon

      public String toMarkdown()
      Get efficiencies as a Markdown table.
      Returns:
    • main Link icon

      public static void main(String[] args)