create account

RE: Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer by lemouth

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @samminator/re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180526t182652730z

· @lemouth ·
I don't know. I am not a windows user and I thus don't need any emulator. Please ask @effofex. He proposed something!
properties (22)
authorlemouth
permlinkre-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180526t224155641z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["effofex"],"app":"steemit/0.1"}
created2018-05-26 22:51:36
last_update2018-05-26 22:51:36
depth4
children8
last_payout2018-06-02 22:51:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length117
author_reputation338,011,164,701,274
root_title"Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id57,867,167
net_rshares0
@effofex ·
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.
properties (22)
authoreffofex
permlinkre-lemouth-re-samminator-re-lemouth-re-samminator-re-lemouth-particle-physics-utopian-detecting-particles-at-colliders-and-implementing-this-on-a-computer-20180529t014711327z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://hackmd.io/xXSEti6KRMCpERineQMMnQ"],"app":"steemit/0.1"}
created2018-05-29 01:47:12
last_update2018-05-29 01:47:12
depth5
children7
last_payout2018-06-05 01:47:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length237
author_reputation14,429,105,750,792
root_title"Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,200,901
net_rshares0
@lemouth · (edited)
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!
properties (22)
authorlemouth
permlinkre-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
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-05-30 09:22:21
last_update2018-05-30 09:29:15
depth6
children6
last_payout2018-06-06 09:22:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length299
author_reputation338,011,164,701,274
root_title"Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,413,888
net_rshares0
@effofex ·
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?
properties (22)
authoreffofex
permlinkre-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
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-06-01 04:03:12
last_update2018-06-01 04:03:12
depth7
children5
last_payout2018-06-08 04:03:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length275
author_reputation14,429,105,750,792
root_title"Particle physics @ Utopian - Detecting particles at colliders and implementing this on a computer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,697,960
net_rshares0