@@ -24,7 +24,7 @@ namespace edm {
2424 RootPromptReadDelayedReader::RootPromptReadDelayedReader (RootTree const & tree,
2525 std::shared_ptr<InputFile> filePtr,
2626 InputType inputType,
27- unsigned int iNIndexes)
27+ unsigned int iNIndexes)
2828 : cacheMaps_(iNIndexes), tree_(tree), filePtr_(filePtr), nextReader_(), inputType_(inputType) {
2929 if (inputType == InputType::Primary) {
3030 auto resources = SharedResourcesRegistry::instance ()->createAcquirerForSourceDelayedReader ();
@@ -43,7 +43,7 @@ namespace edm {
4343 unsigned int indexFor (RootTree const & tree, EDProductGetter const * ep) {
4444 return tree.branchType () == InEvent ? ep->transitionIndex () : 0 ;
4545 }
46- }
46+ } // namespace
4747 std::shared_ptr<WrapperBase> RootPromptReadDelayedReader::getProduct_ (BranchID const & k, EDProductGetter const * ep) {
4848 if (lastException_) {
4949 try {
@@ -66,11 +66,12 @@ namespace edm {
6666 if (cache.wrapperBase_ ) {
6767 if (tree_.branchType () == InEvent) {
6868 // CMS-THREADING For the primary input source calls to this function need to be serialized
69- InputFile::reportReadBranch (inputType_, std::string (tree_.branches ().find (itFound->first )->productBranch_ ->GetName ()));
69+ InputFile::reportReadBranch (inputType_,
70+ std::string (tree_.branches ().find (itFound->first )->productBranch_ ->GetName ()));
7071 }
7172 return std::shared_ptr<WrapperBase>(std::move (cache.wrapperBase_ ));
7273 }
73- }
74+ }
7475 if (nextReader_) {
7576 return nextReader_->getProduct (k, ep);
7677 }
@@ -81,9 +82,9 @@ namespace edm {
8182 // first set all the addresses
8283 auto & cacheMap = cacheMaps_[indexFor (tree_, ep)];
8384 if (cacheMap.empty ()) {
84- for (auto & cacheMap : cacheMaps_) {
85+ for (auto & cacheMap : cacheMaps_) {
8586 cacheMap.reserve (tree_.branches ().size ());
86- for (auto const & branch : tree_.branches ()) {
87+ for (auto const & branch : tree_.branches ()) {
8788 cacheMap.emplace (branch.first , Cache{});
8889 }
8990 }
0 commit comments