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"),
58 return fileSequence_->readOneEvent(cache, fileNameHash, engine,
id, recycleFiles);
68 std::vector<std::string>
rules;
69 rules.reserve(wantedBranches.size() + 1);
70 rules.emplace_back(
"drop *");
72 rules.push_back(
"keep " +
branch +
"_*");
84 std::vector<std::string> defaultStrings;
85 desc.
setComment(
"Reads EDM/Root files for mixing.");
86 desc.
addUntracked<std::vector<std::string> >(
"fileNames")
87 ->setComment(
"Names of files to be processed.");
90 ->setComment(
"True: Ignore any missing or unopenable input file.\n" 91 "False: Throw exception if missing or unopenable input file.");
93 ->setComment(
"True: Bypass release version check.\n" 94 "False: Throw exception if reading file in a release prior to the release in which the file was written.");
96 ->setComment(
"Size of ROOT TTree TBasket cache. Affects performance.");
101 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_