FRIB_e21062/script.C

35 lines
736 B
C++
Raw Normal View History

2022-06-08 14:43:03 -04:00
///#include "armory/evtReader.h"
2022-06-06 19:57:17 -04:00
2022-06-08 14:43:03 -04:00
///evtReader * evt = new evtReader("run-0238-00.evt", true);
#include "peachCake.C+"
2022-06-06 19:57:17 -04:00
void script() {
2022-06-08 14:43:03 -04:00
2022-05-24 18:21:12 -04:00
TChain * chain = new TChain("tree");
2022-06-08 14:43:03 -04:00
//chain->Add("root_data/run-0237-*.root");
//chain->Add("root_data/run-0238-*.root");
//chain->Add("root_data/run-0241-*.root");
//chain->Add("root_data/run-0244-*.root");
//chain->Add("root_data/run-0246-*.root");
chain->Add("root_data/run-02[3-4][0-9]-00.root");
bool isSaveNewTree = false;
2022-05-24 18:21:12 -04:00
2022-06-08 14:43:03 -04:00
chain->GetListOfFiles()->Print();
peachCake * selector = new peachCake();
selector->SaveNewTree(isSaveNewTree);
chain->Process(selector, "");
2022-06-06 19:57:17 -04:00
2022-06-08 14:43:03 -04:00
///gROOT->ProcessLine("armory/nsclEvtReader.h");
///evt->ReadBlock(2);
2022-05-24 18:21:12 -04:00
}