Changes between Version 1 and Version 2 of Ticket #852, comment 9
- Timestamp:
- Nov 18, 2016, 1:25:33 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #852, comment 9
v1 v2 3 3 Thus in order to include new particles with pdg's not mentioned in the root record (pdg_table.txt), I have to remove this line if(!pdgParticle) and make, to avoid the particle being rejected? 4 4 Can a condition like the following can be used? 5 5 {{{ 6 6 if(!pdgParticle or pid!=47 ) continue; 7 }}} 7 8 (here 47 is the pid of the new particle I am using). 8 9 9 10 and also assign the candidate charge and mass by hand? (equivalent to this block: 10 11 12 13 14 11 {{{ 12 pdgParticle = fPDG->GetParticle(fPID); 13 candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999; 14 candidate->Mass = fMass; 15 }}} 15 16 16 17