Dear ROOT USER,
I want save the co-ordinates of TCutG in a header file say mycut.h and then want to use this cut in my code. I did it in the following way but it didn’t work
i save the following lines as mycut.h
mycut = new TCutG(“FC”,10);
mycut->SetPoint(0,1451,2519);
mycut->SetPoint(1,2100,2505);
mycut->SetPoint(2,2741,2398);
mycut->SetPoint(3,2574,2178);
mycut->SetPoint(4,2107,2174);
mycut->SetPoint(5,1138,2081);
mycut->SetPoint(6,992,2195);
mycut->SetPoint(7,1021,2312);
mycut->SetPoint(8,1240,2462);
mycut->SetPoint(9,1451,2519);
then i call it with
#include "mycut.h"
void Identificationv::Calculate(void)
{
#ifdef DEBUG
cout << “Identificationv::Calculate” << endl;
#endif
if (mycut->IsInside(t1->tof1,t1->zco1))
{
t1.Draw("tof1:zco1","");
}
}
here t1 is my TTree
welcome any suggestion in advance.