18 rootServiceChecker_(),
28 skipBadFiles_(
pset.getUntrackedParameter<
bool>(
"skipBadFiles",
false)),
29 bypassVersionCheck_(
pset.getUntrackedParameter<
bool>(
"bypassVersionCheck",
false)),
30 treeMaxVirtualSize_(
pset.getUntrackedParameter<
int>(
"treeMaxVirtualSize", -1)),
31 productSelectorRules_(
pset,
"inputCommands",
"InputSource"),
52 CLHEP::HepRandomEngine* engine,
65 std::vector<std::string>
rules;
66 rules.reserve(wantedBranches.size() + 1);
67 rules.emplace_back(
"drop *");
72 pset.addUntrackedParameter(
"inputCommands",
rules);
79 std::vector<std::string> defaultStrings;
80 desc.setComment(
"Reads EDM/Root files for mixing.");
81 desc.addUntracked<std::vector<std::string> >(
"fileNames")->setComment(
"Names of files to be processed.");
83 desc.addUntracked<
bool>(
"skipBadFiles",
false)
85 "True: Ignore any missing or unopenable input file.\n" 86 "False: Throw exception if missing or unopenable input file.");
87 desc.addUntracked<
bool>(
"bypassVersionCheck",
false)
89 "True: Bypass release version check.\n" 90 "False: Throw exception if reading file in a release prior to the release in which the file was written.");
91 desc.addUntracked<
int>(
"treeMaxVirtualSize", -1)
92 ->setComment(
"Size of ROOT TTree TBasket cache. Affects performance.");
97 descriptions.
add(
"source",
desc);
void readOneSpecified(EventPrincipal &cache, size_t &fileNameHash, SecondaryEventIDAndFileInfo const &id) override
static void fillDescription(ParameterSetDescription &desc, char const *parameterName, std::vector< std::string > const &defaultStrings=defaultSelectionStrings())
bool readOneEvent(EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id, bool recycleFiles) override
EmbeddedRootSource(ParameterSet const &pset, VectorInputSourceDescription const &desc)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
void dropUnwantedBranches_(std::vector< std::string > const &wantedBranches) override
static void fillDescription(ParameterSetDescription &desc)
virtual void closeFile_()
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProductSelectorRules productSelectorRules_
~EmbeddedRootSource() override
edm::propagate_const< std::unique_ptr< RootEmbeddedFileSequence > > fileSequence_