[root] / trunk / tree / tree / src / TLeafL.cxx Repository:
ViewVC logotype

Log of /trunk/tree/tree/src/TLeafL.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 7796 byte(s)
Diff to previous 43597
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 43597 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 31 13:48:47 2012 UTC (2 years, 9 months ago) by axel
File length: 7786 byte(s)
Diff to previous 40598
Rework TTree::ReadStream() / ReadFile(), mainly to fix delimited reading of string columns:
TLeaf::ReadValue() now takes an optional delimiter argument that is ignored for all but TLeafC. Here, input stops when reading this character, instead of at the first whitespace.
Use that in TTree::ReadStream() to delimit reading of TLeafC.
TTree::ReadStream() now tokenizes the row itself, and passes a stringstream containing nothing but the current column to TLeaf::ReadValue().
Improve error handling, improve debug output.
Clearly state which lines are skipped due to errors and why.
Fix windows files leaving '\n' in branch names when reading them from the file.
Separate concepts of number of input line (for communication with user) and number of good lines (as returned).
Simplify EOF-without-newline case.
Add error message for TLeaf::ReadValue(), i.e. if ReadValue() is called on a derived class that doesn't implement it.

Revision 40598 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 15 15:28:32 2011 UTC (3 years, 5 months ago) by pcanal
File length: 7762 byte(s)
Diff to previous 38801
Lift ancien restriction (imposed by VC++6) preventing the proper use of unsigned long long by TTreeFormula

Revision 38801 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 11 20:10:24 2011 UTC (3 years, 9 months ago) by pcanal
File length: 7854 byte(s)
Diff to previous 36407
Reduce by 40% the time taken GetEntry for a branch created using a leaflist (exclusive of the decompression time).

Cache the current basket and its limit.
Reorder the set of test to reduce the number of conditional jump in the most common cases
and use:
  #define unlikely(expr) __builtin_expect(!!(expr), 0)
  #define likely(expr) __builtin_expect(!!(expr), 1)
to tell the compiler/processor which branch is more likely.
Record whether the buffer's map of classname and object is used to avoid resetting unnecessarily at read time.

Revision 36407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 02:04:08 2010 UTC (4 years, 3 months ago) by pcanal
File length: 7845 byte(s)
Diff to previous 31603
From Mike Marino:

Replace the overly generic ifstream by istream as the argument to ReadValue

Revision 31603 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 7 18:59:15 2009 UTC (5 years, 1 month ago) by pcanal
File length: 7847 byte(s)
Diff to previous 30076
Add missing initialization (found by coverity)

Revision 30076 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 9 00:07:45 2009 UTC (5 years, 4 months ago) by pcanal
File length: 7779 byte(s)
Diff to previous 22902
Apply revision 18817 to all TLeaf:

In TLeaf?::ReadBasket one must check that fReadEntry in the count branch
is the same as the one in the branch being read.
This check is necessary when reading only one branch having a branch counter.

Revision 22902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 31 09:48:42 2008 UTC (6 years, 9 months ago) by rdm
File length: 7598 byte(s)
Diff to previous 21655
move tree, treeplayer and treeviewer under tree meta directory.

Revision 21655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 12 04:58:14 2008 UTC (7 years ago) by pcanal
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7598 byte(s)
Diff to previous 21654
correct typo in comment

Revision 21654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 12 04:55:26 2008 UTC (7 years ago) by pcanal
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7598 byte(s)
Diff to previous 20882
Correct the sizeof long long leaf data

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7583 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7583 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7632 byte(s)
Diff to previous 18667
remove :$ from tag line

Revision 18667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 4 17:32:45 2007 UTC (7 years, 8 months ago) by pcanal
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7642 byte(s)
Diff to previous 17667
The value of TBasket:;fBasket was incorrect in some cases when using
the TTreeCloner.  This is solved (and thread safetly is improved) by
removing the gBranch global variable and using alternative mechanism
to set TBakset::fBasket.

Revision 17667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 3 18:33:15 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7620 byte(s)
Diff to previous 16176
Use forward declaration of TClonesArray and fix consequences

Revision 16176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 31 11:05:20 2006 UTC (8 years, 4 months ago) by rdm
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7597 byte(s)
Diff to previous 15314
changed all Riostream.h in headers to Riosfwd.h. Riostream.h has "using namespace std"
and should only appear in implementation files.

Revision 15314 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 2 15:34:12 2006 UTC (8 years, 7 months ago) by pcanal
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7573 byte(s)
Diff to previous 13207
Insure that the variable size array (if any) is properly resized in all the needed cases

Revision 13207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 11 22:16:04 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7497 byte(s)
Diff to previous 10359
Update the spacing and documentation to match the coding rule

Revision 10359 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 19 19:35:52 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7495 byte(s)
Diff to previous 10336
Protect TLeafL::ReadValue against a bug/limitation of VC++6

Revision 10336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 18 12:32:12 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 7362 byte(s)
Diff to previous 9618
Implement new function TTree::ReadFile
Long64_t TTree::ReadFile(const char *filename, const char *branchDescriptor)
{
   // Create or simply read branches from filename
   // if branchDescriptor = "" (default), it is assumed that the Tree descriptor
   //    is given in the first line of the file with a syntax like
   //     A/D:Table[2]/F:Ntracks/I:astring/s
   //  otherwise branchDescriptor must be specified with the above syntax.
   //
   // A TBranch object is created for each variable in the expression.
   // The total number of rows read from the file is returned.

TNtuple::ReadFile has been modified to be consistent with TTree::ReadFile.
New function TLeaf::ReadValue implemented (and in all TLeaf derived classes).

Revision 9618 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 29 19:11:27 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 6918 byte(s)
Diff to previous 9188
From Philippe:
This patch fixes a crash when trying to merge 2 tree which
already have a clone relationship.
More generally it protect cases where the new address being
set is already the existing address.

Revision 9188 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 14 08:50:00 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 6901 byte(s)
Diff to previous 7845
In the PrintValue functions, add support for unsigned types

Revision 7845 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 5 18:01:07 2004 UTC (11 years ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 6767 byte(s)
Diff to previous 7844
One more mod in TLeafL::GetValue.
One cannot cast from a ULong64_t to a Double with VC++6.
We assume a Long64_t.

Revision 7844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 5 17:52:01 2004 UTC (11 years ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 6675 byte(s)
Diff to previous 7789
Fix for VC++6

Revision 7789 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 19 16:10:18 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 6673 byte(s)
Diff to previous 7786
Fix in casting a return value to satisfy VC++6

Revision 7786 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Dec 19 13:40:26 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/tree/src/TLeafL.cxx
File length: 6664 byte(s)
Add new class TLeafL to support Long64_t, ULong64_t data types in a TBranch

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9