Fork me on GitHub

Changes between Version 1 and Version 2 of Ticket #852, comment 9


Ignore:
Timestamp:
Nov 18, 2016, 1:25:33 PM (8 years ago)
Author:
Pavel Demin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #852, comment 9

    v1 v2  
    33   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? 
    44Can a condition like the following can be used?
    5 
     5{{{
    66if(!pdgParticle or pid!=47 ) continue; 
     7}}}
    78(here 47 is the pid of the new particle I am using).
    89
    910and also assign the candidate charge and mass by hand?  (equivalent to this block:
    10 
    11  pdgParticle = fPDG->GetParticle(fPID);
    12  candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
    13  candidate->Mass = fMass;
    14 
     11{{{
     12pdgParticle = fPDG->GetParticle(fPID);
     13candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
     14candidate->Mass = fMass;
     15}}}
    1516
    1617