Skip to content

Commit 9164dd0

Browse files
ferdymercurydpiparo
authored andcommitted
[test] adapt error message
1 parent 3ed476b commit 9164dd0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

roottest/root/tree/evolution/ReadClones.ref

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Processing listsfile.root
8888
* 0 * 0 * 11 *
8989
* 0 * 1 * 66 *
9090
*************************************************************
91-
Warning in <TTreeFormula::DefinedVariable>: TClonesArray object was not retrievable for TopCl.fTracksPtr.fEnergy!
91+
Warning in <TTreeFormula::ParseWithLeaf>: TClonesArray object was not retrievable for TopCl.fTracksPtr.fEnergy!
9292
Error in <TTreeFormula::Compile>: Bad numerical expression : "TopCl.fTracksPtr.fEnergy"
9393
**************************************************
9494
* Row * TopCl.fTracksPtr.fEnergy *
@@ -138,7 +138,7 @@ Processing vectorfile.root
138138
* 0 * 0 * 11 *
139139
* 0 * 1 * 66 *
140140
*************************************************************
141-
Warning in <TTreeFormula::DefinedVariable>: TClonesArray object was not retrievable for TopCl.fTracksPtr.fEnergy!
141+
Warning in <TTreeFormula::ParseWithLeaf>: TClonesArray object was not retrievable for TopCl.fTracksPtr.fEnergy!
142142
Error in <TTreeFormula::Compile>: Bad numerical expression : "TopCl.fTracksPtr.fEnergy"
143143
**************************************************
144144
* Row * TopCl.fTracksPtr.fEnergy *
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
Processing runnestedHists.C...
3-
Warning in <TTreeFormula::DefinedVariable>: TTreeFormula support only 2 level of variables size collections. Assuming '@' notation for the collection fHists.
3+
Warning in <TTreeFormula::ParseWithLeaf>: TTreeFormula support only 2 level of variables size collections. Assuming '@' notation for the collection fHists.
44
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
5-
Warning in <TTreeFormula::DefinedVariable>: TTreeFormula support only 2 level of variables size collections. Assuming '@' notation for the collection fHists.
6-
Error in <TTreeFormula::DefinedVariable>: Can not call method fHists.GetNbinsX() on class without dictionary (list<TH1F*>)!
5+
Warning in <TTreeFormula::ParseWithLeaf>: TTreeFormula support only 2 level of variables size collections. Assuming '@' notation for the collection fHists.
6+
Error in <TTreeFormula::ParseWithLeaf>: Can not call method fHists.GetNbinsX() on class without dictionary (list<TH1F*>)!
77
Error in <TTreeFormula::Compile>: Part of the Variable "sectors.fStrips.fHists.GetNbinsX()" exists but some of it is not accessible or useable
88
Info in <TSelectorDraw::AbortProcess>: Variable compilation failed: {sectors.fStrips.fHists.GetNbinsX(),}

tree/treeplayer/test/regressions.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ TEST(TTreeFormulaRegressions, WrongName)
225225
{
226226
ROOT::TestSupport::CheckDiagsRAII diags;
227227
// diags.requiredDiag(kError, "TSelectorDraw::AbortProcess", "Variable compilation failed: {s.y,}");
228-
diags.requiredDiag(kError, "TTreeFormula::DefinedVariable", "y is not a datamember of MyS");
228+
diags.requiredDiag(kError, "TTreeFormula::ParseWithLeaf", "y is not a datamember of MyS");
229229
diags.requiredDiag(kError, "TTreeFormula::Compile", " Bad numerical expression : \"s.y\"");
230230
EXPECT_EQ(t.Draw("s.y", ""), -1);
231231
}
@@ -234,31 +234,31 @@ TEST(TTreeFormulaRegressions, WrongName)
234234
}
235235
{
236236
ROOT::TestSupport::CheckDiagsRAII diags;
237-
diags.requiredDiag(kError, "TTreeFormula::DefinedVariable", "Unknown method:eta() in TLorentzVector");
237+
diags.requiredDiag(kError, "TTreeFormula::ParseWithLeaf", "Unknown method:eta() in TLorentzVector");
238238
diags.requiredDiag(kError, "TTreeFormula::Compile", " Bad numerical expression : \"v.eta()\"");
239239
EXPECT_EQ(t.Draw("v.eta()", ""), -1);
240240
}
241241
{
242242
ROOT::TestSupport::CheckDiagsRAII diags;
243-
diags.requiredDiag(kError, "TTreeFormula::DefinedVariable", "x is not a datamember of TLorentzVector");
243+
diags.requiredDiag(kError, "TTreeFormula::ParseWithLeaf", "x is not a datamember of TLorentzVector");
244244
diags.requiredDiag(kError, "TTreeFormula::Compile", " Bad numerical expression : \"v.x\"");
245245
EXPECT_EQ(t.Draw("v.x", ""), -1);
246246
}
247247
{
248248
ROOT::TestSupport::CheckDiagsRAII diags;
249-
diags.requiredDiag(kError, "TTreeFormula::DefinedVariable", "y is not a datamember of TLorentzVector");
249+
diags.requiredDiag(kError, "TTreeFormula::ParseWithLeaf", "y is not a datamember of TLorentzVector");
250250
diags.requiredDiag(kError, "TTreeFormula::Compile", " Bad numerical expression : \"v.y\"");
251251
EXPECT_EQ(t.Draw("v.y", ""), -1);
252252
}
253253
{
254254
ROOT::TestSupport::CheckDiagsRAII diags;
255-
diags.requiredDiag(kError, "TTreeFormula::DefinedVariable", "Unknown method:eta() in MyS");
255+
diags.requiredDiag(kError, "TTreeFormula::ParseWithLeaf", "Unknown method:eta() in MyS");
256256
diags.requiredDiag(kError, "TTreeFormula::Compile", " Bad numerical expression : \"s.eta()\"");
257257
EXPECT_EQ(t.Draw("s.eta()", ""), -1);
258258
}
259259
{
260260
ROOT::TestSupport::CheckDiagsRAII diags;
261-
diags.requiredDiag(kError, "TTreeFormula::DefinedVariable", "Unknown method:Eta() in MyS");
261+
diags.requiredDiag(kError, "TTreeFormula::ParseWithLeaf", "Unknown method:Eta() in MyS");
262262
diags.requiredDiag(kError, "TTreeFormula::Compile", " Bad numerical expression : \"s.Eta()\"");
263263
EXPECT_EQ(t.Draw("s.Eta()", ""), -1);
264264
}

0 commit comments

Comments
 (0)