Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Example3.C

    rfc4e460 rfbb617b  
    11/*
    2 
    32This 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\"\)
     3It is also shown how to loop over the jet constituents.
     4
     5root -l examples/Example3.C'("delphes_output.root")'
    76*/
    87
     
    183182    }
    184183
    185   //  cout<<"--  New event -- "<<endl;
     184    // cout << "--  New event -- " << endl;
    186185
    187186    // Loop over all jets in event
     
    192191      momentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0);
    193192
    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;
    195194
    196195      // Loop over all jet's constituents
     
    205204        {
    206205          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;
    208207          momentum += particle->P4();
    209208        }
     
    211210        {
    212211          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;
    214213          momentum += track->P4();
    215214        }
     
    217216        {
    218217          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;
    220219          momentum += tower->P4();
    221220        }
Note: See TracChangeset for help on using the changeset viewer.