Changeset 5babc8b in git
- Timestamp:
- Sep 1, 2014, 4:13:08 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 44cb6e4
- Parents:
- 66b590f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
README_4LHCb
r66b590f r5babc8b 8 8 2) Simulate p p -> b b~ events 9 9 10 gunzip pp2pp.hep.gz10 tar xzvf pp2pp.hep.tgz 11 11 ./DelphesSTDHEP examples/delphes_card_prelLHCb.tcl delphes_output.root pp2bb.hep 12 12 … … 123 123 treeReader->ReadEntry(entry); 124 124 125 // If event contains at least 1 electron125 // If event contains at least 1 track 126 126 if(branchTrack->GetEntries() > 0) 127 127 { 128 // Take first electron128 // Take first track 129 129 Track *track = (Track*) branchTrack->At(0); 130 130 … … 132 132 histTrackPT->Fill(track->PT); 133 133 134 // Print electron transverse momentum 135 cout << track->P T << endl;134 // Print electron transverse momentum and Particle Data Group ID 135 cout << track->PID<< " " << track->PT << endl; 136 136 } 137 137 … … 139 139 140 140 // Show resulting histograms 141 hist ElectronPT->Draw();141 histTrackPT->Draw(); 142 142 } 143 143
Note:
See TracChangeset
for help on using the changeset viewer.