Package org.jlab.analysis.efficiency
Class Truth
java.lang.Object
org.jlab.analysis.efficiency.Truth
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int truth, int rec) Add an event in the form of truth and reconstructed particle species.voidAdd input HIPO files by path.voidadd(org.jlab.jnp.hipo4.data.Event e) Add a HIPO event.floatget(int truth, int rec) Get one element of the efficiency matrix.static voidorg.jlab.jnp.utils.json.JsonObjecttoJson()Get efficiencies as a JSON object.Get efficiencies as a Markdown table.toTable()Get efficiencies as a plain, human-readable table.
-
Constructor Details
-
Truth
public Truth(org.jlab.jnp.hipo4.data.SchemaFactory s)
-
-
Method Details
-
get
public float get(int truth, int rec) Get one element of the efficiency matrix.- Parameters:
truth- true PIDrec- reconstructed PID- Returns:
- probability
-
add
public void add(int truth, int rec) Add an event in the form of truth and reconstructed particle species.- Parameters:
truth- truth PIDrec- reconstructed PID
-
add
public void add(org.jlab.jnp.hipo4.data.Event e) Add a HIPO event.- Parameters:
e-
-
add
Add input HIPO files by path.- Parameters:
filenames-
-
toTable
Get efficiencies as a plain, human-readable table.- Returns:
-
toJson
public org.jlab.jnp.utils.json.JsonObject toJson()Get efficiencies as a JSON object.- Returns:
-
toMarkdown
Get efficiencies as a Markdown table.- Returns:
-
main
-