CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: edmodule_mightGet_config.cc,v 1.1 2012/02/09 22:12:56 chrjones Exp $
12 //
13 
14 // system include files
15 
16 // user include files
20 
21 
22 //
23 // constants, enums and typedefs
24 //
25 
26 //
27 // static data member definitions
28 //
29 
30 static const std::string kMightGet("mightGet");
31 static const char* const kComment=
32 "List contains the branch names for the EDProducts which might be requested by the module.\n"
33 "The format for identifying the EDProduct is the same as the one used for OutputModules, "
34 "except no wild cards are allowed. E.g.\n"
35 "Foos_foomodule_whichFoo_RECO";
36 
37 namespace edm {
39  //NOTE: by not giving a default, we are intentionally not having 'mightGet' added
40  // to any cfi files. This was done intentionally to avoid problems with HLT. If requested,
41  // the appropriate default would be an empty vector.
42  if(iDesc.defaultDescription()) {
44  iDesc.defaultDescription()->addOptionalUntracked<std::vector<std::string> >(kMightGet)
45  ->setComment(kComment);
46  }
47  }
48  for(auto& v: iDesc) {
49  if (v.second.isLabelUnused(kMightGet)) {
50  v.second.addOptionalUntracked<std::vector<std::string> >(kMightGet)->setComment(kComment);
51  }
52  }
53 
54  }
55 }
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
static const std::string kMightGet("mightGet")
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)