Changeset cc8716b in git for classes/DelphesHepMC2Reader.cc
- Timestamp:
- Mar 7, 2022, 8:51:45 PM (3 years ago)
- Branches:
- master
- Children:
- 7dbc149
- Parents:
- 4e8e72b
- git-author:
- Christinaw97 <cwang5@…> (03/07/22 20:51:45)
- git-committer:
- GitHub <noreply@…> (03/07/22 20:51:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesHepMC2Reader.cc
r4e8e72b rcc8716b 438 438 { 439 439 Candidate *candidate; 440 Candidate *candidateDaughter; 440 441 map<int, pair<int, int> >::iterator itMotherMap; 441 442 map<int, pair<int, int> >::iterator itDaughterMap; … … 446 447 candidate = static_cast<Candidate *>(allParticleOutputArray->At(i)); 447 448 449 448 450 if(candidate->M1 > 0) 449 451 { … … 477 479 candidate->D1 = -1; 478 480 candidate->D2 = -1; 479 } 481 const TLorentzVector &decayPosition = candidate->Position; 482 candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position 483 } 480 484 else 481 485 { 482 486 candidate->D1 = itDaughterMap->second.first; 483 487 candidate->D2 = itDaughterMap->second.second; 484 } 485 } 486 } 487 } 488 489 //--------------------------------------------------------------------------- 488 candidateDaughter = static_cast<Candidate *>(allParticleOutputArray->At(candidate->D1)); 489 const TLorentzVector &decayPosition = candidateDaughter->Position; 490 candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position 491 492 493 } 494 } 495 } 496 } 497 498 //---------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.