3 use vars
qw(%dir_list);
5 "art_Persistency_Common" =>
"art::Persistency_Common",
6 "art_Persistency_Provenance" =>
"art::Persistency_Provenance",
7 "art_Framework_Principal" =>
"art::Framework_Principal",
8 "art_Framework_Services_Registry" =>
"art::Framework_Services_Registry",
9 "art_Framework_Services_Optional_RandomNumberGenerator_service" =>
"art::Framework_Services_Optional_RandomNumberGenerator_service",
10 "art_Framework_IO_ProductMix" =>
"art::Framework_IO_ProductMix",
11 "art_Utilities" =>
"art::Utilities",
12 "MF_MessageLogger" =>
"messagefacility::MF_MessageLogger",
13 "canvas" =>
"canvas::canvas",
14 "cetlib" =>
"cetlib::cetlib",
15 "cetlib_except" =>
"cetlib_except::cetlib_except",
16 "lardata_Utilities_LArPropertiesServiceArgoNeuT_service" =>
"ArgoneutUtilities_LArPropertiesServiceArgoNeuT_service",
17 "lardata_Utilities_DetectorPropertiesServiceArgoNeuT_service" =>
"ArgoneutUtilities_DetectorPropertiesServiceArgoNeuT_service",
18 "GeometryTestLib" =>
"larcorealg::GeometryTestLib",
19 "nusimdata_SimulationBase" =>
"nusimdata::SimulationBase"
22 foreach my $lib (sort keys %dir_list) {
23 next
if m&add_subdirectory&i;
24 next
if m&find_ups_product&i;
25 next
if m&cet_find_library&i;
26 next
if m&simple_plugin&i;
27 next
if m&create_version_variables&i;
28 next
if m&SUBDIRNAME&i;
30 next
if m&LIBRARY_NAME&i;
32 next
if m&fhiclcpp::fhiclcpp&i;
33 next
if m&canvas::canvas&i;
34 next
if m&cetlib::cetlib&i;
35 next
if m&cetlib_except::cetlib_except&i;
36 next
if m&messagefacility::MF&i;
37 #s&\b\Q${lib}\E([^\.\s]*\b)([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
38 s&\b\Q${lib}\E\b([^\.]|$)&$dir_list{
$lib}${1}${2}&
g and last;
41 s&\$\{ART_FRAMEWORK_CORE\}&art::Framework_Core&;
42 s&\$\{ART_FRAMEWORK_IO_SOURCES\}&art::Framework_IO_Sources&;
43 s&\$\{ART_FRAMEWORK_PRINCIPAL\}&art::Framework_Principal&;
44 s&\$\{ART_FRAMEWORK_SERVICES_REGISTRY\}&art::Framework_Services_Registry&;
45 s&\$\{ART_PERSISTENCY_COMMON\}&art::Persistency_Common&;
46 s&\$\{ART_PERSISTENCY_PROVENANCE\}&art::Persistency_Provenance&;
47 s&\$\{ART_UTILITIES\}&art::Utilities&;
48 s&\$\{ART_ROOT_IO\}&art_root_io::art_root_io&;
49 s&\$\{ART_ROOT_IO_ROOTINPUT_SOURCE\}&art_root_io::RootInput_source&;
50 s&\$\{ART_ROOT_IO_TFILESERVICE_SERVICE\}&art_root_io::TFileService_service&;
51 s&\$\{ART_ROOT_IO_TFILE_SUPPORT\}&art_root_io::tfile_support&;
52 s&\$\{BOOST_DATE_TIME\}&Boost::date_time&;
53 s&\$\{BOOST_FILESYSTEM\}&Boost::filesystem&;
54 s&\$\{Boost_FILESYSTEM_LIBRARY\}&Boost::filesystem&;
55 s&\$\{BOOST_REGEX\}&Boost::regex&;
56 s&\$\{BOOST_SYSTEM\}&&; # No longer
exists
57 s&\$\{Boost_SYSTEM_LIBRARY\}&&; # No longer
exists
58 s&\$\{BOOST_THREAD\}&Boost::thread&;
59 s&\$\{CANVAS\}&canvas::canvas&;
60 s&\$\{CETLIB\}&cetlib::cetlib&;
61 s&\$\{CETLIB_EXCEPT\}&cetlib_except::cetlib_except&;
62 s&\$\{FHICLCPP\}&fhiclcpp::fhiclcpp&;
63 s&\$\{MF_MESSAGELOGGER\}&messagefacility::MF_MessageLogger&;
64 s&\$\{MF_UTILITIES\}&&; # No longer
exists
65 s&\$\{PANDORASDK\}&PANDORASDK&;
66 s&\$\{PANDORAMONITORING\}&PANDORAMONITORING&;
67 s&\$\{ROOT_CINT\}&&; # No longer
exists
68 s&\$\{ROOT_CORE\}&ROOT::Core&;
69 s&\$\{ROOT_EG\}&ROOT::EG&;
70 s&\$\{ROOT_EVE\}&ROOT::Eve&;
71 s&\$\{ROOT_FFTW\}&ROOT::FFTW&;
72 s&\$\{ROOT_GDML\}&ROOT::Gdml&;
73 s&\$\{ROOT_GED\}&ROOT::Ged&;
74 s&\$\{ROOT_GEOM\}&ROOT::Geom&;
75 s&\$\{ROOT_GEOMPAINTER\}&ROOT::GeomPainter&;
76 s&\$\{ROOT_GPAD\}&ROOT::Gpad&;
77 s&\$\{ROOT_GRAF\}&ROOT::Graf&;
78 s&\$\{ROOT_GRAF3D\}&ROOT::Graf3d&;
79 s&\$\{ROOT_GUI\}&ROOT::Gui&;
80 s&\$\{ROOT_GX11\}&ROOT::GX11&;
81 s&\$\{ROOT_HIST\}&ROOT::Hist&;
82 s&\$\{ROOT_MATHCORE\}&ROOT::MathCore&;
83 s&\$\{ROOT_MATHMORE\}&ROOT::MathMore&;
84 s&\$\{ROOT_MATRIX\}&ROOT::Matrix&;
85 s&\$\{ROOT_NET\}&ROOT::Net&;
86 s&\$\{ROOT_PHYSICS\}&ROOT::Physics&;
87 s&\$\{ROOT_POSTSCRIPT\}&ROOT::Postscript&;
88 s&\$\{ROOT_RGL\}&ROOT::RGL&;
89 s&\$\{ROOT_RINT\}&ROOT::Rint&;
90 s&\$\{ROOT_RIO\}&ROOT::RIO&;
91 s&\$\{ROOT_THREAD\}&ROOT::Thread&;
92 s&\$\{ROOT_TREE\}&ROOT::Tree&;
93 s&\$\{ROOT_TREEPLAYER\}&ROOT::TreePlayer&;
94 s&\$\{ROOT_XMLIO\}&ROOT::XMLIO&;
95 s&\$\{ROOT_EGPYTHIA6\}&ROOT::EGPythia6&;
96 s&\$\{ROOTSYS\}/lib/libEGPythia6.so&ROOT::EGPythia6&;
97 s&\$\{LIBWDA\}&LIBWDA&;
100 s&\$\{CLHEP\}&CLHEP::CLHEP&;
104 s&\$\{IFDH_SERVICE\}&IFDH_SERVICE&;
105 s&\$\{LOG4CPP\}&LOG4CPP&;
106 s&\$\{PYTHIA6\}&PYTHIA6&;
107 s&\$\{LHAPDF\}&LHAPDF&;
108 s&\$\{SQLITE\}&SQLITE&;
109 s&\$\{SQLITE3\}&SQLITE&;
111 s&\$\{G4GMOCREN\}&G4GMOCREN&;
112 s&\$\{G4RAYTRACER\}&G4RAYTRACER&;
113 s&\$\{G4TREE\}&G4TREE&;
114 s&\$\{G4VRML\}&G4VRML&;
115 s&\$\{G4EVENT\}&G4EVENT&;
116 s&\$\{G4GEOMETRY\}&G4GEOMETRY&;
117 s&\$\{G4GLOBAL\}&G4GLOBAL&;
118 s&\$\{G4GRAPHICS_REPS\}&G4GRAPHICS_REPS&;
119 s&\$\{G4INTERCOMS\}&G4INTERCOMS&;
120 s&\$\{G4INTERFACES\}&G4INTERFACES&;
121 s&\$\{G4MATERIALS\}&G4MATERIALS&;
122 s&\$\{G4MODELING\}&G4MODELING&;
123 s&\$\{G4PARTICLES\}&G4PARTICLES&;
124 s&\$\{G4PERSISTENCY\}&G4PERSISTENCY&;
125 s&\$\{G4PHYSICSLISTS\}&G4PHYSICSLISTS&;
126 s&\$\{G4PROCESSES\}&G4PROCESSES&;
127 s&\$\{G4READOUT\}&G4READOUT&;
128 s&\$\{G4RUN\}&G4RUN&;
129 s&\$\{G4TRACK\}&G4TRACK&;
130 s&\$\{G4TRACKING\}&G4TRACKING&;
131 s&\$\{G4VISHEPREP\}&G4VISHEPREP&;
132 s&\$\{G4VIS_MANAGEMENT\}&G4VIS_MANAGEMENT&;
133 s&\$\{G4DIGITS_HITS\}&G4DIGITS_HITS&;
134 s&\$\{XERCESC\}&XERCESC&;
135 s&\$\{GFWMSG\}&GFWMSG&;
136 s&\$\{GFWREG\}&GFWREG&;
137 s&\$\{GFWALG\}&GFWALG&;
138 s&\$\{GFWINT\}&GFWINT&;
139 s&\$\{GFWGHEP\}&GFWGHEP&;
140 s&\$\{GFWNUM\}&GFWNUM&;
141 s&\$\{GFWUTL\}&GFWUTL&;
142 s&\$\{GFWPARDAT\}&GFWPARDAT&;
143 s&\$\{GFWEG\}&GFWEG&;
144 s&\$\{GFWNTP\}&GFWNTP&;
145 s&\$\{GPHXS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$\{GTLFLX\}>LFLX&;
181 s&\$\{GRWFWK\}&GRWFWK&;
182 s&\$\{GRWIO\}&GRWIO&;
183 s&\$\{GRWCLC\}&GRWCLC&;
185 s&\$\{DK2NU_TREE\}&DK2NU_TREE&;
186 s&\$\{DK2NU_GENIE\}&DK2NU_GENIE&;
187 s&\$\{TENSORFLOW\}&TENSORFLOW&;
188 s&\$\{PROTOBUF\}&PROTOBUF&;
189 s&\$\{GRPC_CLIENT\}&TRITON::grpcclient&;
190 s&\$\{MARLEY\}&MARLEY&;
191 s&\$\{MARLEY_ROOT\}&MARLEY_ROOT&;
192 s&\$\{BXDECAY0\}&BXDECAY0&;
193 s&\$\{JSONCPP\}&JSONCPP&;
use File::Basename qw(fileparse)
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...
my($xml, $fcl, $workdir, $check, $merge)
bool exists(std::string path)
return match has_match and(match.match_pdg==11 or match.match_pdg==-11)
then echo File list $list not found else cat $list while read file do echo $file sed s
foreach my $lib(sort keys%dir_list)