69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
///#include "armory/evtReader.h"
|
|
|
|
///evtReader * evt = new evtReader("run-0238-00.evt", true);
|
|
|
|
#include "peachCake.C+"
|
|
|
|
void script() {
|
|
|
|
|
|
int runNum = 250;
|
|
|
|
TChain * chain = new TChain("tree");
|
|
//chain->Add(Form("root_data/run-%04d-*.root", runNum));
|
|
|
|
//chain->Add("root_data/run-0237-*.root");
|
|
//chain->Add("root_data/run-0238-*.root");
|
|
//chain->Add("root_data/run-0241-*.root");
|
|
|
|
// new beam
|
|
chain->Add("root_data/run-024[6-8]*.root");
|
|
chain->Add("root_data/run-0250*.root");
|
|
chain->Add("root_data/run-025[1-4].root");
|
|
chain->Add("root_data/run-025[6-9].root");
|
|
chain->Add("root_data/run-026[1-4]*.root");
|
|
chain->Add("root_data/run-0269*.root");
|
|
chain->Add("root_data/run-027[0-1]*.root");
|
|
chain->Add("root_data/run-028[3-4]*.root");
|
|
chain->Add("root_data/run-028[6-8]*.root");
|
|
chain->Add("root_data/run-0292*.root");
|
|
chain->Add("root_data/run-029[4-6]*.root");
|
|
chain->Add("root_data/run-029[8-9]*.root");
|
|
chain->Add("root_data/run-03*.root");
|
|
|
|
|
|
//chain->Add("root_data/run-0250*.root");
|
|
|
|
bool isSaveNewTree = false;
|
|
|
|
TString histRootFileName = "";// Form("PID_%03d.root", runNum);
|
|
|
|
TString pidCorrFileName = "correction_PID.dat";
|
|
|
|
chain->GetListOfFiles()->Print();
|
|
int nFile = chain->GetListOfFiles()->GetEntries();
|
|
if( nFile == 0 ) return;
|
|
printf("================================ num of Files : %d \n", nFile);
|
|
|
|
printf("================================\n");
|
|
|
|
peachCake * selector = new peachCake();
|
|
selector->SaveNewTree(isSaveNewTree);
|
|
selector->SetPIDCorrectionFile(pidCorrFileName);
|
|
selector->SetHistRootFileName(histRootFileName);
|
|
|
|
chain->Process(selector, "");
|
|
|
|
|
|
|
|
|
|
///gROOT->ProcessLine("armory/nsclEvtReader.h");
|
|
///evt->ReadBlock(2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|