Hi Luiz, You can modify your .h file: - adding the necessary data members (background + signal) + idem for branches - Modify the Notify function to compute the corresponding branch pointers. - Modify the Init function: -adding a call to Notify at the beginning -testing if the branch is not null when setting the branch address. In principle, I could modify the MakeSelector function to generate this type of code, but I have to investigate possible side-effects when running with chains. Rene Brun Luiz Martins Mundim Filho wrote: > > Hi > > I'm using the MakeSelector command to generate both .C and .h files > to loop over my ntuple, but now I got a problem. In fact in the same > analisys I have several ntuples that depending on if it is background or > signal, have differences that avoid to use the same programs (the same > header file). Is it possible in a header file to test if some branches > exists in the current ntuple in such a way I can use only one .h and one > .C file? > > Thanks in advance. > > Luiz
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET