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 //
12 
13 // system include files
14 
15 // user include files
17 
18 
19 //
20 // constants, enums and typedefs
21 //
22 
23 //
24 // static data member definitions
25 //
26 
27 //
28 // constructors and destructor
29 //
31  const TClass* iClass,
32  const std::string& iPurpose,
33  const FWDisplayProperties& iProperties,
34  const std::string& iModuleLabel,
35  const std::string& iProductInstanceLabel,
36  const std::string& iProcessName,
37  const std::string& iFilterExpression,
38  unsigned int iLayer) :
39  m_name(iName),
40  m_type(iClass),
41  m_purpose(iPurpose),
42  m_displayProperties(iProperties),
43  m_moduleLabel(iModuleLabel),
44  m_productInstanceLabel(iProductInstanceLabel),
45  m_processName(iProcessName),
46  m_layer(iLayer),
47  m_filterExpression(iFilterExpression)
48 {
49 }
50 
51 // FWPhysicsObjectDesc::FWPhysicsObjectDesc(const FWPhysicsObjectDesc& rhs)
52 // {
53 // // do actual copying here;
54 // }
55 
56 //FWPhysicsObjectDesc::~FWPhysicsObjectDesc()
57 //{
58 //}
59 
60 //
61 // assignment operators
62 //
63 // const FWPhysicsObjectDesc& FWPhysicsObjectDesc::operator=(const FWPhysicsObjectDesc& rhs)
64 // {
65 // //An exception safe implementation is
66 // FWPhysicsObjectDesc temp(rhs);
67 // swap(rhs);
68 //
69 // return *this;
70 // }
71 
72 //
73 // member functions
74 //
75 void
77  const std::string& iProductInstance,
78  const std::string& iProcess)
79 {
80  m_moduleLabel = iModule;
81  m_productInstanceLabel = iProductInstance;
82  m_processName = iProcess;
83 }
84 
85 void
87 {
88  m_name = iName;
89 }
90 
91 void
93 {
94  m_displayProperties = iProperties;
95 }
96 
97 //
98 // const member functions
99 //
100 const FWDisplayProperties&
102 {
103  return m_displayProperties;
104 }
105 
106 const std::string&
108 {
109  return m_name;
110 }
111 
112 const TClass*
114 {
115  return m_type;
116 }
117 
118 const std::string&
120 {
121  return m_purpose;
122 }
123 
124 const std::string&
126 {
127  return m_moduleLabel;
128 }
129 const std::string&
131 {
132  return m_productInstanceLabel;
133 }
134 
135 const std::string&
137 {
138  return m_processName;
139 }
140 
141 unsigned int
143 {
144  return m_layer;
145 }
146 
147 const std::string&
149 {
150  return m_filterExpression;
151 }
152 //
153 // static member functions
154 //
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