| name | language | licence |
|---|---|---|
| Equation array | Latex | Other |
| enum - array of labelled values | C++ | Other |
| Print a TCut | C++ | Other |
| Reading and writing TEvent's | C++ | Other |
| Maximum for a histogram when plotting | C++ | Other |
| Untitled Snippet | Other | Other |
| Ternery operator / conditional expression | C++ | Other |
| Change user group of a file | Shell | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >
language: C++
licence: Other
Reading and writing TEvent's
options: view full snippet • send to code collector
#include "TFile.h"
#include "TTree.h"
#include "TBrowser.h"
#include "TH2.h"
#include "TRandom.h"
#include "TClassTable.h"
#include "TSystem.h"
#include "TROOT.h"
void tree4w() {
TFile f("tree4.root","RECREATE");
TTree t4("t4","A Tree with Events");
SEvent *event = new SEvent();
t4.Branch("event_split", &event,16000,99);



library
latex (12)