Skip to content

Commit 4ce7be5

Browse files
committed
Docs
1 parent fefcfa5 commit 4ce7be5

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

docs/images/mee.png

37.1 KB
Loading

docs/pages/example.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ int main() {
5353
}
5454
```
5555
56-
@section example-hww ggF HWW* (with systematic variations)
56+
@section example-hww ROOT TTree
5757
58-
- Simulated ggF HWW events: [ATLAS open data](https://opendata.cern.ch/record/3825).
59-
- ROOT extensions for queryosity: [AnalysisPlugins](https://github.com/taehyounpark/AnalysisPlugins)
58+
- Simulated ggF HWW* events: [ATLAS open data](https://opendata.cern.ch/record/3825).
59+
- ROOT extensions for queryosity: [queryosity-hep](https://github.com/taehyounpark/AnalysisPlugins)
6060
6161
1. Apply the MC event weight.
6262
2. Select entries for which there are exactly two opposite-sign leptons in the event.
@@ -163,9 +163,11 @@ mll_vars["lp4_up"]->Draw("same");
163163
```
164164
@image html mll_varied.png
165165

166-
@section example-phys DAOD_PHYS
166+
@section example-phys ATLAS DAOD_PHYS
167167

168-
- Note the manipulation of non-trivial data types (`xAOD::EventInfo`, `xAOD::MuonContainer`) as columns!
168+
1. Apply the MC event weight.
169+
2. Select for events with exactly 2 electrons with <i>p</i><sub>T</sub> > 10 GeV and <i>&eta;</i> < 2.4.
170+
3. Compute & plot their di-invariant mass, <i>m</i><sub>ee</sub>.
169171

170172
@cpp
171173
#include "qhep/Event.h"
@@ -240,8 +242,8 @@ protected:
240242
double m_eta_max;
241243
};
242244

243-
bool AtLeastTwoElectrons(ConstDataVector<xAOD::ElectronContainer> const &els) {
244-
return els.size() >= 2;
245+
bool TwoElectrons(ConstDataVector<xAOD::ElectronContainer> const &els) {
246+
return els.size() == 2;
245247
}
246248

247249
float DiElectronsMass(ConstDataVector<xAOD::ElectronContainer> const &els) {
@@ -266,7 +268,7 @@ void analyze(unsigned int n) {
266268
auto eventWeight = df.define(column::expression(EventWeight), eventInfo);
267269
auto atLeastTwoSelectedElectrons =
268270
df.weight(eventWeight)
269-
.filter(column::expression(AtLeastTwoElectrons), selectedElectrons);
271+
.filter(column::expression(TwoElectrons), selectedElectrons);
270272

271273
auto selectedElectronsPtHist =
272274
df.make(query::plan<Hist<1,float>>("diElectronMass", 100, 0, 500))
@@ -275,7 +277,7 @@ void analyze(unsigned int n) {
275277

276278
selectedElectronsPtHist->Draw();
277279
gPad->SetLogy();
278-
gPad->Print("el_pts.pdf");
280+
gPad->Print("mee.pdf");
279281
}
280282

281283
int main(int argc, char *argv[]) {
@@ -291,7 +293,12 @@ int main(int argc, char *argv[]) {
291293
}
292294
@endcpp
293295

294-
@image html muons_pt.png
296+
@image html mee.png
297+
298+
@out
299+
elapsed time (1 threads) = 63.0538s
300+
elapsed time (10 threads) = 10.4677s
301+
@endout
295302

296303
@section example-task7 IRIS-HEP ADL benchmark
297304

0 commit comments

Comments
 (0)