92 return StatusCode::FAILURE;
100 newParticleCollection->setStore( newParticleAuxCollection );
104 unsigned int nParticles = importedTruthParticles->
size();
119 entries = m_parser->evaluateAsVector();
121 if (nParticles !=
entries.size() ) {
122 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string used TruthParticles?");
123 return StatusCode::FAILURE;
126 for (
unsigned int i=0;
i<nParticles; ++
i) {
141 if (
MC::isW(parentPDGID) && parentMass < 20){
158 if (mcount > 10 || !
MC::isW(mother_hold)){
177 newParticleCollection->
push_back( xTruthParticle );
181 float mothermass = 0.;
185 motherPDGid = mother_hold->
pdgId();
186 mothermass = mother_hold->
p4().M()/1000.;
197 motherPDGid = mother_hold->
pdgId();
198 mothermass = mother_hold->
p4().M()/1000.;
202 *xTruthParticle=*theParticle;
204 originDecorator(*xTruthParticle) = motherPDGid;
205 typeDecorator(*xTruthParticle) = motherBarcode;
206 typeDecoratorMass(*xTruthParticle) = mothermass;
262 tauprongDecorator(*xTruthParticle) = nprong;
263 tautypeDecorator(*xTruthParticle) = islep;
270 for (
unsigned int i=0;
i<nParticles; ++
i){
274 return StatusCode::SUCCESS;