69 TFile f(
"tree108.root",
"RECREATE");
72 TTree t4(
"t4",
"A Tree with Events");
78 t4.Branch(
"event_split", &event,16000,99);
79 t4.Branch(
"event_not_split", &event,16000,0);
91 event->SetType(etype);
92 event->SetHeader(
ev, 200, 960312,
random);
96 event->SetTemperature(
random + 20.);
137 auto event =
new Event();
141 auto branch =
t4->GetBranch(
"event_split");
142 branch->SetAddress(&event);
152 if (event->GetNtrack() > 587)
156 nb +=
t4->GetEntry(i);
167 if (
gROOT->IsBatch())
186 gROOT->ProcessLine(
".L " +
tutdir +
"/io/tree/Event.cxx+");
187 gROOT->ProcessLine(
"#define ACTUAL_RUN yes");
189 gROOT->ProcessLine(
"run()");
int Int_t
Signed integer 4 bytes (int)
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
float Float_t
Float 4 bytes (float)
long long Long64_t
Portable signed long integer 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
Using a TBrowser one can browse all ROOT objects.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
Double_t Rndm() override
Machine independent random number generator.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
A TTree represents a columnar dataset.