Skip to content

Commit b2a6384

Browse files
authored
Merge pull request #49 from eic/rahmans1-patch-1
How to obtain generated cross-section
2 parents b586f4f + 2e7ff22 commit b2a6384

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_documentation/faq.md

+15
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,18 @@ SIM.ui.commandsPreRun = []
130130
SIM.ui.commandsTerminate = []
131131
```
132132
and pass it via `--macroFile` option in your ddsim/npsim invocation.
133+
134+
**Q: How do I obtain the generated cross-section for a simulated dataset?**
135+
136+
Information of generated events can be found in the .hepmc3.tree.root files in /work/eic/EPIC/EVGEN. Here is an example on how to print out the cross section stored in the ROOT tree:
137+
```
138+
root -l -b -q root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/DIS/NC/18x275/minQ2=1/pythia8NCDIS_18x275_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1.hepmc3.tree.root -e 'hepmc3_tree->Scan("hepmc3_event.attribute_string", "hepmc3_event.attribute_id==0 && hepmc3_event.attribute_name ==\"GenCrossSection\"", "colsize=30", 1, hepmc3_tree->GetEntries()-1)'
139+
```
140+
Or:
141+
```
142+
TFile* file = TFile::Open("root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/DIS/NC/18x275/minQ2=1/pythia8NCDIS_18x275_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1.hepmc3.tree.root");
143+
144+
TTreeReader tree_reader("hepmc3_tree", file);
145+
tree->Scan("hepmc3_event.attribute_string", "hepmc3_event.attribute_id==0 && hepmc3_event.attribute_name ==\"GenCrossSection\"", "colsize=30", 1, tree->GetEntries()-1);
146+
```
147+
The “1” at the end of the file name indicates that these events are used in work/eic2/EPIC/RECO/24.06.0/epic_craterlake/DIS/NC/18x275/minQ2=1/pythia8NCDIS_18x275_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1.xxxx.hepmc3.tree.root

0 commit comments

Comments
 (0)