@@ -53,10 +53,10 @@ int main() {
53
53
}
54
54
```
55
55
56
- @section example-hww ggF HWW* (with systematic variations)
56
+ @section example-hww ROOT TTree
57
57
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)
60
60
61
61
1. Apply the MC event weight.
62
62
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");
163
163
```
164
164
@image html mll_varied.png
165
165
166
- @section example-phys DAOD_PHYS
166
+ @section example-phys ATLAS DAOD_PHYS
167
167
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 >.
169
171
170
172
@cpp
171
173
#include "qhep/Event.h"
@@ -240,8 +242,8 @@ protected:
240
242
double m_eta_max;
241
243
};
242
244
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;
245
247
}
246
248
247
249
float DiElectronsMass(ConstDataVector< xAOD::ElectronContainer > const &els) {
@@ -266,7 +268,7 @@ void analyze(unsigned int n) {
266
268
auto eventWeight = df.define(column::expression(EventWeight), eventInfo);
267
269
auto atLeastTwoSelectedElectrons =
268
270
df.weight(eventWeight)
269
- .filter(column::expression(AtLeastTwoElectrons ), selectedElectrons);
271
+ .filter(column::expression(TwoElectrons ), selectedElectrons);
270
272
271
273
auto selectedElectronsPtHist =
272
274
df.make(query::plan<Hist<1,float>>("diElectronMass", 100, 0, 500))
@@ -275,7 +277,7 @@ void analyze(unsigned int n) {
275
277
276
278
selectedElectronsPtHist->Draw();
277
279
gPad->SetLogy();
278
- gPad->Print("el_pts .pdf");
280
+ gPad->Print("mee .pdf");
279
281
}
280
282
281
283
int main(int argc, char * argv[ ] ) {
@@ -291,7 +293,12 @@ int main(int argc, char *argv[]) {
291
293
}
292
294
@endcpp
293
295
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
295
302
296
303
@section example-task7 IRIS-HEP ADL benchmark
297
304
0 commit comments