ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/src/JetAnalyzer.cc
(Generate patch)

Comparing UserCode/Morgan/src/JetAnalyzer.cc (file contents):
Revision 1.7 by lethuill, Wed Mar 11 12:44:56 2009 UTC vs.
Revision 1.8 by lethuill, Tue Apr 7 17:09:06 2009 UTC

# Line 246 | Line 246 | void JetAnalyzer::Process(const edm::Eve
246                                          localJet.setGenParticleIndex(-1);
247                                  }
248  
249                                // Matched generated jet
250                                // FIXME - Keep genJet index or UID instead
251                                // genJet stocked in MCParticles branch
252                                /*
253                                if ( patJet->genJet() != NULL )
254                                {
255                                        localJet.setMomentumMCJet(TLorentzVector(patJet->genJet()->px(),patJet->genJet()->py(),patJet->genJet()->pz(),patJet->genJet()->energy()));
256                                        localJet.setVertexMCJet(TVector3(patJet->genJet()->vx(),patJet->genJet()->vy(),patJet->genJet()->vz() ));
257                                        localJet.setPdgIdMCJet(patJet->genJet()->pdgId());
258                                }
259                                */
260
249                                  // check if jet comes from a top
250                                  bool IsTopJet =  false;
251                                  if(patJet->genParton())
# Line 277 | Line 265 | void JetAnalyzer::Process(const edm::Eve
265                                          }
266                                  }
267                                  localJet.setIsTopJet(IsTopJet);
268 +
269 +                                // Matched generated jet
270 +                                if ( patJet->genJet() != NULL )
271 +                                {
272 +                                        localJet.setGenJetEnergy( patJet->genJet()->energy() );
273 +                                }
274 +
275                          }
276                  }
277  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines