OKUMURA, Akira | 26 Feb 13:11 2015
Picon

"make install" fails in ROOT 6.02.05

Hello ROOTers,

I tried to build and install ROOT 6.02.05 from the source using CMake on SL 7. cmake and make worked fine, but
"make install" failed with the error below.

---------------
-- Installing: /usr/local/root-6.02.05/build_dir/cmake/modules/StandaloneBuild.cmake
-- Installing: /usr/local/root-6.02.05/build_dir/cmake/modules/WriteConfigCint.cmake
-- Installing: /usr/local/root-6.02.05/build_dir/aclocal/root.m4
CMake Error at core/rint/cmake_install.cmake:46 (FILE):
  file INSTALL cannot find
  "/usr/local/root-6.02.05/build_dir/lib/libRint.so".
Call Stack (most recent call first):
  core/cmake_install.cmake:58 (INCLUDE)
  cmake_install.cmake:164 (INCLUDE)
---------------

How can I remove this error? What I did are just

$ mkdir /usr/local/root-6.02.05/build_dir
$ cd /usr/local/root-6.02.05/build_dir
$ cmake ..
$ make -j 6
$ make install

I use GCC 4.8.2 and CMake 2.8.11, that are available from the default yum repository of SL 7. "make install"
runs fine on OS X 10.9 with Clang v6.0 (Apple) and CMake 3.0.2.

Regards,

(Continue reading)

André Miguel Monteiro | 26 Feb 11:45 2015
Picon

Set color scale range manually

Dear Root users,


I have plotted an histogram, but since I am getting values from 250 to 0, but I am more interested in the distinction between values between 0 and 10. Is it possible to make a manual color scale like 0 to 50 for instance and then all the values above that would have the same color? 


Thank you.


Cheers,


André





--------------------------------
MSc Student in Biomedical and Biophysics Engineering at Faculty of Sciences of the University of Lisbon

Institute of Biophysics and Biomedical Engineering
Faculty of Sciences, University of Lisbon
Campo Grande
1749-016 Lisbon

Room Office: 1.02
Extension: 20509
Email: ammonteiro <at> fc.ul.pt
Lukas Kreczko | 25 Feb 18:09 2015
Picon
Picon

The hunt for TVector error with gdb

Dear experts,

I am currently hunting down a problem that involves these two TVector errors:
1) Error in <TVectorT<double>::operator=(const TVectorT<Element> &)>:
vectors not compatible
2) Request index(-2) outside vector range of 0 - 7

While these are relatively unspectacular errors it is very difficult
to find out where they happen as:
1) there are many TVectors involved
2) the code continues after the error

My question: is there a way to make the code stop after the error occurs?
Maybe some "magic" using gROOT->ProcessLine()?

I am using ROOT 6.02/04 and the code can be found in
https://github.com/kreczko/RooUnfold/tree/tau-svd-unfolding

Build instructions are here [1] and the relevant test is
test/TestRooUnfoldSvd.cpp -> test_tau_unfold.

Cheers,
Luke

[1]
cmake CMakeLists.txt
make
# to run the tests (and see the error message)
./RooUnfold_test

Georg Troska | 24 Feb 10:21 2015
Picon
Picon

Problems with root-converter when using std::string

Hi everybody,

I'm using root cint on Windows (5.34-21) to convert some simple files to
root files with TTrees. This tool works pretty fine, but as soon as I am
trying to read in strings it crashes. Any hint why??

For some reason the first line is always corrupt, that why I'm leaving it
free (seems to be a Windows issue)
The second line contains the Name of the variable - and will be used as
name of the branch
The third line will be the type (REAL, INT, STRING, ...)
Then the values are following

in the attachments are the convert script and a simple dummy-file. Using
the script as it is will lead to Crash during the Fill-Operation. Removing
the maked line (containing the branch to the string-element) will work -
but without strings....

I do not understand this, I tried this mechanism out in the console step
by step and it works.

Thanks for any hint

Georg

Attachment (convert.C): application/octet-stream, 4028 bytes

A	B	C	D		F
STRING	REAL	INT		STRING	REAL
Lalala	123.23	10	1	bla	345.3
Lululu	234234.3	20	0	blub	123.6
Hahaha	3412.2	30	1	blae	45745.7
Buba	43534.1	40	0	bli	123
Picon
Picon

How to activate colors at ROOT6's prompt ?

Dear Rooters,

I am using  ROO6 ( ROOT 6.02/05 ) in Fedora21.
I would like to know how to enable colors in ROOT prompt.

Please, can someone help me ?

Cheers
A.A.

Constantin Loizides | 20 Feb 21:28 2015

Question about streaming of base classes

Dear all,

I am pretty sure that I was able to stream objects saved as
pointers to TH1 into a root file. Since a few days I am
hit by a problem that in the end I am only able to trace back
to the use of
TH1* fMyHisto;// My histogram to be streamed

Any ideas? (This is with v5-34-25)

Thanks, Constantin

ROOT 5.34/25 (v5-34-25 <at> v5-34-25, Jan 14 2015, 10:01:26 on linuxx8664gcc)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
Info in <rootlogon.C>: Running my $ROOTSCRIPTS/rootlogon.C
Note: File "/opt/alice/aliroot/core/master/install/lib/libSTEER.so" already loaded
root [0] .L TestTH1Streamer.C+
Info in <TUnixSystem::ACLiC>: creating shared library /mnt/vol1/home/loizides/./TestTH1Streamer_C.so
root [1] TestTH1Streamer()
Error in <TClass::New>: cannot create object of class TH1
#include <TFile.h>
#include <TH1.h>
#include <TH1F.h>

class TH1Wrapper : public TObject {
public:
  TH1Wrapper() : fMyHisto(0) {}
  ~TH1Wrapper() {if(fMyHisto) delete fMyHisto;}

  TH1* GetHisto() {return fMyHisto;}
  void SetHisto(TH1 *h) {fMyHisto=h;}

protected:
  TH1* fMyHisto;// My histogram to be streamed
private:
  TH1Wrapper(const TH1Wrapper& obj);             
  TH1Wrapper& operator=(const TH1Wrapper& obj);  
  ClassDef(TH1Wrapper, 1);
};

void TestTH1Streamer()
{
  TH1Wrapper *wrap = new TH1Wrapper();
  //wrap->SetHisto(new TH1F("myhisto","myhisto",100,0,100));
  TFile *file = new TFile("file.root","recreate");
  file->cd();
  wrap->Write();
  file->Close();
  delete file;
  file = 0;
  
  delete wrap;
  wrap = 0;
}
Pere Mato Vila | 20 Feb 19:10 2015
Picon
Picon

ROOT patch 5.34/26 has been released

Dear All,

The patch release of ROOT v5.34/26 is now available. The Git tag for this version is v5-34-26.

For what is fixed in this patch release see the patch release notes

The 5.34/26 binaries for different platforms and compilers can be found at:

/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/ Pere Mato
on behalf of the ROOT team

-------------------------------------------------------------
Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
e-mail: pere.mato <at> cern.ch tel:   +41 22 76 78696
fax:  +41 22 76 68792 gsm: +41 76 48 70855

Philippe Canal | 20 Feb 18:03 2015

Re: ROOT6 for SLC6 with gcc 4.4 ?

Hi David,

> Being the default compiler version in all SLC lxplus machines at CERN, why don't you provide
> source/binaries for ROOT6 with gcc 4.4 (as you do for the older ROOT5) ?

Because it would require a huge amount of effort that we can not afford ...

ROOT6 relies heavily on being able to use newer version of clang and llvm which requires good C++11 support
to even compile.

To support gcc 4.4, we would need to go and edit a *lot* of clang and llvm code to find and replace C++11
construct with C++98 
equivalent, work which would be both enormous and wasted since gcc 4.4 is obsolete and will soon no longer be
in use ...

The alternative (installing gcc 4.8) is much less work and is moving you forward :)

Cheers,
Philippe.

On 2/20/15 10:57 AM, David d'Enterria wrote:
> Hello ROOT-team,
>
> The default gcc compiler version in the CERN SLC6 distribution is 4.4.7.
> I don't want to update it to gcc 4.8 now, not to break other things in the system, but then I cannot
> use ROOT6 which requires c++11 (provided by gcc 4.8).
>
> Being the default compiler version in all SLC lxplus machines at CERN, why don't you provide
> source/binaries for ROOT6 with gcc 4.4 (as you do for the older ROOT5) ?
>
> Thanks,
>
> David
>

David d'Enterria | 20 Feb 17:58 2015
Picon
Picon

ROOT6 for SLC6 with gcc 4.4 ?

Hello ROOT-team,

The default gcc compiler version in the CERN SLC6 distribution is 4.4.7.
I don't want to update it to gcc 4.8 now, not to break other things in the system, but then I cannot
use ROOT6 which requires c++11 (provided by gcc 4.8).

Being the default compiler version in all SLC lxplus machines at CERN, why don't you provide
source/binaries for ROOT6 with gcc 4.4 (as you do for the older ROOT5) ?

Thanks,

David

____________________________________________
David d'Enterria (CERN)    http://cern.ch/dde

Dmitry Kotov | 20 Feb 02:45 2015
Picon

Troubles with making TTrees

Hello everyone,

I have problems with making TTrees. 
Actually, I'm able to produce TTrees and write them to root files.
But when I open these root files with TBrowser and just double-click on any variable, it gives me the correct drawing, but in the logs it says:

Error in <TBasket::Streamer>: The value of fNbytes is incorrect (-1475912448) ; trying to recover by setting it to zero
Error in <TBasket::Streamer>: The value of fNbytes is incorrect (-1475912448) ; trying to recover by setting it to zero
Error in <TBasket::Streamer>: The value of fNbytes is incorrect (-1475912448) ; trying to recover by setting it to zero
Error in <TBasket::Streamer>: The value of fNbytes is incorrect (-1475912448) ; trying to recover by setting it to zero

and then just crashes with break segmentation violation.

Maybe this is a common problem and someone can give me a quick solution?
The TTree actually exists and I can see all variables and it look reasonable, i just have problems with opening these files.

Thanks very much in advance,
Dmitry

 

                              

Chiara Zampolli | 18 Feb 07:08 2015
Picon
Picon

Problems with TH1C written with higher root versions: errors when reading with v5-34-08

Dear all,

There are many error messages when opening a file with an object created with a higher version of ROOT (v5-34-18 or 
v5-34-22), but using v5-34-08 to read it back, see below. The object is a simple TH1C. Do you know why? I am attaching 
a file with the object.
Attachment (histo_v5-34-18.root): application/octet-stream, 16 KiB


Thanks, and Regards,

Chiara



Attaching file histo_v5-34-18.root as _file0...
Warning in <TStreamerInfo::BuildCheck>: 
   The StreamerInfo of class TAttLine read from file histo_v5-34-18.root
   has the same version (=1) as the active class but a different checksum.
   You should update the version to ClassDef(TAttLine,2).
   Do not try to write objects with the current class definition,
   the files will not be readable.

Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 1 of class 'TAttLine' differs from 
the in-memory layout version 1:
   short fLineColor; //
vs
   Color_t fLineColor; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 1 of class 'TAttLine' differs from 
the in-memory layout version 1:
   short fLineStyle; //
vs
   Style_t fLineStyle; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 1 of class 'TAttLine' differs from 
the in-memory layout version 1:
   short fLineWidth; //
vs
   Width_t fLineWidth; //
Warning in <TStreamerInfo::BuildCheck>: 
   The StreamerInfo of class TAttFill read from file histo_v5-34-18.root
   has the same version (=1) as the active class but a different checksum.
   You should update the version to ClassDef(TAttFill,2).
   Do not try to write objects with the current class definition,
   the files will not be readable.

Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 1 of class 'TAttFill' differs from 
the in-memory layout version 1:
   short fFillColor; //
vs
   Color_t fFillColor; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 1 of class 'TAttFill' differs from 
the in-memory layout version 1:
   short fFillStyle; //
vs
   Style_t fFillStyle; //
Warning in <TStreamerInfo::BuildCheck>: 
   The StreamerInfo of class TAttMarker read from file histo_v5-34-18.root
   has the same version (=2) as the active class but a different checksum.
   You should update the version to ClassDef(TAttMarker,3).
   Do not try to write objects with the current class definition,
   the files will not be readable.

Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 2 of class 'TAttMarker' differs from 
the in-memory layout version 2:
   short fMarkerColor; //
vs
   Color_t fMarkerColor; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 2 of class 'TAttMarker' differs from 
the in-memory layout version 2:
   short fMarkerStyle; //
vs
   Style_t fMarkerStyle; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 2 of class 'TAttMarker' differs from 
the in-memory layout version 2:
   float fMarkerSize; //
vs
   Size_t fMarkerSize; //
Warning in <TStreamerInfo::BuildCheck>: 
   The StreamerInfo of class TAttAxis read from file histo_v5-34-18.root
   has the same version (=4) as the active class but a different checksum.
   You should update the version to ClassDef(TAttAxis,5).
   Do not try to write objects with the current class definition,
   the files will not be readable.

Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 4 of class 'TAttAxis' differs from 
the in-memory layout version 4:
   short fAxisColor; //
vs
   Color_t fAxisColor; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 4 of class 'TAttAxis' differs from 
the in-memory layout version 4:
   short fLabelColor; //
vs
   Color_t fLabelColor; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 4 of class 'TAttAxis' differs from 
the in-memory layout version 4:
   short fLabelFont; //
vs
   Style_t fLabelFont; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 4 of class 'TAttAxis' differs from 
the in-memory layout version 4:
   short fTitleColor; //
vs
   Color_t fTitleColor; //
Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 4 of class 'TAttAxis' differs from 
the in-memory layout version 4:
   short fTitleFont; //
vs
   Style_t fTitleFont; //
root [1] 


Gmane