Changes in examples/Example3.C [fc4e460:fbb617b] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Example3.C
rfc4e460 rfbb617b 1 1 /* 2 3 2 This macro shows how to access the particle-level reference for reconstructed objects. 4 It is also shown how to loop over the jet constituents. 5 6 root -l examples/Example3.C \(\"delphes_output.root\"\)3 It is also shown how to loop over the jet constituents. 4 5 root -l examples/Example3.C'("delphes_output.root")' 7 6 */ 8 7 … … 183 182 } 184 183 185 // cout<<"-- New event -- "<<endl;184 // cout << "-- New event -- " << endl; 186 185 187 186 // Loop over all jets in event … … 192 191 momentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0); 193 192 194 // cout<<"Looping over jet constituents. Jet pt: "<<jet->PT<<", eta: "<<jet->Eta<<", phi: "<<jet->Phi<<endl;193 // cout<<"Looping over jet constituents. Jet pt: "<<jet->PT<<", eta: "<<jet->Eta<<", phi: "<<jet->Phi<<endl; 195 194 196 195 // Loop over all jet's constituents … … 205 204 { 206 205 particle = (GenParticle*) object; 207 // cout << " GenPart pt: " << particle->PT << ", eta: " << particle->Eta << ", phi: " << particle->Phi << endl;206 // cout << " GenPart pt: " << particle->PT << ", eta: " << particle->Eta << ", phi: " << particle->Phi << endl; 208 207 momentum += particle->P4(); 209 208 } … … 211 210 { 212 211 track = (Track*) object; 213 // cout << " Track pt: " << track->PT << ", eta: " << track->Eta << ", phi: " << track->Phi << endl;212 // cout << " Track pt: " << track->PT << ", eta: " << track->Eta << ", phi: " << track->Phi << endl; 214 213 momentum += track->P4(); 215 214 } … … 217 216 { 218 217 tower = (Tower*) object; 219 // cout << " Tower pt: " << tower->ET << ", eta: " << tower->Eta << ", phi: " << tower->Phi << endl;218 // cout << " Tower pt: " << tower->ET << ", eta: " << tower->Eta << ", phi: " << tower->Phi << endl; 220 219 momentum += tower->P4(); 221 220 }
Note:
See TracChangeset
for help on using the changeset viewer.