Skip to content

Commit e926c0d

Browse files
committed
[tutorials] rename CINT with Cling
1 parent 85ac9e2 commit e926c0d

File tree

14 files changed

+19
-47
lines changed

14 files changed

+19
-47
lines changed

tutorials/analysis/unfold/testUnfold5c.C

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
// uncomment this to read the binning schemes from the root file
6666
// by default the binning is read from the XML file
67-
// #define READ_BINNING_CINT
67+
// #define READ_BINNING_TFILE
6868

6969

7070
#include <iostream>
@@ -73,7 +73,7 @@
7373
#include <TFile.h>
7474
#include <TTree.h>
7575
#include <TH1.h>
76-
#ifndef READ_BINNING_CINT
76+
#ifndef READ_BINNING_TFILE
7777
#include <TDOMParser.h>
7878
#include <TXMLDocument.h>
7979
#include "TUnfoldBinningXML.h"
@@ -98,7 +98,7 @@ void testUnfold5c()
9898
// Step 2: read binning from XML
9999
// and save them to output file
100100

101-
#ifdef READ_BINNING_CINT
101+
#ifdef READ_BINNING_TFILE
102102
TFile *binningSchemes=new TFile("testUnfold5_binning.root");
103103
#endif
104104

@@ -107,7 +107,7 @@ void testUnfold5c()
107107
outputFile->cd();
108108

109109
// read binning schemes in XML format
110-
#ifndef READ_BINNING_CINT
110+
#ifndef READ_BINNING_TFILE
111111
TDOMParser parser;
112112
Int_t error=parser.ParseFile("testUnfold5binning.xml");
113113
if(error) cout<<"error="<<error<<" from TDOMParser\n";

tutorials/hist/hist105_TExec_dynamic_slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## of the mouse. The resulting histogram is fitted with a gaussian.
88
## A "dynamic" line shows the current bin position in Y.
99
## This more elaborated example can be used as a starting point
10-
## to develop more powerful interactive applications exploiting CINT
10+
## to develop more powerful interactive applications exploiting Cling
1111
## as a development engine.
1212
##
1313
## Note that a class is used to hold on to the canvas that display

tutorials/legacy/cont/TListAndSTL.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct SEnumFunctor {
3737

3838
// A functor for the find_if algorithm
3939
struct SFind {
40-
// using this ugly constructor, since there is problems with std::bindX in CINT
40+
// using this ugly constructor, since there is problems with std::bindX in CINT. TODO: recheck with Cling
4141

4242
SFind(const TString &aStr): fToFind(aStr) {
4343

tutorials/legacy/net/fastMergeServer.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void fastMergeServer(bool cache = false) {
116116
Int_t clientId;
117117
mess->ReadInt(clientId);
118118
mess->ReadTString(filename);
119-
mess->ReadLong64(length); // '*mess >> length;' is broken in CINT for Long64_t.
119+
mess->ReadLong64(length); // '*mess >> length;' was broken in CINT for Long64_t. TODO: recheck with Cling
120120

121121
Info("fastMergeServer","Receive input from client %d for %s",clientId,filename.Data());
122122

tutorials/legacy/net/parallelMergeServer.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void parallelMergeServer(bool cache = false) {
406406
Int_t clientId;
407407
mess->ReadInt(clientId);
408408
mess->ReadTString(filename);
409-
mess->ReadLong64(length); // '*mess >> length;' is broken in CINT for Long64_t.
409+
mess->ReadLong64(length); // '*mess >> length;' was broken in CINT for Long64_t. TODO: recheck with Cling
410410

411411
// Info("fastMergeServerHist","Received input from client %d for %s",clientId,filename.Data());
412412

tutorials/legacy/net/treeClient.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void treeClient(Bool_t evol=kFALSE)
9393
mess.Reset(kMESS_ANY); // re-use TMessage object
9494
mess.WriteInt(idx);
9595
mess.WriteTString(file->GetName());
96-
mess.WriteLong64(file->GetEND()); // 'mess << file->GetEND();' is broken in CINT for Long64_t
96+
mess.WriteLong64(file->GetEND()); // 'mess << file->GetEND();' was broken in CINT for Long64_t
9797
file->CopyTo(mess);
9898
sock->Send(mess); // send message
9999
messlen += mess.Length();

tutorials/visualisation/eve/geom_alias.C

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ void geom_alias()
2828

2929
gEve->FullRedraw3D(kTRUE);
3030

31-
// EClipType not exported to CINT (see TGLUtil.h):
32-
// 0 - no clip, 1 - clip plane, 2 - clip box
3331
auto v = gEve->GetDefaultGLViewer();
34-
v->GetClipSet()->SetClipType(TGLClip::EType(2));
32+
v->GetClipSet()->SetClipType(TGLClip::EType::kClipBox);
3533
v->RefreshPadEditor(v);
3634

3735
v->CurrentCamera().RotateRad(-0.5, -2.4);

tutorials/visualisation/eve/geom_alice_its.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void geom_alice_its()
3434
// Demonstrate extraction of volumes matching certain criteria.
3535
//==============================================================================
3636

37-
// Should be run in compiled mode -- CINT has issues with recursion.
37+
// Should be run in compiled mode -- CINT had issues with recursion. TODO: recheck with Cling
3838
//
3939
// 1. Creation:
4040
// root

tutorials/visualisation/eve/geom_atlas.C

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ void geom_atlas()
2929

3030
gEve->FullRedraw3D(kTRUE);
3131

32-
// EClipType not exported to CINT (see TGLUtil.h):
33-
// 0 - no clip, 1 - clip plane, 2 - clip box
3432
auto v = gEve->GetDefaultGLViewer();
35-
v->GetClipSet()->SetClipType(TGLClip::EType(1));
33+
v->GetClipSet()->SetClipType(TGLClip::EType::kClipPlane);
3634
v->RefreshPadEditor(v);
3735

3836
v->CurrentCamera().RotateRad(-.7, 0.5);

tutorials/visualisation/eve/geom_cms.C

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ void geom_cms()
3131

3232
gEve->FullRedraw3D(kTRUE);
3333

34-
// EClipType not exported to CINT (see TGLUtil.h):
35-
// 0 - no clip, 1 - clip plane, 2 - clip box
3634
auto v = gEve->GetDefaultGLViewer();
37-
v->GetClipSet()->SetClipType(TGLClip::EType(1));
35+
v->GetClipSet()->SetClipType(TGLClip::EType::kClipPlane);
3836
v->ColorSet().Background().SetColor(kMagenta + 4);
3937
v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0);
4038
v->RefreshPadEditor(v);

0 commit comments

Comments
 (0)