Contents
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 TypeMethodDescriptionvoid
add
(int truth, int rec) Add an event in the form of truth and reconstructed particle species.void
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
org.jlab.jnp.utils.json.JsonObject
toJson()
Get efficiencies as a JSON object.Get efficiencies as a Markdown table.toTable()
Get efficiencies as a plain, human-readable table.
-
Constructor Details
-
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
-
toTable
-
toJson
public org.jlab.jnp.utils.json.JsonObject toJson()Get efficiencies as a JSON object.- Returns:
-
toMarkdown
-
main
-