17#ifndef CLONESA_EVENT_SECOND_RUN
23 gROOT->ProcessLine(
TString(
".L ") + dir +
"/clones_event.cxx+");
24#define CLONESA_EVENT_SECOND_RUN yes
26 gROOT->ProcessLine(
"tree131_clones_event(true)");
34 if (
gROOT->GetVersionInt() < 30503 ) {
35 std::cout <<
"Works only with ROOT version >= 3.05/03" << std::endl;
38 if (
gROOT->GetVersionDate() < 20030406 ) {
39 std::cout <<
"Works only with ROOT CVS version after 5. 4. 2003" << std::endl;
44 auto hfile =
TFile::Open(
"clones_event.root",
"RECREATE",
"Test TClonesArray");
45 auto TTree(
"clones_event",
"An example of a ROOT tree");
51 std::cout <<
"event " <<
ev << std::endl;
67 auto TTree>(
"clones_event");
75 std::cout <<
"Pileup event1: " <<
event1->GetPileup() << std::endl;
76 std::cout <<
"Pileup event2: " <<
event2->GetPileup() << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
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 const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
A TTree represents a columnar dataset.