Skip to content
Snippets Groups Projects
Commit 63976c05 authored by echio's avatar echio
Browse files

Adding Check of Cut type to avoid confusion

parent 32618436
No related branches found
No related tags found
No related merge requests found
Pipeline #281953 passed
...@@ -76,7 +76,18 @@ public: ...@@ -76,7 +76,18 @@ public:
TFile *CutFile = new TFile(CutFileName); TFile *CutFile = new TFile(CutFileName);
TCutG *cut = nullptr; TCutG *cut = nullptr;
cut = (TCutG*) CutFile->Get(Form("dE_AoQ")); cut = (TCutG*) CutFile->Get(Form("dE_AoQ"));
if(!cut->InheritsFrom("TCutG"))
{
Cuts2D[CutNr]= NULL;
Char_t Message[200];
sprintf(Message,"dE_AoQ is not of TCutG type in 2D Cuts File %s ",CutFileName);
cout << Message << endl;
// MErr * Er= new MErr(WhoamI,0,0, Message);
// throw Er;
}
if(cut) if(cut)
{ {
cut->Print(); cut->Print();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment