CMS 3D CMS Logo

Public Member Functions | Private Attributes

fwlite::internal::BranchMapReaderStrategyV1 Class Reference

Inheritance diagram for fwlite::internal::BranchMapReaderStrategyV1:
fwlite::internal::Strategy fwlite::internal::BMRStrategy fwlite::internal::BranchMapReaderStrategyV7

List of all members.

Public Member Functions

virtual edm::BranchListIndexes
const & 
branchListIndexes () const
 BranchMapReaderStrategyV1 (TFile *file, int fileVersion)
virtual bool updateFile (TFile *file)
virtual bool updateMap ()

Private Attributes

edm::BranchListIndexes dummyBranchListIndexes_

Detailed Description

Definition at line 135 of file BranchMapReader.cc.


Constructor & Destructor Documentation

fwlite::internal::BranchMapReaderStrategyV1::BranchMapReaderStrategyV1 ( TFile *  file,
int  fileVersion 
)

Definition at line 145 of file BranchMapReader.cc.

References updateFile().

      : Strategy(file, fileVersion) {
      updateFile(file);
    }

Member Function Documentation

virtual edm::BranchListIndexes const& fwlite::internal::BranchMapReaderStrategyV1::branchListIndexes ( ) const [inline, virtual]
bool fwlite::internal::BranchMapReaderStrategyV1::updateFile ( TFile *  file) [virtual]
bool fwlite::internal::BranchMapReaderStrategyV1::updateMap ( ) [virtual]

Reimplemented from fwlite::internal::Strategy.

Definition at line 158 of file BranchMapReader.cc.

References fwlite::internal::Strategy::bDesc_, beamvalidation::br, fwlite::internal::Strategy::branchDescriptionMap_, fwlite::internal::Strategy::getBranchRegistry(), edm::InEvent, fwlite::internal::Strategy::mapperFilled_, and edm::ProductRegistry::productList().

                                              {
      if(mapperFilled_) {
        return true;
      }

      branchDescriptionMap_.clear();
      bDesc_.clear();

      edm::ProductRegistry reg;
      edm::ProductRegistry* pReg = ®
      TBranch* br = getBranchRegistry(&pReg);

      if(0 != br) {
        edm::ProductRegistry::ProductList const& prodList = reg.productList();

        for(edm::ProductRegistry::ProductList::const_iterator it = prodList.begin(), itEnd = prodList.end(); it != itEnd; ++it) {
          if(edm::InEvent == it->second.branchType()) {
            // call to regenerate branchName
            it->second.init();
            branchDescriptionMap_.insert(bidToDesc::value_type(it->second.branchID(), it->second));
          }
        }
        mapperFilled_ = true;
      }
      return 0 != br;
    }

Member Data Documentation

Reimplemented in fwlite::internal::BranchMapReaderStrategyV7.

Definition at line 142 of file BranchMapReader.cc.

Referenced by branchListIndexes().