Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:31

0001 /*----------------------------------------------------------------------
0002   
0003 
0004 ----------------------------------------------------------------------*/
0005 #include <ostream>
0006 
0007 #include "DataFormats/Provenance/interface/BranchKey.h"
0008 #include "DataFormats/Provenance/interface/BranchDescription.h"
0009 
0010 namespace edm {
0011   BranchKey::BranchKey(BranchDescription const& desc)
0012       : friendlyClassName_(desc.friendlyClassName()),
0013         moduleLabel_(desc.moduleLabel()),
0014         productInstanceName_(desc.productInstanceName()),
0015         processName_(desc.processName()) {}
0016 
0017   std::ostream& operator<<(std::ostream& os, BranchKey const& bk) {
0018     os << "BranchKey(" << bk.friendlyClassName() << ", " << bk.moduleLabel() << ", " << bk.productInstanceName() << ", "
0019        << bk.processName() << ')';
0020     return os;
0021   }
0022 }  // namespace edm