Fork me on GitHub

Changeset d870fc5 in git for examples/Example3.C


Ignore:
Timestamp:
Dec 21, 2014, 4:03:35 PM (10 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
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.
Message:

Merge remote-tracking branch 'upstream/master'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Example3.C

    r7f12612 rd870fc5  
    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.