FWCore
Framework
src
edmodule_mightGet_config.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Framework
4
// Class : edmodule_mightGet_config
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Chris Jones
10
// Created: Thu Feb 2 14:26:42 CST 2012
11
//
12
13
// system include files
14
15
// user include files
16
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
17
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
18
#include "
FWCore/Framework/src/edmodule_mightGet_config.h
"
19
20
//
21
// constants, enums and typedefs
22
//
23
24
//
25
// static data member definitions
26
//
27
28
static
const
std::string
kMightGet
(
"mightGet"
);
29
static
const
char
*
const
kComment
=
30
"List contains the branch names for the EDProducts which might be requested by the module.\n"
31
"The format for identifying the EDProduct is the same as the one used for OutputModules, "
32
"except no wild cards are allowed. E.g.\n"
33
"Foos_foomodule_whichFoo_RECO"
;
34
35
namespace
edm
{
36
void
edmodule_mightGet_config
(
ConfigurationDescriptions
& iDesc) {
37
//NOTE: by not giving a default, we are intentionally not having 'mightGet' added
38
// to any cfi files. This was done intentionally to avoid problems with HLT. If requested,
39
// the appropriate default would be an empty vector.
40
if
(iDesc.
defaultDescription
()) {
41
if
(iDesc.
defaultDescription
()->
isLabelUnused
(
kMightGet
)) {
42
iDesc.
defaultDescription
()->
addOptionalUntracked
<std::vector<std::string> >(
kMightGet
)->setComment(
kComment
);
43
}
44
}
45
for
(
auto
&
v
: iDesc) {
46
if
(
v
.second.isLabelUnused(
kMightGet
)) {
47
v
.second.addOptionalUntracked<std::vector<std::string> >(
kMightGet
)->setComment(
kComment
);
48
}
49
}
50
}
51
}
// namespace edm
ConfigurationDescriptions.h
kMightGet
static const std::string kMightGet("mightGet")
edm
HLT enums.
Definition:
AlignableModifier.h:19
edmodule_mightGet_config.h
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
edm::ParameterSetDescription::addOptionalUntracked
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)
Definition:
ParameterSetDescription.h:110
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
kComment
static const char *const kComment
Definition:
edmodule_mightGet_config.cc:29
edm::ConfigurationDescriptions::defaultDescription
ParameterSetDescription * defaultDescription()
Returns 0 if no default has been assigned.
Definition:
ConfigurationDescriptions.cc:112
edm::ParameterSetDescription::isLabelUnused
bool isLabelUnused(std::string const &label) const
Definition:
ParameterSetDescription.cc:191
edm::edmodule_mightGet_config
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
Definition:
edmodule_mightGet_config.cc:36
Generated for CMSSW Reference Manual by
1.8.16