![](https://cdn.steemitimages.com/DQmYuV5Q1CuPp7ScoCntrZ6MgUPptwhcXNzvQpmirKAUepe/image.png) [Image Credit: [CERN](https://home.cern/topics/large-hadron-collider)] #### Repository https://github.com/irelandscape/cern_contributions #### Introduction This post is my result of the exercise 1a submitted by @lemouth in his post [Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer](https://steemit.com/utopian-io/@lemouth/particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer#@irelandscape/re-mactro-re-irelandscape-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180525t124618611z) #### Post Body After following @lemouth instructions and implementing a one liner in the *Execute* method template, here is the output that I get. ```text root@lhc:~/madanalysis5/test_folder/Build# ./MadAnalysis5job ../Input/tth_aa.list * SampleAnalyzer for MadAnalysis 5 - Welcome. * Initializing all components - version: 1.6 (2018/05/04) - general: everything is default. - extracting the list of event samples... - analyzer 'test_analysis' BEGIN Initialization END Initialization * Running over files ... * 1/1 /root/cern_contributions/exercises/1a/tth_aa.root Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootTreeReader.h requested to autoload type ExRootTreeReader Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootTreeWriter.h requested to autoload type ExRootTreeWriter Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootTreeBranch.h requested to autoload type ExRootTreeBranch Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootResult.h requested to autoload type ExRootResult Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootClassifier.h requested to autoload type ExRootClassifier Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootFilter.h requested to autoload type ExRootFilter Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootProgressBar.h requested to autoload type ExRootProgressBar Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootConfReader.h requested to autoload type ExRootConfParam Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootConfReader.h requested to autoload type ExRootConfReader Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState: Missing FileEntry for ExRootAnalysis/ExRootTask.h requested to autoload type ExRootTask => file size: 943.63 ko WARNING: -------------------------------------------------------------------------------- WARNING: Msg | the input file has been produced with ROOT version 61000 whereas the loaded ROOT libs are related to the version 61206 WARNING: Details | WARNING: Where | Function = ReadHeader ; File=root/ROOTReader.cpp ; Line=70 WARNING: -------------------------------------------------------------------------------- => sample format: Delphes-ROOT file produced by Delphes + MA5tuned-cards. => progress: [===> ] Photons: 3, Electrons: 0, Muons: 0 => progress: [======> ] Photons: 3, Electrons: 0, Muons: 0 => progress: [==========> ] Photons: 3, Electrons: 2, Muons: 1Thank you for => progress: [=============> ] Photons: 1, Electrons: 0, Muons: 1 => progress: [=================> ] Photons: 4, Electrons: 0, Muons: 0 => progress: [====================> ] Photons: 3, Electrons: 0, Muons: 1 => progress: [========================> ] Photons: 4, Electrons: 0, Muons: 0 => progress: [===========================> ] Photons: 4, Electrons: 1, Muons: 0 => progress: [===============================> ] Photons: 3, Electrons: 0, Muons: 0 => progress: [==================================>] Photons: 6, Electrons: 1, Muons: 0 => progress: [===================================] => total number of events: 10 ( analyzed: 10 ; skipped: 0 ) * Finalizing all components ... * Total number of processed events: 10. BEGIN Finalization END Finalization +----------------------------------------------------------------------------------------------------------------------+ | LogReport-Warning | +----------------------------------------------------------------------------------------------------------------------+ | Message NIterations @ File Line | |----------------------------------------------------------------------------------------------------------------------| | the input file has been produced with ROOT v 1 root/ROOTReader.cpp 70 | +----------------------------------------------------------------------------------------------------------------------+ * Goodbye. ``` As you can see the program appears to run properly but some errors are reported at startup. Please let me know in your comments if you know what the problem might be. The code couldn't be any simpler: ```cpp bool test_analysis::Execute(SampleFormat& sample, const EventFormat& event) { cout << "Photons: " << event.rec()->photons().size() << ", " << "Electrons: " << event.rec()->electrons().size() << ", " << "Muons: " << event.rec()->muons().size() << endl; ... } ``` #### Resources * [Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer](https://steemit.com/utopian-io/@lemouth/particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer#@irelandscape/re-mactro-re-irelandscape-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180525t124618611z), by @lemouth #### Series Backlinks This is the first post in this series.
post_id | 50,238,574 |
---|---|
author | irelandscape |
permlink | particle-physics-lemouth-exercise-1a |
category | utopian-io |
json_metadata | "{"format": "markdown", "image": ["https://cdn.steemitimages.com/DQmYuV5Q1CuPp7ScoCntrZ6MgUPptwhcXNzvQpmirKAUepe/image.png"], "links": ["https://home.cern/topics/large-hadron-collider", "https://github.com/irelandscape/cern_contributions", "https://steemit.com/utopian-io/@lemouth/particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer#@irelandscape/re-mactro-re-irelandscape-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180525t124618611z"], "app": "steemit/0.1", "tags": ["utopian-io", "steemstem", "cern", "programming", "physics"], "users": ["lemouth"]}" |
created | 2018-05-25 13:06:12 |
last_update | 2018-05-25 13:08:12 |
depth | 0 |
children | 9 |
net_rshares | 2,548,292,900,634 |
last_payout | 2018-06-01 13:06:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 7.604 SBD |
curator_payout_value | 2.147 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 6,602 |
author_reputation | 15,369,745,159,352 |
root_title | "Particle Physics - @lemouth exercise 1a" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lafona-miner | 0 | 420,975,602,949 | 20% | ||
kevinwong | 0 | 190,948,991,509 | 3% | ||
justtryme90 | 0 | 505,573,744,393 | 20% | ||
herverisson | 0 | 30,946,263,070 | 16% | ||
arconite | 0 | 904,896,734 | 1.5% | ||
lemouth | 0 | 99,599,644,555 | 20% | ||
rjbauer85 | 0 | 1,236,812,359 | 20% | ||
anarchyhasnogods | 0 | 39,715,407,147 | 12% | ||
yuxi | 0 | 2,259,367,460 | 10% | ||
steemstem | 0 | 535,039,400,996 | 20% | ||
foundation | 0 | 2,767,169,257 | 20% | ||
the-devil | 0 | 2,624,025,686 | 20% | ||
thevenusproject | 0 | 11,194,859,648 | 20% | ||
borislavzlatanov | 0 | 1,632,207,765 | 20% | ||
jamhuery | 0 | 2,169,184,299 | 20% | ||
jade56 | 0 | 462,646,274 | 10% | ||
mobbs | 0 | 36,457,397,972 | 12% | ||
kryzsec | 0 | 12,212,408,137 | 20% | ||
nedspeaks | 0 | 4,292,639,551 | 20% | ||
fredrikaa | 0 | 45,559,090,410 | 10% | ||
samminator | 0 | 8,375,868,817 | 20% | ||
dber | 0 | 5,285,825,768 | 20% | ||
kerriknox | 0 | 37,481,362,764 | 20% | ||
alexander.alexis | 0 | 3,118,031,233 | 10% | ||
blessing97 | 0 | 852,243,029 | 20% | ||
saunter | 0 | 7,373,108,154 | 20% | ||
rockeynayak | 0 | 122,182,067 | 20% | ||
ertwro | 0 | 8,285,149,229 | 20% | ||
juanjdiaz89 | 0 | 477,003,675 | 20% | ||
nitesh9 | 0 | 5,010,391,045 | 20% | ||
fancybrothers | 0 | 2,672,681,224 | 6% | ||
churchboy | 0 | 3,561,869,225 | 20% | ||
himal | 0 | 1,541,806,422 | 20% | ||
abigail-dantes | 0 | 323,238,903,129 | 20% | ||
suravsingh | 0 | 265,182,589 | 20% | ||
planetenamek | 0 | 3,261,105,381 | 10% | ||
mountain.phil28 | 0 | 3,601,616,416 | 25% | ||
tanyaschutte | 0 | 167,005,646 | 2% | ||
zest | 0 | 5,711,764,350 | 14% | ||
felixrodriguez | 0 | 525,127,829 | 10% | ||
masterwriter | 0 | 729,027,350 | 20% | ||
nurhayati | 0 | 141,642,223 | 1.5% | ||
laylahsophia | 0 | 4,667,056,764 | 20% | ||
ksolymosi | 0 | 4,057,245,318 | 20% | ||
simplifylife | 0 | 2,880,566,688 | 10% | ||
damzxyno | 0 | 77,163,276 | 4% | ||
mayowadavid | 0 | 1,188,240,828 | 10% | ||
zeeshan003 | 0 | 340,411,158 | 20% | ||
enzor | 0 | 363,233,586 | 10% | ||
carloserp-2000 | 0 | 4,003,936,204 | 20% | ||
rachelsmantra | 0 | 858,236,329 | 20% | ||
osama-rodriguez4 | 0 | 130,828,697 | 10% | ||
gra | 0 | 7,009,862,368 | 20% | ||
ifartrainbows | 0 | 146,111,266 | 5% | ||
exercisinghealth | 0 | 3,358,866,651 | 20% | ||
sci-guy | 0 | 53,286,920 | 20% | ||
vinxy | 0 | 97,654,736 | 20% | ||
steemitstats | 0 | 3,267,797,450 | 5% | ||
physics.benjamin | 0 | 615,628,859 | 20% | ||
kenadis | 0 | 5,436,523,442 | 20% | ||
amavi | 0 | 3,123,437,227 | 4% | ||
florae | 0 | 892,317,406 | 20% | ||
robotics101 | 0 | 719,188,746 | 16% | ||
tristan-muller | 0 | 141,502,327 | 20% | ||
joeycrack | 0 | 156,666,549 | 10% | ||
fejiro | 0 | 191,722,454 | 10% | ||
aamin | 0 | 276,520,865 | 10% | ||
sco | 0 | 4,755,284,010 | 12% | ||
adetola | 0 | 1,279,282,657 | 20% | ||
rharphelle | 0 | 1,134,877,134 | 25% | ||
gordon92 | 0 | 143,965,879 | 1.5% | ||
dysfunctional | 0 | 1,011,435,510 | 10% | ||
r351574nc3 | 0 | 619,495,364 | 1% | ||
whileponderin | 0 | 1,311,684,506 | 20% | ||
mittymartz | 0 | 157,421,249 | 10% | ||
hadji | 0 | 1,061,407,810 | 20% | ||
sakura1012 | 0 | 739,706,228 | 20% | ||
peppermint24 | 0 | 58,428,926 | 0.21% | ||
terrylovejoy | 0 | 8,151,907,263 | 20% | ||
rbm | 0 | 1,238,183,790 | 50% | ||
saunter-pl | 0 | 345,283,133 | 20% | ||
steepup | 0 | 233,350,958 | 8% | ||
lesshorrible | 0 | 3,558,314,034 | 20% | ||
rionpistorius | 0 | 242,387,586 | 10% | ||
steem-hikers | 0 | 376,869,647 | 20% | ||
deutsch-boost | 0 | 455,794,801 | 20% | ||
kingabesh | 0 | 325,085,408 | 10% | ||
kelos | 0 | 306,472,708 | 10% | ||
dexterdev | 0 | 1,878,657,647 | 20% | ||
ugonma | 0 | 435,121,901 | 20% | ||
ajpacheco1610 | 0 | 171,491,194 | 10% | ||
alexdory | 0 | 4,155,742,017 | 20% | ||
lianaakobian | 0 | 3,815,588,753 | 16% | ||
procrastilearner | 0 | 30,017,025,527 | 100% | ||
croctopus | 0 | 1,171,306,507 | 100% | ||
anyes2013 | 0 | 151,415,841 | 10% | ||
salty-mcgriddles | 0 | 769,267,721 | 0.9% | ||
spederson | 0 | 361,887,341 | 18% | ||
pynchon | 0 | 146,522,985 | 100% | ||
effofex | 0 | 203,055,588 | 10% | ||
mrbreeziewrites | 0 | 743,278,961 | 20% | ||
count-antonio | 0 | 52,080,676 | 10% | ||
de-stem | 0 | 7,840,267,676 | 18% | ||
derbesserwisser | 0 | 3,545,119,881 | 100% | ||
yann85 | 0 | 737,850,311 | 30% | ||
ari16 | 0 | 85,974,510 | 10% | ||
event-horizon | 0 | 119,125,305 | 20% | ||
realblockchain | 0 | 2,517,322,727 | 50% | ||
chloroform | 0 | 2,385,212,268 | 20% | ||
vanessahampton | 0 | 879,178,096 | 10% | ||
temitayo-pelumi | 0 | 944,792,423 | 20% | ||
beautyinscience | 0 | 61,251,219 | 10% | ||
star-vc | 0 | 307,023,902 | 20% | ||
communityisyou | 0 | 88,812,438 | 20% | ||
exifr | 0 | 269,610,342 | 5% | ||
biomimi | 0 | 223,326,347 | 40% | ||
conficker | 0 | 1,010,877,527 | 100% | ||
qurator-tier-1-2 | 0 | 43,056,978,593 | 4% | ||
exifr0 | 0 | 149,210,396 | 5% | ||
testomilian | 0 | 67,221,563 | 10.8% |
Yes, this was very simple and you did it in the most compact possible way. However, I want to move slowly as I have no clue about the level of everyone. The next exercise will be slightly harder ;)
post_id | 50,285,562 |
---|---|
author | lemouth |
permlink | re-irelandscape-particle-physics-lemouth-exercise-1a-20180525t191738077z |
category | utopian-io |
json_metadata | "{"tags": ["utopian-io"], "app": "steemit/0.1"}" |
created | 2018-05-25 19:18:00 |
last_update | 2018-05-25 19:18:00 |
depth | 1 |
children | 8 |
net_rshares | 3,008,216,178 |
last_payout | 2018-06-01 19:18:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 197 |
author_reputation | 178,283,483,453,967 |
root_title | "Particle Physics - @lemouth exercise 1a" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
irelandscape | 0 | 3,008,216,178 | 100% |
Of course. That makes sense.
post_id | 50,294,134 | ||||||
---|---|---|---|---|---|---|---|
author | irelandscape | ||||||
permlink | re-lemouth-2018525t213927745z | ||||||
category | utopian-io | ||||||
json_metadata | "{"format": "markdown+html", "community": "esteem", "app": "esteem/1.6.0", "tags": ["utopian-io"]}" | ||||||
created | 2018-05-25 20:39:30 | ||||||
last_update | 2018-05-25 20:39:30 | ||||||
depth | 2 | ||||||
children | 7 | ||||||
net_rshares | 0 | ||||||
last_payout | 2018-06-01 20:39:30 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 SBD | ||||||
curator_payout_value | 0.000 SBD | ||||||
pending_payout_value | 0.000 SBD | ||||||
promoted | 0.000 SBD | ||||||
body_length | 28 | ||||||
author_reputation | 15,369,745,159,352 | ||||||
root_title | "Particle Physics - @lemouth exercise 1a" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||
percent_steem_dollars | 10,000 |
Update: I have created [this github repository](https://github.com/BFuks/mad5-utopian-exercises) to store all contributions. Can you please add yours following the ```ex1a-irelandscape.cpp``` syntax (I only need the c++ file)? Thanks in advance!
post_id | 50,358,781 |
---|---|
author | lemouth |
permlink | re-irelandscape-re-lemouth-2018525t213927745z-20180526t090233693z |
category | utopian-io |
json_metadata | "{"tags": ["utopian-io"], "app": "steemit/0.1", "links": ["https://github.com/BFuks/mad5-utopian-exercises"]}" |
created | 2018-05-26 09:02:36 |
last_update | 2018-05-26 09:02:36 |
depth | 3 |
children | 6 |
net_rshares | 0 |
last_payout | 2018-06-02 09:02:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 245 |
author_reputation | 178,283,483,453,967 |
root_title | "Particle Physics - @lemouth exercise 1a" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |