135 | | if(status == 1 || status == 2) |
| 135 | candidate = factory->NewCandidate(); |
| 136 | |
| 137 | candidate->PID = pid; |
| 138 | |
| 139 | candidate->Status = status; |
| 140 | |
| 141 | pdgParticle = pdg->GetParticle(pid); |
| 142 | candidate->Charge = pdgParticle ? Int_t(pdgParticle->Charge()/3.0) : -999; |
| 143 | candidate->Mass = pdgParticle ? pdgParticle->Mass() : -999.9; |
| 144 | |
| 145 | candidate->Momentum.SetPxPyPzE(px, py, pz, e); |
| 146 | |
| 147 | candidate->Position.SetXYZT(x, y, z, t); |
| 148 | |
| 149 | allParticleOutputArray->Add(candidate); |
| 150 | |
| 151 | if(!pdgParticle) return; |
| 152 | |
| 153 | if(status == 1) |
137 | | candidate = factory->NewCandidate(); |
138 | | |
139 | | candidate->PID = pid; |
140 | | |
141 | | candidate->Status = status; |
142 | | |
143 | | |
144 | | pdgParticle = pdg->GetParticle(fPID); |
145 | | candidate->Charge = pdgParticle ? Int_t(pdgParticle->Charge()/3.0) : -999; |
146 | | candidate->Mass = pdgParticle ? pdgParticle->Mass() : -999.9; |
147 | | |
148 | | candidate->Momentum.SetPxPyPzE(px, py, pz, e); |
149 | | |
150 | | candidate->Position.SetXYZT(x, y, z, t); |
151 | | |
152 | | allParticleOutputArray->Add(candidate); |
153 | | |
154 | | if(!pdgParticle) return; |
155 | | |
156 | | if(status == 1) |
157 | | { |
158 | | stableParticleOutputArray->Add(candidate); |
159 | | } |
160 | | else if(status == 2) |
161 | | { |
162 | | partonOutputArray->Add(candidate); |
163 | | } |
| 155 | stableParticleOutputArray->Add(candidate); |
| 156 | } |
| 157 | else if(status == 2) |
| 158 | { |
| 159 | partonOutputArray->Add(candidate); |