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.4 by lethuill, Mon Dec 15 19:08:52 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 131 | Line 131 | void MuonAnalyzer::Process(const edm::Ev
131                          {
132                                  // MC truth associator index
133                                  if ((patMuon->genParticleRef()).isNonnull()) {
134 <                                        localMuon.setMuonMCIndex((patMuon->genParticleRef()).index());
134 >                                        localMuon.setGenParticleIndex((patMuon->genParticleRef()).index());
135                                  } else {
136 <                                        localMuon.setMuonMCIndex(-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());
136 >                                        localMuon.setGenParticleIndex(-1);
137                                  }
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