Skip to content

Commit 9fe870c

Browse files
committed
using for ProductDescription
Utilize a using to rename BranchDescription. This avoids forward compatibility issues with storage to ROOT files.
1 parent 73afa2d commit 9fe870c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+215
-188
lines changed

DataFormats/Common/interface/ProductData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ is the storage unit of such information.
99
----------------------------------------------------------------------*/
1010

1111
#include "DataFormats/Provenance/interface/Provenance.h"
12+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
1213
#include "FWCore/Utilities/interface/thread_safety_macros.h"
1314
#include <memory>
1415

1516
namespace edm {
16-
class ProductDescription;
1717
class MergeableRunProductMetadataBase;
1818
class WrapperBase;
1919

DataFormats/Common/interface/setIsMergeable.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@
2929
// Original Author: W. David Dagenhart
3030
// Created: 21 June 2018
3131
//
32+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
3233

3334
namespace edm {
34-
35-
class ProductDescription;
36-
3735
void setIsMergeable(ProductDescription&);
3836
} // namespace edm
3937

DataFormats/FWLite/interface/ChainEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
// user include files
2727
#include "DataFormats/FWLite/interface/Event.h"
2828
#include "DataFormats/FWLite/interface/EventBase.h"
29+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
2930
#include "FWCore/Utilities/interface/propagate_const.h"
3031

3132
// forward declarations
3233
namespace edm {
3334
class WrapperBase;
3435
class ProductRegistry;
3536
class ProcessHistory;
36-
class ProductDescription;
3737
class EDProductGetter;
3838
class EventAux;
3939
class TriggerResults;

DataFormats/FWLite/interface/DataGetterHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// user include files
2222
#include "DataFormats/Common/interface/EDProductGetter.h"
23+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
2324
#include "DataFormats/FWLite/interface/HistoryGetterBase.h"
2425
#include "DataFormats/FWLite/interface/InternalDataKey.h"
2526
#include "FWCore/FWLite/interface/BranchMapReader.h"
@@ -41,7 +42,6 @@ class TTreeCache;
4142
class TTree;
4243

4344
namespace edm {
44-
class ProductDescription;
4545
class BranchID;
4646
class ObjectWithDict;
4747
class ProductID;

DataFormats/FWLite/interface/Event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
#include "DataFormats/Provenance/interface/EventProcessHistoryID.h"
6464
#include "DataFormats/Provenance/interface/EventAuxiliary.h"
6565
#include "DataFormats/Provenance/interface/EventID.h"
66+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
6667
#include "FWCore/Utilities/interface/thread_safety_macros.h"
6768

6869
// forward declarations
6970
namespace edm {
7071
class WrapperBase;
7172
class ProductRegistry;
72-
class ProductDescription;
7373
class EDProductGetter;
7474
class EventAux;
7575
class Timestamp;

DataFormats/FWLite/interface/LuminosityBlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
#include "DataFormats/FWLite/interface/EntryFinder.h"
3434
#include "DataFormats/Provenance/interface/ProcessHistoryRegistry.h"
3535
#include "DataFormats/Provenance/interface/LuminosityBlockAuxiliary.h"
36+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
3637
#include "FWCore/Utilities/interface/thread_safety_macros.h"
3738

3839
// forward declarations
3940
namespace edm {
4041
class WrapperBase;
4142
class ProductRegistry;
42-
class ProductDescription;
4343
class EDProductGetter;
4444
class LuminosityBlockAux;
4545
class Timestamp;

DataFormats/FWLite/interface/MultiChainEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
// user include files
2727
#include "DataFormats/FWLite/interface/EventBase.h"
2828
#include "DataFormats/FWLite/interface/ChainEvent.h"
29+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
2930
#include "FWCore/Utilities/interface/propagate_const.h"
3031

3132
// forward declarations
3233
namespace edm {
3334
class WrapperBase;
3435
class ProductRegistry;
3536
class ProcessHistory;
36-
class ProductDescription;
3737
class EDProductGetter;
3838
class EventAux;
3939
class TriggerResults;

DataFormats/FWLite/interface/Run.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "DataFormats/Provenance/interface/ProcessHistoryRegistry.h"
3434
#include "DataFormats/Provenance/interface/RunAuxiliary.h"
3535
#include "DataFormats/Provenance/interface/RunID.h"
36+
#include "DataFormats/Provenance/interface/ProductDescriptionFwd.h"
3637
#include "FWCore/FWLite/interface/BranchMapReader.h"
3738
#include "DataFormats/FWLite/interface/DataGetterHelper.h"
3839
#include "FWCore/Utilities/interface/thread_safety_macros.h"
@@ -41,7 +42,6 @@
4142
namespace edm {
4243
class WrapperBase;
4344
class ProductRegistry;
44-
class ProductDescription;
4545
class EDProductGetter;
4646
class RunAux;
4747
class Timestamp;

DataFormats/FWLite/src/DataGetterHelper.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ namespace fwlite {
338338
}
339339

340340
bool DataGetterHelper::getByProductDescription(edm::ProductDescription const& bDesc,
341-
Long_t eventEntry,
342-
KeyToDataMap::iterator& itData) const {
341+
Long_t eventEntry,
342+
KeyToDataMap::iterator& itData) const {
343343
if (!bDesc.branchID().isValid()) {
344344
return false;
345345
}

DataFormats/FWLite/src/EventBase.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
static const edm::ProductID s_id;
2828
static edm::ProductDescription const s_branch = edm::ProductDescription(edm::ProductDescription());
29-
static const edm::Provenance s_prov(std::shared_ptr<edm::ProductDescription const>(&s_branch, edm::do_nothing_deleter()),
29+
static const edm::Provenance s_prov(std::shared_ptr<edm::ProductDescription const>(&s_branch,
30+
edm::do_nothing_deleter()),
3031
s_id);
3132

3233
namespace fwlite {

0 commit comments

Comments
 (0)