-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
180 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// ninja && clas-stringspinner --seed 29877 --trig 10000 --config beam_test --cut-inclusive 11,211,-211|grep M_X| awk '{print $2}' > output.dat | ||
void draw_mx(TString file_name = "build/output.dat") { | ||
auto tr = new TTree(); | ||
tr->ReadFile(file_name, "mx/D"); | ||
new TCanvas(); | ||
tr->Draw("mx"); | ||
new TCanvas(); | ||
auto mx_dist = new TH1D("mx_dist","m_x",200,0,2); | ||
tr->Project("mx_dist", "mx"); | ||
mx_dist->Draw(); | ||
mx_dist->Fit("gaus","","",0.8,0.95); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "src/common.h" | ||
static void config_beam_test(Pythia8::Pythia& pyth) { | ||
|
||
// the beams are back-to-back, but with different energies; this is the recommended setting for fixed target | ||
set_config(pyth, "Beams:frameType = 2"); | ||
|
||
// interaction mechanism: $\gamma*/Z^0$ $t$-channel exchange, with full interference between $\gamma*$ and $Z^0$ | ||
set_config(pyth, "WeakBosonExchange:ff2ff(t:gmZ) = on"); | ||
|
||
// phase-space cuts | ||
set_config(pyth, "PhaseSpace:Q2Min = 1.0"); // minimum Q^2 | ||
set_config(pyth, "PhaseSpace:mHatMin = 0.0"); // minimum invariant mass (for low-x) | ||
|
||
// set dipole recoil; turning this on doesn't appear to change the kinematic distributions noticeably | ||
set_config(pyth, "SpaceShower:dipoleRecoil = off"); | ||
|
||
// handle event printouts | ||
set_config(pyth, "Next:numberShowInfo = 0"); | ||
set_config(pyth, "Next:numberShowProcess = 0"); | ||
set_config(pyth, "Next:numberShowEvent = 0"); | ||
|
||
} |