Changes in / [5175bbe:5198eed] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
readers/DelphesCMSFWLite.cpp
r5175bbe r5198eed 67 67 TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray) 68 68 { 69 70 69 fwlite::Handle< GenEventInfoProduct > handleGenEventInfo; 70 71 71 fwlite::Handle< LHEEventProduct > handleLHEEvent; 72 72 73 fwlite::Handle< vector< reco::GenParticle > > handleParticle; 73 74 74 vector< reco::GenParticle >::const_iterator itParticle; 75 75 … … 78 78 79 79 handleGenEventInfo.getByLabel(event, "generator"); 80 81 if (!((handleLHEEvent.getBranchNameFor(event, "source")).empty())) 82 { 83 handleLHEEvent.getByLabel(event, "source"); 84 } 85 else if (!((handleLHEEvent.getBranchNameFor(event, "externalLHEProducer")).empty())) 86 { 87 handleLHEEvent.getByLabel(event, "externalLHEProducer"); 88 } 89 else 90 { 91 std::cout<<"Wrong LHEEvent Label! Please, check the input file."<<std::endl; 92 exit(-1); 93 } 94 95 if (!((handleParticle.getBranchNameFor(event, "genParticles")).empty())) 96 { 97 handleParticle.getByLabel(event, "genParticles"); 98 } 99 else if (!((handleParticle.getBranchNameFor(event, "prunedGenParticles")).empty())) 100 { 101 handleParticle.getByLabel(event, "prunedGenParticles"); 102 } 103 else 104 { 105 std::cout<<"Wrong GenParticle Label! Please, check the input file."<<std::endl; 106 exit(-1); 107 } 80 handleLHEEvent.getByLabel(event, "externalLHEProducer"); 81 handleParticle.getByLabel(event, "genParticles"); 108 82 109 83 HepMCEvent *element;
Note:
See TracChangeset
for help on using the changeset viewer.