Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
00018 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
00019 #include "FWCore/Framework/src/edmodule_mightGet_config.h"
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 static const std::string kMightGet("mightGet");
00031 static const char* const kComment=
00032 "List contains the branch names for the EDProducts which might be requested by the module.\n"
00033 "The format for identifying the EDProduct is the same as the one used for OutputModules, "
00034 "except no wild cards are allowed. E.g.\n"
00035 "Foos_foomodule_whichFoo_RECO";
00036
00037 namespace edm {
00038 void edmodule_mightGet_config(ConfigurationDescriptions& iDesc) {
00039
00040
00041
00042 if(iDesc.defaultDescription()) {
00043 if (iDesc.defaultDescription()->isLabelUnused(kMightGet)) {
00044 iDesc.defaultDescription()->addOptionalUntracked<std::vector<std::string> >(kMightGet)
00045 ->setComment(kComment);
00046 }
00047 }
00048 for(auto& v: iDesc) {
00049 if (v.second.isLabelUnused(kMightGet)) {
00050 v.second.addOptionalUntracked<std::vector<std::string> >(kMightGet)->setComment(kComment);
00051 }
00052 }
00053
00054 }
00055 }