fix-header-locs-nutools.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%inc_translations $g4physics_list);
4 BEGIN { %inc_translations = (
5  "art/Framework/Core/FindOne.h" => "canvas/Persistency/Common/FindOne.h",
6  "art/Framework/Core/FindOneP.h" => "canvas/Persistency/Common/FindOneP.h",
7  "art/Framework/Core/FindMany.h" => "canvas/Persistency/Common/FindMany.h",
8  "art/Framework/Core/FindManyP.h" => "canvas/Persistency/Common/FindManyP.h",
9  "art/Framework/Core/detail/IPRHelper.h" => "canvas/Persistency/Common/detail/IPRHelper.h",
10  "art/Framework/IO/Root/RefCoreStreamer.h" => "canvas/Persistency/Common/RefCoreStreamer.h",
11  "art/Framework/IO/Root/rootNames.h" => "canvas/Persistency/Provenance/rootNames.h",
12  "art/Persistency/CLHEPDictionaries/classes.h" => "canvas/Persistency/CLHEPDictionaries/classes.h",
13  "art/Persistency/CetlibDictionaries/classes.h" => "canvas/Persistency/CetlibDictionaries/classes.h",
14  "art/Persistency/Common/Assns.h" => "canvas/Persistency/Common/Assns.h",
15  "art/Persistency/Common/BoolCache.h" => "canvas/Persistency/Common/BoolCache.h",
16  "art/Persistency/Common/CacheStreamers.h" => "canvas/Persistency/Common/CacheStreamers.h",
17  "art/Persistency/Common/ConstPtrCache.h" => "canvas/Persistency/Common/ConstPtrCache.h",
18  "art/Persistency/Common/EDProduct.h" => "canvas/Persistency/Common/EDProduct.h",
19  "art/Persistency/Common/EDProductGetter.h" => "canvas/Persistency/Common/EDProductGetter.h",
20  "art/Persistency/Common/GetProduct.h" => "canvas/Persistency/Common/GetProduct.h",
21  "art/Persistency/Common/HLTGlobalStatus.h" => "canvas/Persistency/Common/HLTGlobalStatus.h",
22  "art/Persistency/Common/HLTPathStatus.h" => "canvas/Persistency/Common/HLTPathStatus.h",
23  "art/Persistency/Common/HLTenums.h" => "canvas/Persistency/Common/HLTenums.h",
24  "art/Persistency/Common/Ptr.h" => "canvas/Persistency/Common/Ptr.h",
25  "art/Persistency/Common/PtrVector.h" => "canvas/Persistency/Common/PtrVector.h",
26  "art/Persistency/Common/PtrVectorBase.h" => "canvas/Persistency/Common/PtrVectorBase.h",
27  "art/Persistency/Common/RNGsnapshot.h" => "canvas/Persistency/Common/RNGsnapshot.h",
28  "art/Persistency/Common/RefCore.h" => "canvas/Persistency/Common/RefCore.h",
29  "art/Persistency/Common/TriggerResults.h" => "canvas/Persistency/Common/TriggerResults.h",
30  "art/Persistency/Common/Wrapper.h" => "canvas/Persistency/Common/Wrapper.h",
31  "art/Persistency/Common/classes.h" => "canvas/Persistency/Common/classes.h",
32  "art/Persistency/Common/detail/maybeCastObj.h" => "canvas/Persistency/Common/detail/maybeCastObj.h",
33  "art/Persistency/Common/detail/setPtrVectorBaseStreamer.h" => "canvas/Persistency/Common/detail/setPtrVectorBaseStreamer.h",
34  "art/Persistency/Common/getElementAddresses.h" => "canvas/Persistency/Common/getElementAddresses.h",
35  "art/Persistency/Common/setPtr.h" => "canvas/Persistency/Common/setPtr.h",
36  "art/Persistency/Common/traits.h" => "canvas/Persistency/Common/traits.h",
37  "art/Persistency/FhiclCppDictionaries/classes.h" => "canvas/Persistency/FhiclCppDictionaries/classes.h",
38  "art/Persistency/Provenance/BranchChildren.h" => "canvas/Persistency/Provenance/BranchChildren.h",
39  "art/Persistency/Provenance/BranchDescription.h" => "canvas/Persistency/Provenance/BranchDescription.h",
40  "art/Persistency/Provenance/BranchID.h" => "canvas/Persistency/Provenance/BranchID.h",
41  "art/Persistency/Provenance/BranchIDList.h" => "canvas/Persistency/Provenance/BranchIDList.h",
42  "art/Persistency/Provenance/BranchKey.h" => "canvas/Persistency/Provenance/BranchKey.h",
43  "art/Persistency/Provenance/BranchListIndex.h" => "canvas/Persistency/Provenance/BranchListIndex.h",
44  "art/Persistency/Provenance/BranchMapper.h" => "canvas/Persistency/Provenance/BranchMapper.h",
45  "art/Persistency/Provenance/BranchType.h" => "canvas/Persistency/Provenance/BranchType.h",
46  "art/Persistency/Provenance/EventAuxiliary.h" => "canvas/Persistency/Provenance/EventAuxiliary.h",
47  "art/Persistency/Provenance/EventID.h" => "canvas/Persistency/Provenance/EventID.h",
48  "art/Persistency/Provenance/EventSelectionID.h" => "canvas/Persistency/Provenance/EventSelectionID.h",
49  "art/Persistency/Provenance/FileFormatVersion.h" => "canvas/Persistency/Provenance/FileFormatVersion.h",
50  "art/Persistency/Provenance/FileIndex.h" => "canvas/Persistency/Provenance/FileIndex.h",
51  "art/Persistency/Provenance/Hash.h" => "canvas/Persistency/Provenance/Hash.h",
52  "art/Persistency/Provenance/HashedTypes.h" => "canvas/Persistency/Provenance/HashedTypes.h",
53  "art/Persistency/Provenance/History.h" => "canvas/Persistency/Provenance/History.h",
54  "art/Persistency/Provenance/ModuleDescription.h" => "canvas/Persistency/Provenance/ModuleDescription.h",
55  "art/Persistency/Provenance/ModuleDescriptionID.h" => "canvas/Persistency/Provenance/ModuleDescriptionID.h",
56  "art/Persistency/Provenance/ParameterSetBlob.h" => "canvas/Persistency/Provenance/ParameterSetBlob.h",
57  "art/Persistency/Provenance/ParameterSetMap.h" => "canvas/Persistency/Provenance/ParameterSetMap.h",
58  "art/Persistency/Provenance/Parentage.h" => "canvas/Persistency/Provenance/Parentage.h",
59  "art/Persistency/Provenance/ParentageID.h" => "canvas/Persistency/Provenance/ParentageID.h",
60  "art/Persistency/Provenance/ParentageRegistry.h" => "canvas/Persistency/Provenance/ParentageRegistry.h",
61  "art/Persistency/Provenance/PassID.h" => "canvas/Persistency/Provenance/PassID.h",
62  "art/Persistency/Provenance/ProcessConfiguration.h" => "canvas/Persistency/Provenance/ProcessConfiguration.h",
63  "art/Persistency/Provenance/ProcessConfigurationID.h" => "canvas/Persistency/Provenance/ProcessConfigurationID.h",
64  "art/Persistency/Provenance/ProcessHistory.h" => "canvas/Persistency/Provenance/ProcessHistory.h",
65  "art/Persistency/Provenance/ProcessHistoryID.h" => "canvas/Persistency/Provenance/ProcessHistoryID.h",
66  "art/Persistency/Provenance/ProductID.h" => "canvas/Persistency/Provenance/ProductID.h",
67  "art/Persistency/Provenance/ProductList.h" => "canvas/Persistency/Provenance/ProductList.h",
68  "art/Persistency/Provenance/ProductProvenance.h" => "canvas/Persistency/Provenance/ProductProvenance.h",
69  "art/Persistency/Provenance/ProductRegistry.h" => "canvas/Persistency/Provenance/ProductRegistry.h",
70  "art/Persistency/Provenance/ProductStatus.h" => "canvas/Persistency/Provenance/ProductStatus.h",
71  "art/Persistency/Provenance/ProvenanceFwd.h" => "canvas/Persistency/Provenance/ProvenanceFwd.h",
72  "art/Persistency/Provenance/ReleaseVersion.h" => "canvas/Persistency/Provenance/ReleaseVersion.h",
73  "art/Persistency/Provenance/ResultsAuxiliary.h" => "canvas/Persistency/Provenance/ResultsAuxiliary.h",
74  "art/Persistency/Provenance/RunAuxiliary.h" => "canvas/Persistency/Provenance/RunAuxiliary.h",
75  "art/Persistency/Provenance/RunID.h" => "canvas/Persistency/Provenance/RunID.h",
76  "art/Persistency/Provenance/SortInvalidFirst.h" => "canvas/Persistency/Provenance/SortInvalidFirst.h",
77  "art/Persistency/Provenance/SubRunAuxiliary.h" => "canvas/Persistency/Provenance/SubRunAuxiliary.h",
78  "art/Persistency/Provenance/SubRunID.h" => "canvas/Persistency/Provenance/SubRunID.h",
79  "art/Persistency/Provenance/Timestamp.h" => "canvas/Persistency/Provenance/Timestamp.h",
80  "art/Persistency/Provenance/Transient.h" => "canvas/Persistency/Provenance/Transient.h",
81  "art/Persistency/Provenance/TransientStreamer.h" => "canvas/Persistency/Provenance/TransientStreamer.h",
82  "art/Persistency/Provenance/TypeLabel.h" => "canvas/Persistency/Provenance/TypeLabel.h",
83  "art/Persistency/Provenance/TypeTools.h" => "canvas/Persistency/Provenance/TypeTools.h",
84  "art/Persistency/Provenance/TypeWithDict.h" => "canvas/Persistency/Provenance/TypeWithDict.h",
85  "art/Persistency/Provenance/classes.h" => "canvas/Persistency/Provenance/classes.h",
86  "art/Persistency/Provenance/ParameterSetID.h" => "canvas/Persistency/Provenance/ParameterSetID.h",
87  "art/Persistency/StdDictionaries/classes.h" => "canvas/Persistency/StdDictionaries/classes.h",
88  "art/Persistency/WrappedStdDictionaries/classes.h" => "canvas/Persistency/WrappedStdDictionaries/classes.h",
89  "art/Utilities/DebugMacros.h" => "canvas/Utilities/DebugMacros.h",
90  "art/Utilities/Exception.h" => "canvas/Utilities/Exception.h",
91  "art/Utilities/FriendlyName.h" => "canvas/Utilities/FriendlyName.h",
92  "art/Utilities/GetPassID.h" => "canvas/Utilities/GetPassID.h",
93  "art/Utilities/InputTag.h" => "canvas/Utilities/InputTag.h",
94  "art/Utilities/TestHelper.h" => "canvas/Utilities/TestHelper.h",
95  "art/Utilities/TypeID.h" => "canvas/Utilities/TypeID.h",
96  "art/Utilities/WrappedClassName.h" => "canvas/Utilities/WrappedClassName.h",
97  "art/Utilities/detail/metaprogramming.h" => "canvas/Utilities/detail/metaprogramming.h",
98  "art/Utilities/ensurePointer.h" => "canvas/Utilities/ensurePointer.h",
99  "art/Utilities/uniform_type_name.h" => "canvas/Utilities/uniform_type_name.h",
100  "boost/test/auto_unit_test.hpp" => "cetlib/quiet_unit_test.hpp",
101  "EventGeneratorBase/CRY/CRYHelper.h" => "nutools/EventGeneratorBase/CRY/CRYHelper.h",
102  "EventGeneratorBase/GENIE/GENIEHelper.h" => "nutools/EventGeneratorBase/GENIE/GENIEHelper.h",
103  "EventGeneratorBase/GiBUU/GiBUUHelper.h" => "nutools/EventGeneratorBase/GiBUU/GiBUUHelper.h",
104  "EventGeneratorBase/evgenbase.h" => "nutools/EventGeneratorBase/evgenbase.h",
105  "IFDatabase/DBIService.h" => "nutools/IFDatabase/DBIService.h",
106  "IFDatabase/ColumnDef.h" => "nutools/IFDatabase/ColumnDef.h",
107  "IFDatabase/Column.h" => "nutools/IFDatabase/Column.h",
108  "IFDatabase/Util.h" => "nutools/IFDatabase/Util.h",
109  "IFDatabase/Row.h" => "nutools/IFDatabase/Row.h",
110  "IFDatabase/DataType.h" => "nutools/IFDatabase/DataType.h",
111  "IFDatabase/Table.h" => "nutools/IFDatabase/Table.h",
112  "NuBeamWeights/Conventions.h" => "nutools/NuBeamWeights/Conventions.h",
113  "NuBeamWeights/skzpReweight.h" => "nutools/NuBeamWeights/skzpReweight.h",
114  "EventDisplayBase/ScanWindow.h" => "nutools/EventDisplayBase/ScanWindow.h",
115  "EventDisplayBase/EventDisplay.h" => "nutools/EventDisplayBase/EventDisplay.h",
116  "EventDisplayBase/LinkDef.h" => "nutools/EventDisplayBase/LinkDef.h",
117  "EventDisplayBase/JobMenu.h" => "nutools/EventDisplayBase/JobMenu.h",
118  "EventDisplayBase/ScanOptions.h" => "nutools/EventDisplayBase/ScanOptions.h",
119  "EventDisplayBase/EventHolder.h" => "nutools/EventDisplayBase/EventHolder.h",
120  "EventDisplayBase/ParameterSetEdit.h" => "nutools/EventDisplayBase/ParameterSetEdit.h",
121  "EventDisplayBase/Colors.h" => "nutools/EventDisplayBase/Colors.h",
122  "EventDisplayBase/WindowMenu.h" => "nutools/EventDisplayBase/WindowMenu.h",
123  "EventDisplayBase/FileMenu.h" => "nutools/EventDisplayBase/FileMenu.h",
124  "EventDisplayBase/ListWindow.h" => "nutools/EventDisplayBase/ListWindow.h",
125  "EventDisplayBase/Functors.h" => "nutools/EventDisplayBase/Functors.h",
126  "EventDisplayBase/DisplayWindow.h" => "nutools/EventDisplayBase/DisplayWindow.h",
127  "EventDisplayBase/ObjListCanvas.h" => "nutools/EventDisplayBase/ObjListCanvas.h",
128  "EventDisplayBase/View2D.h" => "nutools/EventDisplayBase/View2D.h",
129  "EventDisplayBase/EditMenu.h" => "nutools/EventDisplayBase/EditMenu.h",
130  "EventDisplayBase/NavState.h" => "nutools/EventDisplayBase/NavState.h",
131  "EventDisplayBase/Canvas.h" => "nutools/EventDisplayBase/Canvas.h",
132  "EventDisplayBase/MenuBar.h" => "nutools/EventDisplayBase/MenuBar.h",
133  "EventDisplayBase/View3D.h" => "nutools/EventDisplayBase/View3D.h",
134  "EventDisplayBase/StatusBar.h" => "nutools/EventDisplayBase/StatusBar.h",
135  "EventDisplayBase/HelpMenu.h" => "nutools/EventDisplayBase/HelpMenu.h",
136  "EventDisplayBase/ButtonBar.h" => "nutools/EventDisplayBase/ButtonBar.h",
137  "EventDisplayBase/ColorScale.h" => "nutools/EventDisplayBase/ColorScale.h",
138  "EventDisplayBase/PrintDialog.h" => "nutools/EventDisplayBase/PrintDialog.h",
139  "EventDisplayBase/ParameterSetEditDialog.h" => "nutools/EventDisplayBase/ParameterSetEditDialog.h",
140  "EventDisplayBase/ServiceTable.h" => "nutools/EventDisplayBase/ServiceTable.h",
141  "EventDisplayBase/RootEnv.h" => "nutools/EventDisplayBase/RootEnv.h",
142  "EventDisplayBase/Printable.h" => "nutools/EventDisplayBase/Printable.h",
143  "EventDisplayBase/evdb.h" => "nutools/EventDisplayBase/evdb.h",
144  "G4Base/PrimaryParticleInformation.h" => "nutools/G4Base/PrimaryParticleInformation.h",
145  "G4Base/UserActionFactory.h" => "nutools/G4Base/UserActionFactory.h",
146  "G4Base/G4Helper.h" => "nutools/G4Base/G4Helper.h",
147  "G4Base/DetectorConstruction.h" => "nutools/G4Base/DetectorConstruction.h",
148  "G4Base/ExampleAction.h" => "nutools/G4Base/ExampleAction.h",
149  "G4Base/UserAction.h" => "nutools/G4Base/UserAction.h",
150  "G4Base/UserActionManager.h" => "nutools/G4Base/UserActionManager.h",
151  "G4Base/ConvertMCTruthToG4.h" => "nutools/G4Base/ConvertMCTruthToG4.h",
152  "MagneticField/MagneticField.h" => "nutools/MagneticField/MagneticField.h",
153  "NuReweight/art/NuReweight.h" => "nutools/NuReweight/art/NuReweight.h",
154  "NuReweight/GENIEReweight.h" => "nutools/NuReweight/GENIEReweight.h",
155  "NuReweight/ReweightLabels.h" => "nutools/NuReweight/ReweightLabels.h",
156  "G4Base/G4PhysicsProcessFactorySingleton.hh" => "nutools/G4Base/G4PhysicsProcessFactorySingleton.hh",
157  "G4Base/G4PhysListFactory.hh" => "nutools/G4Base/G4PhysListFactory.hh",
158  "G4Base/G4PhysListFactorySingleton.hh" => "nutools/G4Base/G4PhysListFactorySingleton.hh",
159  "G4Base/G4PhysicsProcessRegisterOld.icc" => "nutools/G4Base/G4PhysicsProcessRegisterOld.icc",
160  "G4Base/G4PhysListRegisterOld.icc" => "nutools/G4Base/G4PhysListRegisterOld.icc",
161  "SimulationBase/GTruth.h" => "nusimdata/SimulationBase/GTruth.h",
162  "SimulationBase/MCFlux.h" => "nusimdata/SimulationBase/MCFlux.h",
163  "SimulationBase/MCNeutrino.h" => "nusimdata/SimulationBase/MCNeutrino.h",
164  "SimulationBase/MCParticle.h" => "nusimdata/SimulationBase/MCParticle.h",
165  "SimulationBase/MCTrajectory.h" => "nusimdata/SimulationBase/MCTrajectory.h",
166  "SimulationBase/MCTruth.h" => "nusimdata/SimulationBase/MCTruth.h",
167  "SimulationBase/classes.h" => "nusimdata/SimulationBase/classes.h",
168  );
169 
170  }
171 
172 # since we do not build G4NuPhysicsLists, we do not translate anything
173 # this is for future reference
174 BEGIN { %g4physics_list = (
175  "G4NuPhysicsLists/HadronPhysicsNuBeam.hh" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/HadronPhysicsNuBeam.hh",
176  "G4NuPhysicsLists/G4PhysicsProcessFactorySingleton.hh" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/G4PhysicsProcessFactorySingleton.hh",
177  "G4NuPhysicsLists/G4PhysListFactory.hh" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/G4PhysListFactory.hh",
178  "G4NuPhysicsLists/QGSPStrFragmLundProtonBuilder.hh" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/QGSPStrFragmLundProtonBuilder.hh",
179  "G4NuPhysicsLists/G4PhysListFactorySingleton.hh" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/G4PhysListFactorySingleton.hh",
180  "G4NuPhysicsLists/NuBeam.hh" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/NuBeam.hh",
181  "G4NuPhysicsLists/G4PhysicsProcessRegisterOld.icc" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/G4PhysicsProcessRegisterOld.icc",
182  "G4NuPhysicsLists/G4PhysListRegisterOld.icc" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/G4PhysListRegisterOld.icc",
183  "G4NuPhysicsLists/NuBeam.icc" => "nutools/G4NuPhysicsLists/include/G4NuPhysicsLists/NuBeam.icc",
184  );
185 
186  }
187 
188 foreach my $inc (sort keys %inc_translations) {
189  s&^(\s*#include\s+["<])\Q$inc\E(.*)&${1}$inc_translations{$inc}${2}& and last;
190 }
191 
192 
193 
194 ### Local Variables:
195 ### mode: cperl
196 ### End: