Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roottest/root/hist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ROOTTEST_ADD_TEST(mergeTH2Poly
ROOTTEST_ADD_TEST(assertSparseToTHn
MACRO assertSparseToTHn.C
COPY_TO_BUILDDIR effectiveCorrection.root)

if(fortran AND CMAKE_Fortran_COMPILER AND NOT CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
ROOTTEST_ADD_TEST(h2root
COMMAND h2root mb4i1.hbook
Expand Down
5 changes: 3 additions & 2 deletions roottest/root/hist/division/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ROOTTEST_ADD_TEST(runtestTEfficiency MACRO runtestTEfficiency.C OUTREF testTEfficiency.ref)

ROOTTEST_ADD_TEST(runtestTEfficiency
MACRO runtestTEfficiency.C
OUTREF testTEfficiency.ref)
23 changes: 18 additions & 5 deletions roottest/root/hist/formula/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
ROOTTEST_ADD_TEST(assertTernary MACRO assertTernary.C OUTREF assertTernary.ref)
ROOTTEST_ADD_TEST(execGetExp MACRO execGetExp.C OUTREF execGetExp.ref)
ROOTTEST_ADD_TEST(assertTernary
MACRO assertTernary.C
OUTREF assertTernary.ref)

ROOTTEST_ADD_TEST(execGetExp
MACRO execGetExp.C
OUTREF execGetExp.ref)

ROOTTEST_ADD_TEST(runformio
MACRO runformio.C
COPY_TO_BUILDDIR result_30gev_sep05.root)
ROOTTEST_ADD_TEST(runrecurse MACRO runrecurse.C OUTREF recurse.ref)
ROOTTEST_ADD_TEST(runstring MACRO runstring.C OUTREF string.ref)
COPY_TO_BUILDDIR result_30gev_sep05.root
OUTREF formio.ref)

ROOTTEST_ADD_TEST(runrecurse
MACRO runrecurse.C
OUTREF recurse.ref)

ROOTTEST_ADD_TEST(runstring
MACRO runstring.C
OUTREF string.ref)
10 changes: 8 additions & 2 deletions roottest/root/hist/misc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ROOTTEST_ADD_TEST(runownership MACRO runownership.C+ OUTREF ownership.ref)
ROOTTEST_ADD_TEST(testSparse MACRO testSparse.cxx OUTREF testSparse.ref)
ROOTTEST_ADD_TEST(runownership
MACRO runownership.C+
OUTREF ownership.ref)

ROOTTEST_ADD_TEST(testSparse
MACRO testSparse.cxx
OUTREF testSparse.ref)

ROOT_ADD_GTEST(gh15874 test_gh15874.cxx
COPY_TO_BUILDDIR ${CMAKE_CURRENT_SOURCE_DIR}/test_gh15874.root
LIBRARIES ROOT::Core ROOT::Hist ROOT::RIO)
5 changes: 0 additions & 5 deletions roottest/root/hist/operator/rootlogon.C

This file was deleted.

8 changes: 4 additions & 4 deletions roottest/root/hist/operator/run.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
gErrorIgnoreLevel=1;
if (!gSystem->CompileMacro("add.C","k")) {
gApplication->Terminate(1);
}
gErrorIgnoreLevel = 1;
if (!gSystem->CompileMacro("add.C","k")) {
gApplication->Terminate(1);
}
}
6 changes: 3 additions & 3 deletions roottest/root/hist/operator/runcopy.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include "TDirectory.h"
#include "TList.h"

TH1F *h=0;
TH1F *h2=0;
TH1F *h3=0;
TH1F *h = nullptr;
TH1F *h2 = nullptr;
TH1F *h3 = nullptr;

void runcopy()
{
Expand Down
4 changes: 3 additions & 1 deletion roottest/root/hist/profile/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
ROOTTEST_ADD_TEST(runcopy MACRO runcopy.C OUTREF copy.ref)
ROOTTEST_ADD_TEST(runcopy
MACRO runcopy.C
OUTREF copy.ref)
18 changes: 11 additions & 7 deletions roottest/root/hist/th2PolyMerge.C
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
void FillPoly(TH2Poly& th2p){
#include <iostream>
using namespace std;

void FillPoly(TH2Poly& th2p)
{
for (auto i : ROOT::TSeqI(1000)){
th2p.Fill(gRandom->Uniform(),gRandom->Uniform(),gRandom->Uniform());
}
}

TH2Poly *CreatePoly() {
TH2Poly *CreatePoly()
{
auto h2p = new TH2Poly();
Double_t x1[] = {0, 5, 6};
Double_t y1[] = {0, 0, 5};
Expand All @@ -19,7 +24,8 @@ TH2Poly *CreatePoly() {
return h2p;
}

TH2Poly *CreatePolyDiffContour() {
TH2Poly *CreatePolyDiffContour()
{
auto h2p = new TH2Poly();
Double_t x1[] = {0, 5, 6};
Double_t y1[] = {0, 0, 5};
Expand All @@ -34,8 +40,8 @@ TH2Poly *CreatePolyDiffContour() {
return h2p;
}

int th2PolyMerge() {

int th2PolyMerge()
{
cout << "We expect two warnings to be printed:\n"
" 1) About different number of bins\n"
" 2) About different contours\n";
Expand Down Expand Up @@ -68,6 +74,4 @@ int th2PolyMerge() {
if (totEntries != 0) return 3;

return 0;


}
Loading