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

Comparing UserCode/Morgan/src/MuonAnalyzer.cc (file contents):
Revision 1.5 by lethuill, Wed Dec 17 16:23:49 2008 UTC vs.
Revision 1.6 by lethuill, Fri Dec 19 12:26:01 2008 UTC

# Line 57 | Line 57 | void MuonAnalyzer::Process(const edm::Ev
57                          ,muon->vx()
58                          ,muon->vy()
59                          ,muon->vz()
60 <                        ,13
60 >                        ,muon->pdgId()
61                          ,muon->charge()
62                  );
63  
# Line 135 | Line 135 | void MuonAnalyzer::Process(const edm::Ev
135                                  } else {
136                                          localMuon.setGenParticleIndex(-1);
137                                  }
138
139                                if ( patMuon->genLepton() != NULL ) {
140                                        localMuon.setMomentumMCMuon(patMuon->genLepton()->px(),patMuon->genLepton()->py(),patMuon->genLepton()->pz(),patMuon->genLepton()->energy());
141                                        localMuon.setVertexMCMuon(TVector3(patMuon->genLepton()->vx(),patMuon->genLepton()->vy(),patMuon->genLepton()->vz()));
142                                        localMuon.setPdgIdMCMuon(patMuon->genLepton()->pdgId());
143                                }
138                          }
139                  }
140 <                
140 >
141                  new( (*rootMuons)[j] ) TRootMuon(localMuon);
142                  if(verbosity_>2) cout << "   ["<< setw(3) << j << "] " << localMuon << endl;
143          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines