Viewing a response to: @lemouth/re-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180526t224155641z
Early [draft is up at hackmd](https://hackmd.io/xXSEti6KRMCpERineQMMnQ), haven't put it up on the blockchain yet since I am seeing it it's appropriate as a utopian.io tutorial first. Also sent you a pull request with my edited cpp file.
author | effofex |
---|---|
permlink | re-lemouth-re-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180529t014711327z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https://hackmd.io/xXSEti6KRMCpERineQMMnQ"],"app":"steemit/0.1"} |
created | 2018-05-29 01:47:12 |
last_update | 2018-05-29 01:47:12 |
depth | 5 |
children | 7 |
last_payout | 2018-06-05 01:47:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 237 |
author_reputation | 14,429,105,750,792 |
root_title | "Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,200,901 |
net_rshares | 0 |
I noticed :) This statement ```if (0 != event.mc())``` is not necessary. You are not using at all the ```event.mc()``` properties. You may however want to add a protection (in case of an empty event record). In this case, you should use: ``` if (event.rec()==0) return true; ``` Hope this helps!
author | lemouth |
---|---|
permlink | re-effofex-re-lemouth-re-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180530t092221498z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-05-30 09:22:21 |
last_update | 2018-05-30 09:29:15 |
depth | 6 |
children | 6 |
last_payout | 2018-06-06 09:22:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 299 |
author_reputation | 338,011,164,701,274 |
root_title | "Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,413,888 |
net_rshares | 0 |
Nice catch, that's what I get for looking at some of the example code in the comments. At one point, I *was* calling `event.mc()->processId()`, so I could've justified it. Which leads me to a question, I was getting all 0's for processId, do events have unique identifiers?
author | effofex |
---|---|
permlink | re-lemouth-re-effofex-re-lemouth-re-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180601t040314153z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-01 04:03:12 |
last_update | 2018-06-01 04:03:12 |
depth | 7 |
children | 5 |
last_payout | 2018-06-08 04:03:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 275 |
author_reputation | 14,429,105,750,792 |
root_title | "Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,697,960 |
net_rshares | 0 |
We have a unique data format dealing with many event formats. According to which class of event you have, some of the options may stay empty. I hope this clarifies.
author | lemouth |
---|---|
permlink | re-effofex-re-lemouth-re-effofex-re-lemouth-re-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180601t055737558z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-01 05:57:39 |
last_update | 2018-06-01 05:57:39 |
depth | 8 |
children | 4 |
last_payout | 2018-06-08 05:57:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 164 |
author_reputation | 338,011,164,701,274 |
root_title | "Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,708,824 |
net_rshares | 0 |