groups

name language licence
TClonesArray example C++ Other
Make command Other Other
Merging trees using a TChain C++ Other
Drawing a TTree Other Other
Sort a tree C++ Other
TTree Scan column size Other Other
Untitled Snippet Other Other
Remove ctrl-M line breaks Other Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >



language: C++
licence: Other

TClonesArray example

options: view full snippetsend to code collector
#include "TFile.h"
#include "TClonesArray.h"
#include "TH2.h"
#include "TLine.h"
#include "TTree.h"
#include "TBenchmark.h"
#include "TRandom.h"

void tclwrite(Int_t split)
{
// Generate a Tree with a TClonesArray
// The array can be split or not
   TFile f("tcl.root","recreate");
   f.SetCompressionLevel(1); //try level 2 also
   TTree T("T","test tcl");
	
(Continues...)