QQQ data
This commit is contained in:
parent
e4a490245c
commit
19928ac432
|
|
@ -553,7 +553,7 @@ int main(int argc, char **argv){
|
|||
|
||||
tree2->Fill();
|
||||
|
||||
}else if (false) {//(qqqID >= 0){
|
||||
}else if (qqqID >= 0){
|
||||
// handle QQQ hit case
|
||||
sx3Up = -1;
|
||||
sx3Dn = -1;
|
||||
|
|
|
|||
BIN
ELoss/7MeVprotonbeam.zip
Normal file
BIN
ELoss/7MeVprotonbeam.zip
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1091,6 +1091,19 @@ class MyInteractiveApp(cmd.Cmd):
|
|||
plt.savefig(f"{base}/E_vs_theta.png", dpi=300)
|
||||
plt.show()
|
||||
|
||||
mask1 = ~np.isnan(qqqE) & ~np.isnan(thetab)
|
||||
plt.figure(figsize=(7,6))
|
||||
plt.hist2d(thetab[mask1], (np.sin(np.deg2rad(thetab)) * Elost)[mask1], bins=200)
|
||||
plt.xlabel("Elost x sin(theta)")
|
||||
plt.ylabel("Eqqq (MeV)")
|
||||
plt.title(f"{particle} ({treename}) Energy QQQ vs Elost * Theta")
|
||||
plt.colorbar(label="Counts")
|
||||
#plt.xlim(0,30)
|
||||
#plt.ylim(0,0.45)
|
||||
plt.tight_layout()
|
||||
plt.savefig(f"{base}/Eqqq_vs_Elostxsintheta.png", dpi=300)
|
||||
plt.show()
|
||||
|
||||
mask1 = (Esx3 > 0) & ~np.isnan(thetab)
|
||||
plt.figure(figsize=(7,6))
|
||||
plt.hist2d(thetab[mask1], Esx3[mask1], bins=200)
|
||||
|
|
@ -1346,7 +1359,7 @@ class MyInteractiveApp(cmd.Cmd):
|
|||
|
||||
# load both trees for file1 and combine their arrays into a single dataset
|
||||
data1_tree1 = process_file(os.path.join("..", "Armory", file1), "tree1")
|
||||
data1_tree2 = process_file(os.path.join("..", "Armory", file1), "tree2")
|
||||
data1_tree2 = process_file(os.path.join("..", "Armory", file1), "tree1")
|
||||
# concatenate matching array entries
|
||||
data1 = {"particle": f"{data1_tree1['particle']}_combined"}
|
||||
for key in data1_tree1:
|
||||
|
|
@ -1440,7 +1453,7 @@ class MyInteractiveApp(cmd.Cmd):
|
|||
thetab2 = np.deg2rad(data2["thetab"][mask2])
|
||||
|
||||
#theta smear (spatial uncertainty)
|
||||
if True:
|
||||
if False:
|
||||
sigma = 0.2 * np.sqrt(np.maximum(thetab1, 0))
|
||||
|
||||
thetab1 += np.random.normal(0,sigma,len(thetab1))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user