Changeset d870fc5 in git for examples/Example3.C
- Timestamp:
- Dec 21, 2014, 4:03:35 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- d77b51d
- Parents:
- 7f12612 (diff), e5767b57 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Example3.C
r7f12612 rd870fc5 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.