TCut


class description - source file - inheritance tree

class TCut : public TNamed


    public:
TCut TCut() TCut TCut(const char* title) TCut TCut(const char* name, const char* title) TCut TCut(const TCut& cut) virtual void ~TCut() TClass* Class() virtual TClass* IsA() const char* operator const char*() const TCut& operator!() TCut& operator+=(const char* rhs) TCut& operator+=(const TCut& rhs) TCut& operator=(const TCut& rhs) TCut& operator=(const char* rhs) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(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)                                  
                                                                      


TCut() : TNamed()

TCut(const char *title) : TNamed("CUT",title)

TCut(const char *name, const char *title) : TNamed(name,title)

TCut(const TCut &cut) : TNamed(cut)
fName  = cut.fName;
fTitle = cut.fTitle;

~TCut()



Inline Functions


              TCut& operator=(const char* rhs)
              TCut& operator=(const TCut& rhs)
              TCut& operator+=(const char* rhs)
              TCut& operator+=(const TCut& rhs)
              TCut& operator!()
              char* operator const char*() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Rene Brun 14/04/97
Last update: 2.23/12 26/01/2000 09.45.01 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.