// // Testing a ROOT-version dependent problem filling a TTree with a TClonesArray. Run it with: // // > .L problemTest.C; // > digitEvents("output_file_name"); // #include "problemTest.h" action theAction; run(char* outputFile){ //output File and Tree TFile* outFile = new TFile(outputFile,"RECREATE"); outFile->cd(); TTree* outputTree = new TTree("outputTree","output Tree"); TClonesArray* dataCA; data** myData; dataCA = new TClonesArray("data",5); outputTree->Branch("myData",&dataCA); theAction.Calculate(dataCA,outputTree); outFile->Write(); outFile->Close(); }