library: libTree
#include "TCut.h"

TCut


class description - header file - source file - inheritance tree (.pdf)

class TCut : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
TCut

    public:
TCut() TCut(const char* title) TCut(const char* name, const char* title) TCut(const TCut& cut) virtual ~TCut() static TClass* Class() virtual TClass* IsA() const char* operator const char*() const TCut& operator*=(const char* rhs) TCut& operator*=(const TCut& rhs) TCut& operator+=(const char* rhs) TCut& operator+=(const TCut& rhs) TCut& operator=(const char* rhs) TCut& operator=(const TCut& rhs) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members




Class Description

                                                                      
 TCut                                                                 
                                                                      
  A specialized string object used for TTree selections.              
  A TCut object has a name and a title. It does not add any data      
  members compared to a TNamed. It only add a set of operators to     
  facilitate logical string concatenation. For example, assume        
     cut1 = "x<1"  and cut2 = "y>2"                                   
  then                                                                
     cut1 && cut2 will be the string "(x<1)&&(y>2)"                   
                                                                      
  Operators =, +=, +, *, !, &&, || overloaded.                        
                                                                      
   Examples of use:                                                   
     Root > TCut c1 = "x<1"                                           
     Root > TCut c2 = "y<0"                                           
     Root > TCut c3 = c1&&c2                                          
     Root > ntuple.Draw("x", c1)                                      
     Root > ntuple.Draw("x", c1||"x>0")                               
     Root > ntuple.Draw("x", c1&&c2)                                  
     Root > ntuple.Draw("x", "(x+y)"*(c1&&c2))                        
                                                                      

TCut()
 Constructor.
TCut(const char *title)
 Constructor.
TCut(const char *name, const char *title)
 Constructor.
TCut(const TCut &cut)
 Copy Constructor.
~TCut()
 Typical destructor.
TCut& operator=(const char *rhs)
 Assignment.
TCut& operator=(const TCut& rhs)
 Assignment.
TCut& operator+=(const char *rhs)
 Addition.
TCut& operator+=(const TCut& rhs)
 Addition.
TCut& operator*=(const char *rhs)
 Multiplication.
TCut& operator*=(const TCut& rhs)
 Multiplication.
operator const char*()
 Type conversion

Author: Rene Brun 14/04/97
Last update: root/tree:$Name: $:$Id: TCut.cxx,v 1.5 2005/11/11 22:16:04 pcanal Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.