Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Example3.C

    rfbb617b rfc4e460  
    11/*
     2
    23This 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")'
     4It is also shown how to loop over the jet constituents. 
     5
     6root -l examples/Example3.C\(\"delphes_output.root\"\)
    67*/
    78
     
    182183    }
    183184
    184     // cout << "--  New event -- " << endl;
     185  //  cout<<"--  New event -- "<<endl;
    185186
    186187    // Loop over all jets in event
     
    191192      momentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0);
    192193
    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;     
    194195
    195196      // Loop over all jet's constituents
     
    204205        {
    205206          particle = (GenParticle*) object;
    206           // cout << "    GenPart pt: " << particle->PT << ", eta: " << particle->Eta << ", phi: " << particle->Phi << endl;
     207          //cout << "    GenPart pt: " << particle->PT << ", eta: " << particle->Eta << ", phi: " << particle->Phi << endl;
    207208          momentum += particle->P4();
    208209        }
     
    210211        {
    211212          track = (Track*) object;
    212           // cout << "    Track pt: " << track->PT << ", eta: " << track->Eta << ", phi: " << track->Phi << endl;
     213          //cout << "    Track pt: " << track->PT << ", eta: " << track->Eta << ", phi: " << track->Phi << endl;
    213214          momentum += track->P4();
    214215        }
     
    216217        {
    217218          tower = (Tower*) object;
    218           // cout << "    Tower pt: " << tower->ET << ", eta: " << tower->Eta << ", phi: " << tower->Phi << endl;
     219          //cout << "    Tower pt: " << tower->ET << ", eta: " << tower->Eta << ", phi: " << tower->Phi << endl;
    219220          momentum += tower->P4();
    220221        }
Note: See TracChangeset for help on using the changeset viewer.