| name | language | licence |
|---|---|---|
| MCEvents tree simple analysis | C++ | Other |
| Figures | Latex | Other |
| Find command | Shell | Other |
| Find out linux installation version from command line | Shell | Other |
| Find out processor info from command line | Shell | Other |
| Find out user groups from the command line | Shell | Other |
| Fitting to functions | C++ | Other |
| For the start of a PERL file | Perl | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >
language: C++
licence: Other
MCEvents tree simple analysis
options: view full snippet • send to code collector
#include "iomanip.h"
// _____________________________________________________________________________
void MCEvents() {
TString path = "../output/neutron_0.root";
TFile * f = new TFile(path);
TTree * mc = (TTree*)f->Get("MCEvents");
QMCEvent * event = new QMCEvent();
mc->SetBranchAddress("MCEvents",&event);
Int_t entries = (Int_t)mc->GetEntries();



library
latex (12)