18 rootServiceChecker_(),
19 nStreams_(desc.allocations_->numberOfStreams()),
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"),
33 catalog_(pset.getUntrackedParameter<
std::vector<
std::
string> >(
"fileNames"),
52 CLHEP::HepRandomEngine* engine,
55 return fileSequence_->readOneEvent(cache, fileNameHash, engine,
id, recycleFiles);
65 std::vector<std::string>
rules;
66 rules.reserve(wantedBranches.size() + 1);
67 rules.emplace_back(
"drop *");
69 rules.push_back(
"keep " +
branch +
"_*");
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.");
85 "True: Ignore any missing or unopenable input file.\n" 86 "False: Throw exception if missing or unopenable input file.");
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.");
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
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
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
void setComment(std::string const &value)
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)
void addUntrackedParameter(std::string const &name, T const &value)
virtual void closeFile_()
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProductSelectorRules productSelectorRules_
~EmbeddedRootSource() override
edm::propagate_const< std::unique_ptr< RootEmbeddedFileSequence > > fileSequence_