Fork me on GitHub

Changeset 5babc8b in git for README_4LHCb


Ignore:
Timestamp:
Sep 1, 2014, 4:13:08 PM (10 years ago)
Author:
Michele <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
44cb6e4
Parents:
66b590f
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • README_4LHCb

    r66b590f r5babc8b  
    882) Simulate p p -> b b~ events
    99
    10    gunzip pp2pp.hep.gz
     10   tar xzvf  pp2pp.hep.tgz
    1111  ./DelphesSTDHEP examples/delphes_card_prelLHCb.tcl delphes_output.root pp2bb.hep
    1212
     
    123123    treeReader->ReadEntry(entry);
    124124 
    125     // If event contains at least 1 electron
     125    // If event contains at least 1 track
    126126    if(branchTrack->GetEntries() > 0)
    127127    {
    128       // Take first electron
     128      // Take first track
    129129      Track *track = (Track*) branchTrack->At(0);
    130130     
     
    132132      histTrackPT->Fill(track->PT);
    133133     
    134       // Print electron transverse momentum
    135       cout << track->PT << endl;
     134      // Print electron transverse momentum and Particle Data Group ID
     135      cout << track->PID<< "   " << track->PT << endl;
    136136    }
    137137
     
    139139
    140140  // Show resulting histograms
    141   histElectronPT->Draw();
     141  histTrackPT->Draw();
    142142}
    143143
Note: See TracChangeset for help on using the changeset viewer.