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);
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);
virtual 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())
void setComment(std::string const &value)
virtual void beginJob() override
EmbeddedRootSource(ParameterSet const &pset, VectorInputSourceDescription const &desc)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void dropUnwantedBranches_(std::vector< std::string > const &wantedBranches) override
virtual bool readOneEvent(EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id) override
static void fillDescription(ParameterSetDescription &desc)
virtual ~EmbeddedRootSource()
void addUntrackedParameter(std::string const &name, T const &value)
virtual void closeFile_()
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProductSelectorRules productSelectorRules_
virtual void endJob() override
edm::propagate_const< std::unique_ptr< RootEmbeddedFileSequence > > fileSequence_