SFrame 3.6
core/src/SGeneratorCut.cxx
Go to the documentation of this file.
00001 // $Id: SGeneratorCut.cxx 120 2009-08-27 12:02:57Z krasznaa $
00002 /***************************************************************************
00003  * @Project: SFrame - ROOT-based analysis framework for ATLAS
00004  * @Package: Core
00005  *
00006  * @author Stefan Ask       <Stefan.Ask@cern.ch>           - Manchester
00007  * @author David Berge      <David.Berge@cern.ch>          - CERN
00008  * @author Johannes Haller  <Johannes.Haller@cern.ch>      - Hamburg
00009  * @author A. Krasznahorkay <Attila.Krasznahorkay@cern.ch> - CERN/Debrecen
00010  *
00011  ***************************************************************************/
00012 
00013 // Local include(s):
00014 #include "../include/SGeneratorCut.h"
00015 
00016 #ifndef DOXYGEN_IGNORE
00017 ClassImp( SGeneratorCut );
00018 #endif // DOXYGEN_IGNORE
00019 
00027 SGeneratorCut::SGeneratorCut( const TString& treename, const TString& formula )
00028    : m_tree( treename ), m_formula( formula ) {
00029 
00030 }
00031 
00035 SGeneratorCut::~SGeneratorCut() {
00036 
00037 }
00038 
00042 SGeneratorCut& SGeneratorCut::operator= ( const SGeneratorCut& parent ) {
00043 
00044   this->m_tree = parent.m_tree;
00045   this->m_formula = parent.m_formula;
00046 
00047   return *this;
00048 
00049 }
00050 
00060 Bool_t SGeneratorCut::operator== ( const SGeneratorCut& rh ) const {
00061 
00062   if( ( this->m_tree == rh.m_tree ) &&
00063       ( this->m_formula == rh.m_formula ) ) {
00064     return kTRUE;
00065   } else {
00066     return kFALSE;
00067   }
00068 
00069 }
00070 
00080 Bool_t SGeneratorCut::operator!= ( const SGeneratorCut& rh ) const {
00081 
00082   return ( ! ( *this == rh ) );
00083 
00084 }