CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/Fireworks/Core/src/FWModelIdFromEveSelector.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Core
00004 // Class  :     FWModelIdFromEveSelector
00005 // 
00006 // Implementation:
00007 //     [Notes on implementation]
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Wed Oct 28 11:44:16 CET 2009
00011 // $Id: FWModelIdFromEveSelector.cc,v 1.1 2009/10/28 14:36:58 chrjones Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "Fireworks/Core/interface/FWModelIdFromEveSelector.h"
00018 #include "Fireworks/Core/interface/FWEventItem.h"
00019 
00020 
00021 //
00022 // constants, enums and typedefs
00023 //
00024 
00025 //
00026 // static data member definitions
00027 //
00028 
00029 //
00030 // constructors and destructor
00031 //
00032 //FWModelIdFromEveSelector::FWModelIdFromEveSelector()
00033 //{
00034 //}
00035 
00036 // FWModelIdFromEveSelector::FWModelIdFromEveSelector(const FWModelIdFromEveSelector& rhs)
00037 // {
00038 //    // do actual copying here;
00039 // }
00040 
00041 //FWModelIdFromEveSelector::~FWModelIdFromEveSelector()
00042 //{
00043 //}
00044 
00045 //
00046 // assignment operators
00047 //
00048 // const FWModelIdFromEveSelector& FWModelIdFromEveSelector::operator=(const FWModelIdFromEveSelector& rhs)
00049 // {
00050 //   //An exception safe implementation is
00051 //   FWModelIdFromEveSelector temp(rhs);
00052 //   swap(rhs);
00053 //
00054 //   return *this;
00055 // }
00056 
00057 //
00058 // member functions
00059 //
00060 void 
00061 FWModelIdFromEveSelector::doSelect()
00062 {
00063    if( not m_id.item()->modelInfo(m_id.index()).isSelected() ) {
00064       m_id.select();
00065    }
00066 }
00067 
00068 void 
00069 FWModelIdFromEveSelector::doUnselect()
00070 {
00071    if( m_id.item()->modelInfo(m_id.index()).isSelected() ) {
00072       m_id.unselect();
00073    }
00074 }
00075 
00076 //
00077 // const member functions
00078 //
00079 
00080 //
00081 // static member functions
00082 //