Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // Package:     Core
0004 // Class  :     FWPhysicsObjectDesc
0005 //
0006 // Implementation:
0007 //     <Notes on implementation>
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Tue Jan 15 15:05:02 EST 2008
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "Fireworks/Core/interface/FWPhysicsObjectDesc.h"
0017 
0018 //
0019 // constants, enums and typedefs
0020 //
0021 
0022 //
0023 // static data member definitions
0024 //
0025 
0026 //
0027 // constructors and destructor
0028 //
0029 FWPhysicsObjectDesc::FWPhysicsObjectDesc(const std::string& iName,
0030                                          const TClass* iClass,
0031                                          const std::string& iPurpose,
0032                                          const FWDisplayProperties& iProperties,
0033                                          const std::string& iModuleLabel,
0034                                          const std::string& iProductInstanceLabel,
0035                                          const std::string& iProcessName,
0036                                          const std::string& iFilterExpression,
0037                                          unsigned int iLayer)
0038     : m_name(iName),
0039       m_type(iClass),
0040       m_purpose(iPurpose),
0041       m_displayProperties(iProperties),
0042       m_moduleLabel(iModuleLabel),
0043       m_productInstanceLabel(iProductInstanceLabel),
0044       m_processName(iProcessName),
0045       m_layer(iLayer),
0046       m_filterExpression(iFilterExpression) {}
0047 
0048 // FWPhysicsObjectDesc::FWPhysicsObjectDesc(const FWPhysicsObjectDesc& rhs)
0049 // {
0050 //    // do actual copying here;
0051 // }
0052 
0053 //FWPhysicsObjectDesc::~FWPhysicsObjectDesc()
0054 //{
0055 //}
0056 
0057 //
0058 // assignment operators
0059 //
0060 // const FWPhysicsObjectDesc& FWPhysicsObjectDesc::operator=(const FWPhysicsObjectDesc& rhs)
0061 // {
0062 //   //An exception safe implementation is
0063 //   FWPhysicsObjectDesc temp(rhs);
0064 //   swap(rhs);
0065 //
0066 //   return *this;
0067 // }
0068 
0069 //
0070 // member functions
0071 //
0072 void FWPhysicsObjectDesc::setLabels(const std::string& iModule,
0073                                     const std::string& iProductInstance,
0074                                     const std::string& iProcess) {
0075   m_moduleLabel = iModule;
0076   m_productInstanceLabel = iProductInstance;
0077   m_processName = iProcess;
0078 }
0079 
0080 void FWPhysicsObjectDesc::setName(const std::string& iName) { m_name = iName; }
0081 
0082 void FWPhysicsObjectDesc::setDisplayProperties(const FWDisplayProperties& iProperties) {
0083   m_displayProperties = iProperties;
0084 }
0085 
0086 //
0087 // const member functions
0088 //
0089 const FWDisplayProperties& FWPhysicsObjectDesc::displayProperties() const { return m_displayProperties; }
0090 
0091 const std::string& FWPhysicsObjectDesc::name() const { return m_name; }
0092 
0093 const TClass* FWPhysicsObjectDesc::type() const { return m_type; }
0094 
0095 const std::string& FWPhysicsObjectDesc::purpose() const { return m_purpose; }
0096 
0097 const std::string& FWPhysicsObjectDesc::moduleLabel() const { return m_moduleLabel; }
0098 const std::string& FWPhysicsObjectDesc::productInstanceLabel() const { return m_productInstanceLabel; }
0099 
0100 const std::string& FWPhysicsObjectDesc::processName() const { return m_processName; }
0101 
0102 unsigned int FWPhysicsObjectDesc::layer() const { return m_layer; }
0103 
0104 const std::string& FWPhysicsObjectDesc::filterExpression() const { return m_filterExpression; }
0105 //
0106 // static member functions
0107 //