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 FWCore_Framework_ComponentDescription_h
2
#define FWCore_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
//
20
21
// user include files
22
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
23
#include "
DataFormats/Provenance/interface/PassID.h
"
24
#include "
DataFormats/Provenance/interface/ReleaseVersion.h
"
25
26
// system include files
27
#include <string>
28
29
// forward declarations
30
namespace
edm {
31
namespace
eventsetup {
32
struct
ComponentDescription
{
33
std::string
label_
;
// A human friendly string that uniquely identifies the label
34
std::string
type_
;
// A human friendly string that uniquely identifies the name
35
bool
isSource_
;
36
bool
isLooper_
;
37
38
// The following set of parameters comes from
39
// DataFormats/Provenance/interface/ModuleDescription.h
40
// to match and have identical provenance information
41
42
// ID of parameter set of the creator
43
ParameterSetID
pid_
;
44
45
// the release tag of the executable
46
ReleaseVersion
releaseVersion_
;
47
48
// the physical process that this program was part of (e.g. production)
49
std::string
processName_
;
50
51
// what the heck is this? I think its the version of the processName_
52
// e.g. second production pass
53
PassID
passID_
;
54
/* ----------- end of provenance information ------------- */
55
56
ComponentDescription
() :
57
label_
(),
58
type_
(),
59
isSource_
(
false
),
60
isLooper_
(
false
),
61
pid_
(),
62
releaseVersion_
(),
63
processName_
(),
64
passID_
() {}
65
66
ComponentDescription
(std::string
const
& iType,
67
std::string
const
& iLabel,
68
bool
iIsSource,
69
bool
iIsLooper =
false
) :
70
label_
(iLabel),
71
type_
(iType),
72
isSource_
(iIsSource),
73
isLooper_
(iIsLooper),
74
pid_
(),
75
releaseVersion_
(),
76
processName_
(),
77
passID_
() {}
78
79
bool
operator<
(
ComponentDescription
const
& iRHS)
const
{
80
return
(
type_
== iRHS.
type_
) ? (
label_
< iRHS.
label_
) : (
type_
<iRHS.
type_
);
81
}
82
bool
operator==
(
ComponentDescription
const
& iRHS)
const
{
83
return
label_
== iRHS.
label_
&&
84
type_
== iRHS.
type_
&&
85
isSource_
== iRHS.
isSource_
;
86
}
87
};
88
}
89
}
90
#endif
edm::eventsetup::ComponentDescription::label_
std::string label_
Definition:
ComponentDescription.h:33
edm::eventsetup::ComponentDescription::isSource_
bool isSource_
Definition:
ComponentDescription.h:35
edm::eventsetup::ComponentDescription::ComponentDescription
ComponentDescription()
Definition:
ComponentDescription.h:56
edm::Hash< ParameterSetType >
funct::false
false
Definition:
Factorize.h:34
edm::eventsetup::ComponentDescription::pid_
ParameterSetID pid_
Definition:
ComponentDescription.h:43
edm::eventsetup::ComponentDescription::processName_
std::string processName_
Definition:
ComponentDescription.h:49
edm::eventsetup::ComponentDescription::releaseVersion_
ReleaseVersion releaseVersion_
Definition:
ComponentDescription.h:46
edm::eventsetup::ComponentDescription::operator==
bool operator==(ComponentDescription const &iRHS) const
Definition:
ComponentDescription.h:82
edm::eventsetup::ComponentDescription::isLooper_
bool isLooper_
Definition:
ComponentDescription.h:36
ReleaseVersion.h
edm::eventsetup::ComponentDescription::passID_
PassID passID_
Definition:
ComponentDescription.h:53
ParameterSetID.h
edm::eventsetup::ComponentDescription::ComponentDescription
ComponentDescription(std::string const &iType, std::string const &iLabel, bool iIsSource, bool iIsLooper=false)
Definition:
ComponentDescription.h:66
edm::eventsetup::ComponentDescription::type_
std::string type_
Definition:
ComponentDescription.h:34
PassID.h
edm::ReleaseVersion
std::string ReleaseVersion
Definition:
ReleaseVersion.h:7
edm::eventsetup::ComponentDescription
Definition:
ComponentDescription.h:32
edm::eventsetup::ComponentDescription::operator<
bool operator<(ComponentDescription const &iRHS) const
Definition:
ComponentDescription.h:79
edm::PassID
std::string PassID
Definition:
PassID.h:8
Generated for CMSSW Reference Manual by
1.8.5