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