File indexing completed on 2024-04-06 12:13:10
0001 #include "FWCore/Sources/interface/FromFiles.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0004
0005 namespace edm {
0006 FromFiles::FromFiles(ParameterSet const& pset)
0007 : catalog_(pset.getUntrackedParameter<std::vector<std::string> >("fileNames"),
0008 pset.getUntrackedParameter<std::string>("overrideCatalog", std::string())),
0009 fileIndex_(0) {}
0010
0011 FromFiles::~FromFiles() {}
0012
0013 void FromFiles::fillDescription(ParameterSetDescription& desc) {
0014 std::vector<std::string> defaultStrings;
0015 desc.addUntracked<std::vector<std::string> >("fileNames", defaultStrings)
0016 ->setComment("Names of files to be processed.");
0017 desc.addUntracked<std::string>("overrideCatalog", std::string());
0018 }
0019
0020 size_t FromFiles::fileIndex() const { return fileIndex_; }
0021 }