CMS 3D CMS Logo

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
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 {
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()) {
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
bool isLabelUnused(std::string const &label) const
ParameterSetDescription * defaultDescription()
Returns 0 if no default has been assigned.
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
static const char *const kComment
HLT enums.
static const std::string kMightGet("mightGet")
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)