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 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 static const std::string kMightGet("mightGet");
30 static const char* const kComment=
31 "List contains the branch names for the EDProducts which might be requested by the module.\n"
32 "The format for identifying the EDProduct is the same as the one used for OutputModules, "
33 "except no wild cards are allowed. E.g.\n"
34 "Foos_foomodule_whichFoo_RECO";
35 
36 namespace edm {
38  //NOTE: by not giving a default, we are intentionally not having 'mightGet' added
39  // to any cfi files. This was done intentionally to avoid problems with HLT. If requested,
40  // the appropriate default would be an empty vector.
41  if(iDesc.defaultDescription()) {
43  iDesc.defaultDescription()->addOptionalUntracked<std::vector<std::string> >(kMightGet)
44  ->setComment(kComment);
45  }
46  }
47  for(auto& v: iDesc) {
48  if (v.second.isLabelUnused(kMightGet)) {
49  v.second.addOptionalUntracked<std::vector<std::string> >(kMightGet)->setComment(kComment);
50  }
51  }
52 
53  }
54 }
ParameterSetDescription * defaultDescription()
Returns 0 if no default has been assigned.
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
static const char *const kComment
bool isLabelUnused(std::string const &label) const
HLT enums.
static const std::string kMightGet("mightGet")
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)