My program below doesn’t seem to pick up the right sequence of events defined by TEventList:
NN.h, NN.C are produced by tree->MakeClass(). I expect that after
t->Loop() will run on the chain that’s defined by test_list. However, it still go through the entilre chain. A bit more information:
does tell me that the list has the correct number of entries.
Could anyone help? Thanks.
TChain *chain = new TChain(“NN”);
NN *t = new NN(chain); chain->Add("nn_Higgs_m120.root"); chain->Draw(">>test","Entry$%2==1"); TEventList *test_list = (TEventList *)gDirectory->Get("test"); chain->SetEventList(test_list); test_list->Print(); t->Loop();