17#ifndef CLONESA_EVENT_SECOND_RUN
23#define CLONESA_EVENT_SECOND_RUN yes
25 gROOT->ProcessLine(
"clonesA_Event(true)");
33 if (
gROOT->GetVersionInt() < 30503 ) {
34 cout <<
"Works only with ROOT version >= 3.05/03" << endl;
37 if (
gROOT->GetVersionDate() < 20030406 ) {
38 cout <<
"Works only with ROOT CVS version after 5. 4. 2003" << endl;
43 TFile *
hfile =
new TFile(
"clonesA_Event.root",
"RECREATE",
"Test TClonesArray");
44 TTree *
tree =
new TTree(
"clonesA_Event",
"An example of a ROOT tree");
47 tree->Branch(
"top1",
"TUsrSevtData1",&
event1,8000,99);
48 tree->Branch(
"top2",
"TUsrSevtData2",&
event2,8000,99);
50 cout <<
"event " <<
ev << endl;
73 cout <<
"Pileup event1: " <<
event1->GetPileup() << endl;
74 cout <<
"Pileup event2: " <<
event2->GetPileup() << endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
A TTree represents a columnar dataset.