CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 // constants, enums and typedefs
20 //
21 
22 //
23 // static data member definitions
24 //
25 
26 //
27 // constructors and destructor
28 //
30  const TClass* iClass,
31  const std::string& iPurpose,
32  const FWDisplayProperties& iProperties,
33  const std::string& iModuleLabel,
34  const std::string& iProductInstanceLabel,
35  const std::string& iProcessName,
36  const std::string& iFilterExpression,
37  unsigned int iLayer)
38  : m_name(iName),
39  m_type(iClass),
40  m_purpose(iPurpose),
41  m_displayProperties(iProperties),
42  m_moduleLabel(iModuleLabel),
43  m_productInstanceLabel(iProductInstanceLabel),
44  m_processName(iProcessName),
45  m_layer(iLayer),
46  m_filterExpression(iFilterExpression) {}
47 
48 // FWPhysicsObjectDesc::FWPhysicsObjectDesc(const FWPhysicsObjectDesc& rhs)
49 // {
50 // // do actual copying here;
51 // }
52 
53 //FWPhysicsObjectDesc::~FWPhysicsObjectDesc()
54 //{
55 //}
56 
57 //
58 // assignment operators
59 //
60 // const FWPhysicsObjectDesc& FWPhysicsObjectDesc::operator=(const FWPhysicsObjectDesc& rhs)
61 // {
62 // //An exception safe implementation is
63 // FWPhysicsObjectDesc temp(rhs);
64 // swap(rhs);
65 //
66 // return *this;
67 // }
68 
69 //
70 // member functions
71 //
73  const std::string& iProductInstance,
74  const std::string& iProcess) {
75  m_moduleLabel = iModule;
76  m_productInstanceLabel = iProductInstance;
77  m_processName = iProcess;
78 }
79 
80 void FWPhysicsObjectDesc::setName(const std::string& iName) { m_name = iName; }
81 
83  m_displayProperties = iProperties;
84 }
85 
86 //
87 // const member functions
88 //
90 
91 const std::string& FWPhysicsObjectDesc::name() const { return m_name; }
92 
93 const TClass* FWPhysicsObjectDesc::type() const { return m_type; }
94 
96 
99 
101 
102 unsigned int FWPhysicsObjectDesc::layer() const { return m_layer; }
103 
105 //
106 // static member functions
107 //
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