Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:17

0001 // -*- C++ -*-
0002 //
0003 // Package:     Core
0004 // Class  :     FWModelIdFromEveSelector
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Wed Oct 28 11:44:16 CET 2009
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "Fireworks/Core/interface/FWModelIdFromEveSelector.h"
0017 #include "Fireworks/Core/interface/FWEventItem.h"
0018 
0019 //
0020 // constants, enums and typedefs
0021 //
0022 
0023 //
0024 // static data member definitions
0025 //
0026 
0027 //
0028 // constructors and destructor
0029 //
0030 //FWModelIdFromEveSelector::FWModelIdFromEveSelector()
0031 //{
0032 //}
0033 
0034 // FWModelIdFromEveSelector::FWModelIdFromEveSelector(const FWModelIdFromEveSelector& rhs)
0035 // {
0036 //    // do actual copying here;
0037 // }
0038 
0039 //FWModelIdFromEveSelector::~FWModelIdFromEveSelector()
0040 //{
0041 //}
0042 
0043 //
0044 // assignment operators
0045 //
0046 // const FWModelIdFromEveSelector& FWModelIdFromEveSelector::operator=(const FWModelIdFromEveSelector& rhs)
0047 // {
0048 //   //An exception safe implementation is
0049 //   FWModelIdFromEveSelector temp(rhs);
0050 //   swap(rhs);
0051 //
0052 //   return *this;
0053 // }
0054 
0055 //
0056 // member functions
0057 //
0058 void FWModelIdFromEveSelector::doSelect() {
0059   if (not m_id.item()->modelInfo(m_id.index()).isSelected()) {
0060     m_id.select();
0061   }
0062 }
0063 
0064 void FWModelIdFromEveSelector::doUnselect() {
0065   if (m_id.item()->modelInfo(m_id.index()).isSelected()) {
0066     m_id.unselect();
0067   }
0068 }
0069 
0070 //
0071 // const member functions
0072 //
0073 
0074 //
0075 // static member functions
0076 //