Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DataFormats_Provenance_StoredProductProvenance_h
0002 #define DataFormats_Provenance_StoredProductProvenance_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Provenance
0006 // Class  :     StoredProductProvenance
0007 //
0008 /**\class StoredProductProvenance StoredProductProvenance.h DataFormats/Provenance/interface/StoredProductProvenance.h
0009 
0010  Description: The per event per product provenance information to be stored
0011 
0012  Usage:
0013     This class has been optimized for storage
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Mon May 23 15:42:17 CDT 2011
0019 //
0020 
0021 // system include files
0022 #include <vector>
0023 
0024 // user include files
0025 
0026 // forward declarations
0027 namespace edm {
0028   struct StoredProductProvenance {
0029     StoredProductProvenance() : branchID_(0), parentageIDIndex_(0) {}
0030     unsigned int branchID_;
0031     unsigned int parentageIDIndex_;
0032   };
0033 
0034   typedef std::vector<StoredProductProvenance> StoredProductProvenanceVector;
0035 
0036   inline bool operator<(StoredProductProvenance const& a, StoredProductProvenance const& b) {
0037     return a.branchID_ < b.branchID_;
0038   }
0039 }  // namespace edm
0040 
0041 #endif