CMS 3D CMS Logo

NotCombiner.h

Go to the documentation of this file.
00001 #ifndef Utilities_NotCombiner_h
00002 #define Utilities_NotCombiner_h
00003 /* \class reco::parser::NotCombiner
00004  *
00005  * logical NOT combiner
00006  *
00007  * \author original version: Chris Jones, Cornell, 
00008  *         adapted to Reflex by Luca Lista, INFN
00009  *
00010  * \version $Revision: 1.1 $
00011  *
00012  */
00013 #include "PhysicsTools/Utilities/src/SelectorBase.h"
00014 #include "PhysicsTools/Utilities/src/SelectorPtr.h"
00015 
00016 namespace reco {
00017   namespace parser {    
00018     struct NotCombiner : public SelectorBase {
00019       NotCombiner( SelectorPtr arg ) :
00020         arg_( arg ) {}
00021       virtual bool operator()( const ROOT::Reflex::Object& o ) const {
00022         return ! (*arg_)( o );
00023       }
00024     private:
00025       SelectorPtr arg_;
00026     };
00027   }
00028 }
00029 
00030 #endif

Generated on Tue Jun 9 17:42:52 2009 for CMSSW by  doxygen 1.5.4