Changes in readers/DelphesCMSFWLite.cpp [0a836f2:480f9ed] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
readers/DelphesCMSFWLite.cpp
r0a836f2 r480f9ed 67 67 TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray) 68 68 { 69 69 70 fwlite::Handle< GenEventInfoProduct > handleGenEventInfo; 70 71 71 fwlite::Handle< LHEEventProduct > handleLHEEvent; 72 73 72 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 handleLHEEvent.getByLabel(event, "externalLHEProducer"); 81 handleParticle.getByLabel(event, "genParticles"); 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 } 82 108 83 109 HepMCEvent *element;
Note:
See TracChangeset
for help on using the changeset viewer.