[root] / trunk / graf2d / graf / src / TCutG.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/graf/src/TCutG.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: 13136 byte(s)
Diff to previous 43280
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 43280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 22:35:37 2012 UTC (2 years, 10 months ago) by pcanal
File length: 13096 byte(s)
Diff to previous 43271
Correct cov 41954 (typo in operator=)

Revision 43271 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 05:53:52 2012 UTC (2 years, 10 months ago) by pcanal
File length: 13088 byte(s)
Diff to previous 37309
Add missing assign operator
Coverity number 35264,35265,35266,35267,35270,35273,35274,35275,
35281,35382,35383,35284,35285,35286,35286,35287,35288,35289,35290,35291,35292,35293,35294
35304,35305,35306,35307,35308,
35356,35371,35372,35378,35379,
35382

Revision 37309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 6 00:10:29 2010 UTC (4 years, 1 month ago) by pcanal
File length: 12739 byte(s)
Diff to previous 36495
Fix memory leak (make SetObject consistent with the destructor)

Revision 36495 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 3 13:07:11 2010 UTC (4 years, 2 months ago) by couet
File length: 12288 byte(s)
Diff to previous 35502
- Remove IsInside(x,y). It is now inherited from TGraph.

Revision 35502 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 06:20:30 2010 UTC (4 years, 4 months ago) by brun
File length: 13210 byte(s)
Diff to previous 35496
Fix calls to strlcpy

Revision 35496 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 21:52:03 2010 UTC (4 years, 4 months ago) by brun
File length: 13204 byte(s)
Diff to previous 35475
Fix calls to strlcpy

Revision 35475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 18:04:46 2010 UTC (4 years, 4 months ago) by brun
File length: 13210 byte(s)
Diff to previous 35466
Replace calls to strncpy by strlcpy

Revision 35466 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 14:32:04 2010 UTC (4 years, 4 months ago) by brun
File length: 13210 byte(s)
Diff to previous 35432
Fix calls to strncpy

Revision 35432 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 08:57:33 2010 UTC (4 years, 4 months ago) by brun
File length: 13204 byte(s)
Diff to previous 31959
Replace calls to strcpy by strncpy

Revision 31959 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 4 12:37:30 2010 UTC (5 years ago) by brun
File length: 13189 byte(s)
Diff to previous 31952
Improve documentation.

Revision 31952 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 4 08:24:07 2010 UTC (5 years ago) by brun
File length: 12662 byte(s)
Diff to previous 29443
Add 2 new functions:
Double_t TCutG::Area() const
   // Compute the area inside this TCutG

void TCutG::Center(Double_t &cx, Double_t &cy) const
   // Compute the center x,y of this TCutG

Revision 29443 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 11 10:49:10 2009 UTC (5 years, 6 months ago) by brun
File length: 11399 byte(s)
Diff to previous 23140
Rename TCutG::Integral to TCutg::IntegralHist to avoid a clash with the new TGraph::Integral.

Revision 23140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 11 11:01:39 2008 UTC (6 years, 9 months ago) by rdm
File length: 11395 byte(s)
Diff to previous 21789
move the following directories to "graf2d":

asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf

move the following directories to "graf3d":

eve, ftgl, g3d, gl, x3d

Revision 21789 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 21 10:52:43 2008 UTC (7 years ago) by couet
Original Path: trunk/graf/src/TCutG.cxx
File length: 11395 byte(s)
Diff to previous 21441
- In the class header, replace:
  End_Html*/
  by:
  End_Html */
  (ie: a space is added) in order to bypass a tiny THtml parsing problem.

Revision 21441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 18 09:38:16 2007 UTC (7 years, 1 month ago) by couet
Original Path: trunk/graf/src/TCutG.cxx
File length: 11394 byte(s)
Diff to previous 20882
- Header reformating.
- Insist on the fact that the polygon should closed.

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/graf/src/TCutG.cxx
File length: 13136 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/graf/src/TCutG.cxx
File length: 13136 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/graf/src/TCutG.cxx
File length: 13184 byte(s)
Diff to previous 17727
remove :$ from tag line

Revision 17727 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 14:35:45 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 13194 byte(s)
Diff to previous 17338
In the Streamer functions replace the lines like
         TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
         TPad::Class()->WriteBuffer(b,this);
by
         b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
         b.WriteClassBuffer(TPad::Class(),this);

Revision 17338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 16:10:11 2007 UTC (8 years ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 13186 byte(s)
Diff to previous 15672
Remove TMath.h from TH1.h and add TMath.h to all files previously assuming TMath.h
via TH1.h
This should complete the changes related to TMath.

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 13169 byte(s)
Diff to previous 14336
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 14336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by pcanal
Original Path: trunk/graf/src/TCutG.cxx
File length: 13160 byte(s)
Diff to previous 13243
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning:  This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined.  Simply add the
proper include directive.

Revision 13243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 15 14:04:51 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TCutG.cxx
File length: 13139 byte(s)
Diff to previous 12643
- Mods to make the rules checker happy

Revision 12643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 07:25:22 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 12928 byte(s)
Diff to previous 9329
Fix coding conventions violations.

Revision 9329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 26 13:38:57 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 12922 byte(s)
Diff to previous 8287
Add a new function:
Double_t TCutG::Integral(TH2 *h, Option_t *option) const
   // Compute the integral of 2-d histogram h for all bins inside the cut
   // if option "width" is specified, the integral is the sum of
   // the bin contents multiplied by the bin width in x and in y.

Revision 8287 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 22 11:31:17 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 11303 byte(s)
Diff to previous 5414
Implement copy constructor for all TGraph family of classes

Revision 5414 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 10 17:09:58 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 11022 byte(s)
Diff to previous 4922
Use new function TMath::IsInside in TCutG::IsInside

Revision 4922 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 16:23:39 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 11319 byte(s)
Diff to previous 4242
In TCutG default constructor, do not add the cut to the list of specials.
When reading from a file, the cut is added in Streamer.

Revision 4242 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 26 07:05:57 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 11361 byte(s)
Diff to previous 4186
This pacth from Philippe adds:

  - Support for 2D graphical Cuts for TClonesArray members
  - Support for 1D graphical Cuts by using their X minimum and
        maximum as ( Xmin <= Formula <= Xmax ).

  - Support for the following TTreeFormula special functions.

        Entry$   : return the current entry number (== TTree::GetReadEntry())
        Entries$ : return the total number of entries (== TTree::GetEntries())
        Length$  : return the total number of element of this formula for this
                        entry (==TTreeFormula::GetNdata())
        Iteration$: return the current iteration over this formula for this
                        entry (i.e. varies from 0 to LENGTH$).

  - Synchronization of the dimensions of all the formulas involved in
        a Draw call.

    For example for (with fMatrix[4][4] and fTracks[fNtrack].fVertex[3]
      T->Draw("fMatrix","fVertex>=2");

    The corrected result is histogram use something like:

        if (fTracks[0].fVertex[0]>=2) fMatrix[0][0];
        if (fTracks[0].fVertex[1]>=2) fMatrix[0][1];
        if (fTracks[0].fVertex[2]>=2) fMatrix[0][2];
        if (fTracks[1].fVertex[0]>=2) fMatrix[1][0];
        if (fTracks[1].fVertex[1]>=2) fMatrix[1][1];
        if (fTracks[1].fVertex[2]>=2) fMatrix[1][2];
        ....

    The old behavior was:

        if (fTracks[0].fVertex[0]>=2) fMatrix[0][0];
        if (fTracks[0].fVertex[1]>=2) fMatrix[0][1];
        if (fTracks[0].fVertex[2]>=2) fMatrix[0][2];
        if (fTracks[1].fVertex[0]>=2) fMatrix[0][3]; // note the extra step here.
        if (fTracks[1].fVertex[1]>=2) fMatrix[1][0];
        if (fTracks[1].fVertex[2]>=2) fMatrix[1][1];
        ....

Revision 4186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 15 22:11:47 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 10646 byte(s)
Diff to previous 3748
Increment class version to 2.
Members fObjectX, fObjectY declared non persistent.

Add additional comments to indicate how to create/close a TCutG
with the graphics editor.

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/graf/src/TCutG.cxx
File length: 10195 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/graf/src/TCutG.cxx
File length: 10195 byte(s)
Diff to previous 1719
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 1719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 28 11:04:07 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 10194 byte(s)
Diff to previous 1205
More changes (hopefully last cleanup) introducing constness in the API.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 10170 byte(s)
Diff to previous 1148
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 1148 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 9 18:23:51 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 10164 byte(s)
Diff to previous 1088
Move TCutG::Streamer to TCutG.cxx. In Streamer add the cut to the list
of Root special objects

Revision 1088 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 28 07:26:58 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 9819 byte(s)
Diff to previous 608
Fix a problem in TCutG::IsInside (thanks Otto Schaille). The original algorithm
from Rolf Nierhaus did not work correctly in case the Y value was equal
to the Y of one of the points and two consecutive points had the same Y value.

Revision 608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 07:41:01 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 9834 byte(s)
Diff to previous 442
Several classes modified to :
 - take into account the renaming of kObjInCanvas to kMustCleanup
 - the introduction of FindObject instead of GetPrimitive

Revision 442 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 10 14:03:59 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 9840 byte(s)
Diff to previous 144
Update comments in the header of the class TCutG to indicate that the
created object is added automatically to gROOT->GetListOfSpecials()

Revision 144 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:51:17 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TCutG.cxx
File length: 9918 byte(s)
Diff to previous 3
- Mods in TCutG.
  New constructor:
   TCutG(const char *name, Int_t n, Double_t *x, Double_t *y);
  Signature for function IsInside changed to:
   virtual Int_t  IsInside(Double_t x, Double_t y);

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/graf/src/TCutG.cxx
File length: 8018 byte(s)
Copied from: branches/rdm/graf/src/TCutG.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/graf/src/TCutG.cxx
File length: 8018 byte(s)
Initial import of ROOT into CVS

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