Fork me on GitHub

Changeset fbb617b in git for examples/Example3.C


Ignore:
Timestamp:
Dec 14, 2014, 12:06:59 AM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
cf1ff2c
Parents:
57e1804
Message:

improve formatting and remove trailing spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Example3.C

    r57e1804 rfbb617b  
    11/*
    22This macro shows how to access the particle-level reference for reconstructed objects.
    3 It is also shown how to loop over the jet constituents. 
     3It is also shown how to loop over the jet constituents.
    44
    55root -l examples/Example3.C'("delphes_output.root")'
     
    182182    }
    183183
    184   //  cout<<"--  New event -- "<<endl;
     184    // cout << "--  New event -- " << endl;
    185185
    186186    // Loop over all jets in event
     
    191191      momentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0);
    192192
    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;
    194194
    195195      // Loop over all jet's constituents
     
    204204        {
    205205          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;
    207207          momentum += particle->P4();
    208208        }
     
    210210        {
    211211          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;
    213213          momentum += track->P4();
    214214        }
     
    216216        {
    217217          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;
    219219          momentum += tower->P4();
    220220        }
Note: See TracChangeset for help on using the changeset viewer.