Changeset fbb617b in git for examples/Example3.C
- Timestamp:
- Dec 14, 2014, 12:06:59 AM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- cf1ff2c
- Parents:
- 57e1804
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Example3.C
r57e1804 rfbb617b 1 1 /* 2 2 This macro shows how to access the particle-level reference for reconstructed objects. 3 It is also shown how to loop over the jet constituents. 3 It is also shown how to loop over the jet constituents. 4 4 5 5 root -l examples/Example3.C'("delphes_output.root")' … … 182 182 } 183 183 184 // cout<<"-- New event -- "<<endl;184 // cout << "-- New event -- " << endl; 185 185 186 186 // Loop over all jets in event … … 191 191 momentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0); 192 192 193 // 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; 194 194 195 195 // Loop over all jet's constituents … … 204 204 { 205 205 particle = (GenParticle*) object; 206 // 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; 207 207 momentum += particle->P4(); 208 208 } … … 210 210 { 211 211 track = (Track*) object; 212 // 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; 213 213 momentum += track->P4(); 214 214 } … … 216 216 { 217 217 tower = (Tower*) object; 218 // 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; 219 219 momentum += tower->P4(); 220 220 }
Note:
See TracChangeset
for help on using the changeset viewer.