CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/Fireworks/Core/src/FWPhysicsObjectDesc.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Core
00004 // Class  :     FWPhysicsObjectDesc
00005 //
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Tue Jan 15 15:05:02 EST 2008
00011 // $Id: FWPhysicsObjectDesc.cc,v 1.7 2009/04/07 15:58:40 chrjones Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "Fireworks/Core/interface/FWPhysicsObjectDesc.h"
00018 
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 
00024 //
00025 // static data member definitions
00026 //
00027 
00028 //
00029 // constructors and destructor
00030 //
00031 FWPhysicsObjectDesc::FWPhysicsObjectDesc(const std::string& iName,
00032                                          const TClass* iClass,
00033                                          const std::string& iPurpose,
00034                                          const FWDisplayProperties& iProperties,
00035                                          const std::string& iModuleLabel,
00036                                          const std::string& iProductInstanceLabel,
00037                                          const std::string& iProcessName,
00038                                          const std::string& iFilterExpression,
00039                                          unsigned int iLayer) :
00040    m_name(iName),
00041    m_type(iClass),
00042    m_purpose(iPurpose),
00043    m_displayProperties(iProperties),
00044    m_moduleLabel(iModuleLabel),
00045    m_productInstanceLabel(iProductInstanceLabel),
00046    m_processName(iProcessName),
00047    m_layer(iLayer),
00048    m_filterExpression(iFilterExpression)
00049 {
00050 }
00051 
00052 // FWPhysicsObjectDesc::FWPhysicsObjectDesc(const FWPhysicsObjectDesc& rhs)
00053 // {
00054 //    // do actual copying here;
00055 // }
00056 
00057 //FWPhysicsObjectDesc::~FWPhysicsObjectDesc()
00058 //{
00059 //}
00060 
00061 //
00062 // assignment operators
00063 //
00064 // const FWPhysicsObjectDesc& FWPhysicsObjectDesc::operator=(const FWPhysicsObjectDesc& rhs)
00065 // {
00066 //   //An exception safe implementation is
00067 //   FWPhysicsObjectDesc temp(rhs);
00068 //   swap(rhs);
00069 //
00070 //   return *this;
00071 // }
00072 
00073 //
00074 // member functions
00075 //
00076 void
00077 FWPhysicsObjectDesc::setLabels(const std::string& iModule,
00078                                const std::string& iProductInstance,
00079                                const std::string& iProcess)
00080 {
00081    m_moduleLabel = iModule;
00082    m_productInstanceLabel = iProductInstance;
00083    m_processName = iProcess;
00084 }
00085 
00086 void
00087 FWPhysicsObjectDesc::setName(const std::string& iName)
00088 {
00089    m_name = iName;
00090 }
00091 
00092 void 
00093 FWPhysicsObjectDesc::setDisplayProperties( const FWDisplayProperties& iProperties)
00094 {
00095    m_displayProperties = iProperties;
00096 }
00097 
00098 //
00099 // const member functions
00100 //
00101 const FWDisplayProperties&
00102 FWPhysicsObjectDesc::displayProperties() const
00103 {
00104    return m_displayProperties;
00105 }
00106 
00107 const std::string&
00108 FWPhysicsObjectDesc::name() const
00109 {
00110    return m_name;
00111 }
00112 
00113 const TClass*
00114 FWPhysicsObjectDesc::type() const
00115 {
00116    return m_type;
00117 }
00118 
00119 const std::string&
00120 FWPhysicsObjectDesc::purpose() const
00121 {
00122    return m_purpose;
00123 }
00124 
00125 const std::string&
00126 FWPhysicsObjectDesc::moduleLabel() const
00127 {
00128    return m_moduleLabel;
00129 }
00130 const std::string&
00131 FWPhysicsObjectDesc::productInstanceLabel() const
00132 {
00133    return m_productInstanceLabel;
00134 }
00135 
00136 const std::string&
00137 FWPhysicsObjectDesc::processName() const
00138 {
00139    return m_processName;
00140 }
00141 
00142 unsigned int
00143 FWPhysicsObjectDesc::layer() const
00144 {
00145    return m_layer;
00146 }
00147 
00148 const std::string&
00149 FWPhysicsObjectDesc::filterExpression() const
00150 {
00151    return m_filterExpression;
00152 }
00153 //
00154 // static member functions
00155 //