Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Framework
interface
ComponentDescription.h
Go to the documentation of this file.
1
#ifndef Framework_ComponentDescription_h
2
#define Framework_ComponentDescription_h
3
// -*- C++ -*-
4
//
5
// Package: Framework
6
// Class : ComponentDescription
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Thu Dec 15 14:07:57 EST 2005
19
// $Id: ComponentDescription.h,v 1.5 2007/02/10 19:14:12 chrjones Exp $
20
//
21
22
// system include files
23
#include <string>
24
25
// user include files
26
#include "
DataFormats/Provenance/interface/PassID.h
"
27
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
28
#include "
DataFormats/Provenance/interface/ReleaseVersion.h
"
29
30
// forward declarations
31
namespace
edm {
32
namespace
eventsetup {
33
struct
ComponentDescription
{
34
std::string
label_
;
// A human friendly string that uniquely identifies the label
35
std::string
type_
;
// A human friendly string that uniquely identifies the name
36
bool
isSource_
;
37
bool
isLooper_
;
38
39
// The following set of parameters comes from
40
// DataFormats/Provenance/interface/ModuleDescription.h
41
// to match and have identical provenance information
42
43
// ID of parameter set of the creator
44
ParameterSetID
pid_
;
45
46
// the release tag of the executable
47
ReleaseVersion
releaseVersion_
;
48
49
// the physical process that this program was part of (e.g. production)
50
std::string
processName_
;
51
52
// what the heck is this? I think its the version of the processName_
53
// e.g. second production pass
54
PassID
passID_
;
55
/* ----------- end of provenance information ------------- */
56
57
58
ComponentDescription
() :
59
label_
(),
60
type_
(),
61
isSource_
(
false
),
62
isLooper_
(
false
),
63
pid_
(),
64
releaseVersion_
(),
65
processName_
(),
66
passID_
() {}
67
68
ComponentDescription
(
const
std::string& iType,
69
const
std::string& iLabel,
70
bool
iIsSource,
71
bool
iIsLooper=
false
) :
72
label_
(iLabel),
73
type_
(iType),
74
isSource_
(iIsSource),
75
isLooper_
(iIsLooper),
76
pid_
(),
77
releaseVersion_
(),
78
processName_
(),
79
passID_
() {}
80
81
bool
operator<
(
const
ComponentDescription
& iRHS)
const
{
82
return
(
type_
== iRHS.
type_
) ? (
label_
< iRHS.
label_
) : (
type_
<iRHS.
type_
);
83
}
84
bool
operator==
(
const
ComponentDescription
& iRHS)
const
{
85
return
label_
== iRHS.
label_
&&
86
type_
== iRHS.
type_
&&
87
isSource_
== iRHS.
isSource_
;
88
}
89
};
90
91
}
92
}
93
94
95
96
#endif
edm::eventsetup::ComponentDescription::label_
std::string label_
Definition:
ComponentDescription.h:34
edm::eventsetup::ComponentDescription::ComponentDescription
ComponentDescription(const std::string &iType, const std::string &iLabel, bool iIsSource, bool iIsLooper=false)
Definition:
ComponentDescription.h:68
edm::eventsetup::ComponentDescription::isSource_
bool isSource_
Definition:
ComponentDescription.h:36
edm::eventsetup::ComponentDescription::ComponentDescription
ComponentDescription()
Definition:
ComponentDescription.h:58
edm::Hash< ParameterSetType >
funct::false
false
Definition:
Factorize.h:34
edm::eventsetup::ComponentDescription::pid_
ParameterSetID pid_
Definition:
ComponentDescription.h:44
edm::eventsetup::ComponentDescription::processName_
std::string processName_
Definition:
ComponentDescription.h:50
edm::eventsetup::ComponentDescription::releaseVersion_
ReleaseVersion releaseVersion_
Definition:
ComponentDescription.h:47
edm::eventsetup::ComponentDescription::isLooper_
bool isLooper_
Definition:
ComponentDescription.h:37
edm::eventsetup::ComponentDescription::operator<
bool operator<(const ComponentDescription &iRHS) const
Definition:
ComponentDescription.h:81
edm::eventsetup::ComponentDescription::operator==
bool operator==(const ComponentDescription &iRHS) const
Definition:
ComponentDescription.h:84
ReleaseVersion.h
edm::eventsetup::ComponentDescription::passID_
PassID passID_
Definition:
ComponentDescription.h:54
ParameterSetID.h
edm::eventsetup::ComponentDescription::type_
std::string type_
Definition:
ComponentDescription.h:35
PassID.h
edm::ReleaseVersion
std::string ReleaseVersion
Definition:
ReleaseVersion.h:7
edm::eventsetup::ComponentDescription
Definition:
ComponentDescription.h:33
edm::PassID
std::string PassID
Definition:
PassID.h:8
Generated for CMSSW Reference Manual by
1.8.5