CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWPhysicsObjectDesc.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWPhysicsObjectDesc
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Tue Jan 15 15:05:02 EST 2008
11 // $Id: FWPhysicsObjectDesc.cc,v 1.7 2009/04/07 15:58:40 chrjones Exp $
12 //
13 
14 // system include files
15 
16 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32  const TClass* iClass,
33  const std::string& iPurpose,
34  const FWDisplayProperties& iProperties,
35  const std::string& iModuleLabel,
36  const std::string& iProductInstanceLabel,
37  const std::string& iProcessName,
38  const std::string& iFilterExpression,
39  unsigned int iLayer) :
40  m_name(iName),
41  m_type(iClass),
42  m_purpose(iPurpose),
43  m_displayProperties(iProperties),
44  m_moduleLabel(iModuleLabel),
45  m_productInstanceLabel(iProductInstanceLabel),
46  m_processName(iProcessName),
47  m_layer(iLayer),
48  m_filterExpression(iFilterExpression)
49 {
50 }
51 
52 // FWPhysicsObjectDesc::FWPhysicsObjectDesc(const FWPhysicsObjectDesc& rhs)
53 // {
54 // // do actual copying here;
55 // }
56 
57 //FWPhysicsObjectDesc::~FWPhysicsObjectDesc()
58 //{
59 //}
60 
61 //
62 // assignment operators
63 //
64 // const FWPhysicsObjectDesc& FWPhysicsObjectDesc::operator=(const FWPhysicsObjectDesc& rhs)
65 // {
66 // //An exception safe implementation is
67 // FWPhysicsObjectDesc temp(rhs);
68 // swap(rhs);
69 //
70 // return *this;
71 // }
72 
73 //
74 // member functions
75 //
76 void
77 FWPhysicsObjectDesc::setLabels(const std::string& iModule,
78  const std::string& iProductInstance,
79  const std::string& iProcess)
80 {
81  m_moduleLabel = iModule;
82  m_productInstanceLabel = iProductInstance;
83  m_processName = iProcess;
84 }
85 
86 void
87 FWPhysicsObjectDesc::setName(const std::string& iName)
88 {
89  m_name = iName;
90 }
91 
92 void
94 {
95  m_displayProperties = iProperties;
96 }
97 
98 //
99 // const member functions
100 //
101 const FWDisplayProperties&
103 {
104  return m_displayProperties;
105 }
106 
107 const std::string&
109 {
110  return m_name;
111 }
112 
113 const TClass*
115 {
116  return m_type;
117 }
118 
119 const std::string&
121 {
122  return m_purpose;
123 }
124 
125 const std::string&
127 {
128  return m_moduleLabel;
129 }
130 const std::string&
132 {
133  return m_productInstanceLabel;
134 }
135 
136 const std::string&
138 {
139  return m_processName;
140 }
141 
142 unsigned int
144 {
145  return m_layer;
146 }
147 
148 const std::string&
150 {
151  return m_filterExpression;
152 }
153 //
154 // static member functions
155 //
const FWDisplayProperties & displayProperties() const
unsigned int layer() const
void setLabels(const std::string &iModule, const std::string &iProductInstance, const std::string &iProcess)
const std::string m_purpose
const TClass * type() const
void setName(const std::string &iName)
const std::string & moduleLabel() const
void setDisplayProperties(const FWDisplayProperties &)
const std::string & productInstanceLabel() const
std::string m_productInstanceLabel
std::string m_filterExpression
const std::string & processName() const
const std::string & filterExpression() const
FWPhysicsObjectDesc(const std::string &iName, const TClass *iClass, const std::string &iPurpose, const FWDisplayProperties &iProperties=FWDisplayProperties::defaultProperties, const std::string &iModuleLabel=std::string(), const std::string &iProductInstanceLabel=std::string(), const std::string &iProcessName=std::string(), const std::string &iFilterExpression=std::string(), unsigned int iLayer=1)
const std::string & name() const
FWDisplayProperties m_displayProperties
const std::string & purpose() const