3 use vars qw(%subdir_list);
4 use vars qw(%header_list);
6 # explicit headers to avoid conflicts with experiment code
7 BEGIN { %header_list = (
8 "art/Framework/Core/FindOne.h" => "canvas/Persistency/Common/FindOne.h",
9 "art/Framework/Core/FindOneP.h" => "canvas/Persistency/Common/FindOneP.h",
10 "art/Framework/Core/FindMany.h" => "canvas/Persistency/Common/FindMany.h",
11 "art/Framework/Core/FindManyP.h" => "canvas/Persistency/Common/FindManyP.h",
12 "art/Framework/Core/detail/IPRHelper.h" => "canvas/Persistency/Common/detail/IPRHelper.h",
13 "art/Framework/IO/Root/RefCoreStreamer.h" => "canvas/Persistency/Common/RefCoreStreamer.h",
14 "art/Framework/IO/Root/rootNames.h" => "canvas/Persistency/Provenance/rootNames.h",
15 "art/Persistency/CLHEPDictionaries/classes.h" => "canvas/Persistency/CLHEPDictionaries/classes.h",
16 "art/Persistency/CetlibDictionaries/classes.h" => "canvas/Persistency/CetlibDictionaries/classes.h",
17 "art/Persistency/Common/Assns.h" => "canvas/Persistency/Common/Assns.h",
18 "art/Persistency/Common/BoolCache.h" => "canvas/Persistency/Common/BoolCache.h",
19 "art/Persistency/Common/CacheStreamers.h" => "canvas/Persistency/Common/CacheStreamers.h",
20 "art/Persistency/Common/ConstPtrCache.h" => "canvas/Persistency/Common/ConstPtrCache.h",
21 "art/Persistency/Common/EDProduct.h" => "canvas/Persistency/Common/EDProduct.h",
22 "art/Persistency/Common/EDProductGetter.h" => "canvas/Persistency/Common/EDProductGetter.h",
23 "art/Persistency/Common/GetProduct.h" => "canvas/Persistency/Common/GetProduct.h",
24 "art/Persistency/Common/HLTGlobalStatus.h" => "canvas/Persistency/Common/HLTGlobalStatus.h",
25 "art/Persistency/Common/HLTPathStatus.h" => "canvas/Persistency/Common/HLTPathStatus.h",
26 "art/Persistency/Common/HLTenums.h" => "canvas/Persistency/Common/HLTenums.h",
27 "art/Persistency/Common/Ptr.h" => "canvas/Persistency/Common/Ptr.h",
28 "art/Persistency/Common/PtrVector.h" => "canvas/Persistency/Common/PtrVector.h",
29 "art/Persistency/Common/PtrVectorBase.h" => "canvas/Persistency/Common/PtrVectorBase.h",
30 "art/Persistency/Common/RNGsnapshot.h" => "canvas/Persistency/Common/RNGsnapshot.h",
31 "art/Persistency/Common/RefCore.h" => "canvas/Persistency/Common/RefCore.h",
32 "art/Persistency/Common/TriggerResults.h" => "canvas/Persistency/Common/TriggerResults.h",
33 "art/Persistency/Common/Wrapper.h" => "canvas/Persistency/Common/Wrapper.h",
34 "art/Persistency/Common/classes.h" => "canvas/Persistency/Common/classes.h",
35 "art/Persistency/Common/detail/maybeCastObj.h" => "canvas/Persistency/Common/detail/maybeCastObj.h",
36 "art/Persistency/Common/detail/setPtrVectorBaseStreamer.h" => "canvas/Persistency/Common/detail/setPtrVectorBaseStreamer.h",
37 "art/Persistency/Common/getElementAddresses.h" => "canvas/Persistency/Common/getElementAddresses.h",
38 "art/Persistency/Common/setPtr.h" => "canvas/Persistency/Common/setPtr.h",
39 "art/Persistency/Common/traits.h" => "canvas/Persistency/Common/traits.h",
40 "art/Persistency/FhiclCppDictionaries/classes.h" => "canvas/Persistency/FhiclCppDictionaries/classes.h",
41 "art/Persistency/Provenance/BranchChildren.h" => "canvas/Persistency/Provenance/BranchChildren.h",
42 "art/Persistency/Provenance/BranchDescription.h" => "canvas/Persistency/Provenance/BranchDescription.h",
43 "art/Persistency/Provenance/BranchID.h" => "canvas/Persistency/Provenance/BranchID.h",
44 "art/Persistency/Provenance/BranchIDList.h" => "canvas/Persistency/Provenance/BranchIDList.h",
45 "art/Persistency/Provenance/BranchKey.h" => "canvas/Persistency/Provenance/BranchKey.h",
46 "art/Persistency/Provenance/BranchListIndex.h" => "canvas/Persistency/Provenance/BranchListIndex.h",
47 "art/Persistency/Provenance/BranchMapper.h" => "canvas/Persistency/Provenance/BranchMapper.h",
48 "art/Persistency/Provenance/BranchType.h" => "canvas/Persistency/Provenance/BranchType.h",
49 "art/Persistency/Provenance/EventAuxiliary.h" => "canvas/Persistency/Provenance/EventAuxiliary.h",
50 "art/Persistency/Provenance/EventID.h" => "canvas/Persistency/Provenance/EventID.h",
51 "art/Persistency/Provenance/EventSelectionID.h" => "canvas/Persistency/Provenance/EventSelectionID.h",
52 "art/Persistency/Provenance/FileFormatVersion.h" => "canvas/Persistency/Provenance/FileFormatVersion.h",
53 "art/Persistency/Provenance/FileIndex.h" => "canvas/Persistency/Provenance/FileIndex.h",
54 "art/Persistency/Provenance/Hash.h" => "canvas/Persistency/Provenance/Hash.h",
55 "art/Persistency/Provenance/HashedTypes.h" => "canvas/Persistency/Provenance/HashedTypes.h",
56 "art/Persistency/Provenance/History.h" => "canvas/Persistency/Provenance/History.h",
57 "art/Persistency/Provenance/ModuleDescription.h" => "canvas/Persistency/Provenance/ModuleDescription.h",
58 "art/Persistency/Provenance/ModuleDescriptionID.h" => "canvas/Persistency/Provenance/ModuleDescriptionID.h",
59 "art/Persistency/Provenance/ParameterSetBlob.h" => "canvas/Persistency/Provenance/ParameterSetBlob.h",
60 "art/Persistency/Provenance/ParameterSetMap.h" => "canvas/Persistency/Provenance/ParameterSetMap.h",
61 "art/Persistency/Provenance/Parentage.h" => "canvas/Persistency/Provenance/Parentage.h",
62 "art/Persistency/Provenance/ParentageID.h" => "canvas/Persistency/Provenance/ParentageID.h",
63 "art/Persistency/Provenance/ParentageRegistry.h" => "canvas/Persistency/Provenance/ParentageRegistry.h",
64 "art/Persistency/Provenance/PassID.h" => "canvas/Persistency/Provenance/PassID.h",
65 "art/Persistency/Provenance/ProcessConfiguration.h" => "canvas/Persistency/Provenance/ProcessConfiguration.h",
66 "art/Persistency/Provenance/ProcessConfigurationID.h" => "canvas/Persistency/Provenance/ProcessConfigurationID.h",
67 "art/Persistency/Provenance/ProcessHistory.h" => "canvas/Persistency/Provenance/ProcessHistory.h",
68 "art/Persistency/Provenance/ProcessHistoryID.h" => "canvas/Persistency/Provenance/ProcessHistoryID.h",
69 "art/Persistency/Provenance/ProductID.h" => "canvas/Persistency/Provenance/ProductID.h",
70 "art/Persistency/Provenance/ProductList.h" => "canvas/Persistency/Provenance/ProductList.h",
71 "art/Persistency/Provenance/ProductProvenance.h" => "canvas/Persistency/Provenance/ProductProvenance.h",
72 "art/Persistency/Provenance/ProductRegistry.h" => "canvas/Persistency/Provenance/ProductRegistry.h",
73 "art/Persistency/Provenance/ProductStatus.h" => "canvas/Persistency/Provenance/ProductStatus.h",
74 "art/Persistency/Provenance/ProvenanceFwd.h" => "canvas/Persistency/Provenance/ProvenanceFwd.h",
75 "art/Persistency/Provenance/ReleaseVersion.h" => "canvas/Persistency/Provenance/ReleaseVersion.h",
76 "art/Persistency/Provenance/ResultsAuxiliary.h" => "canvas/Persistency/Provenance/ResultsAuxiliary.h",
77 "art/Persistency/Provenance/RunAuxiliary.h" => "canvas/Persistency/Provenance/RunAuxiliary.h",
78 "art/Persistency/Provenance/RunID.h" => "canvas/Persistency/Provenance/RunID.h",
79 "art/Persistency/Provenance/SortInvalidFirst.h" => "canvas/Persistency/Provenance/SortInvalidFirst.h",
80 "art/Persistency/Provenance/SubRunAuxiliary.h" => "canvas/Persistency/Provenance/SubRunAuxiliary.h",
81 "art/Persistency/Provenance/SubRunID.h" => "canvas/Persistency/Provenance/SubRunID.h",
82 "art/Persistency/Provenance/Timestamp.h" => "canvas/Persistency/Provenance/Timestamp.h",
83 "art/Persistency/Provenance/Transient.h" => "canvas/Persistency/Provenance/Transient.h",
84 "art/Persistency/Provenance/TransientStreamer.h" => "canvas/Persistency/Provenance/TransientStreamer.h",
85 "art/Persistency/Provenance/TypeLabel.h" => "canvas/Persistency/Provenance/TypeLabel.h",
86 "art/Persistency/Provenance/TypeTools.h" => "canvas/Persistency/Provenance/TypeTools.h",
87 "art/Persistency/Provenance/TypeWithDict.h" => "canvas/Persistency/Provenance/TypeWithDict.h",
88 "art/Persistency/Provenance/classes.h" => "canvas/Persistency/Provenance/classes.h",
89 "art/Persistency/Provenance/ParameterSetID.h" => "canvas/Persistency/Provenance/ParameterSetID.h",
90 "art/Persistency/StdDictionaries/classes.h" => "canvas/Persistency/StdDictionaries/classes.h",
91 "art/Persistency/WrappedStdDictionaries/classes.h" => "canvas/Persistency/WrappedStdDictionaries/classes.h",
92 "art/Utilities/DebugMacros.h" => "canvas/Utilities/DebugMacros.h",
93 "art/Utilities/Exception.h" => "canvas/Utilities/Exception.h",
94 "art/Utilities/FriendlyName.h" => "canvas/Utilities/FriendlyName.h",
95 "art/Utilities/GetPassID.h" => "canvas/Utilities/GetPassID.h",
96 "art/Utilities/InputTag.h" => "canvas/Utilities/InputTag.h",
97 "art/Utilities/TestHelper.h" => "canvas/Utilities/TestHelper.h",
98 "art/Utilities/TypeID.h" => "canvas/Utilities/TypeID.h",
99 "art/Utilities/WrappedClassName.h" => "canvas/Utilities/WrappedClassName.h",
100 "art/Utilities/detail/metaprogramming.h" => "canvas/Utilities/detail/metaprogramming.h",
101 "art/Utilities/ensurePointer.h" => "canvas/Utilities/ensurePointer.h",
102 "art/Utilities/uniform_type_name.h" => "canvas/Utilities/uniform_type_name.h",
103 "boost/test/auto_unit_test.hpp" => "cetlib/quiet_unit_test.hpp"
106 foreach my $inc (sort keys %header_list) {
107 s&^(\s*#include\s+["<])\Q$inc\E(.*)&${1}$header_list{$inc}${2}& and last;