CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/FWCore/Sources/src/ExternalInputSource.cc

Go to the documentation of this file.
00001 #include "FWCore/Sources/interface/ExternalInputSource.h"
00002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00003 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
00004 
00005 namespace edm {
00006   ExternalInputSource::ExternalInputSource(ParameterSet const& pset, InputSourceDescription const& desc, bool realData) :
00007     ConfigurableInputSource(pset, desc, realData),
00008     catalog_(pset.getUntrackedParameter<std::vector<std::string> >("fileNames"),
00009              pset.getUntrackedParameter<std::string>("overrideCatalog", std::string())) {
00010   }
00011 
00012   ExternalInputSource::~ExternalInputSource() {}
00013 
00014   void
00015    ExternalInputSource::fillDescription(ParameterSetDescription & desc) {
00016     std::vector<std::string> defaultStrings;
00017     desc.addUntracked<std::vector<std::string> >("fileNames", defaultStrings)
00018         ->setComment("Names of files to be processed.");
00019     desc.addUntracked<std::string>("overrideCatalog", std::string());
00020     ConfigurableInputSource::fillDescription(desc);
00021   }
00022 }
00023 
00024