57 |
|
,muon->vx() |
58 |
|
,muon->vy() |
59 |
|
,muon->vz() |
60 |
< |
,13 |
60 |
> |
,muon->pdgId() |
61 |
|
,muon->charge() |
62 |
|
); |
63 |
|
|
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 |
|
} |