UpdateForGenVector.py
Go to the documentation of this file.
1 #!/usr/bin/env python2
2 
3 import sys, re
4 
5 import SerialSubstitution
6 from SerialSubstitution import AddProcessor, RunSubstitutor
7 
8 
9 ################################################################################
10 if __name__ == "__main__":
11 
12  #############################################################################
13  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
14  # C++ source code
15  #
17 
18  Subst.AddFileType("h", "cc", "cpp", "cxx", "tcc")
19 
20  # include files
21  Subst.AddWord ("geo::MiddlePointAccumulator" , "geo::vect::MiddlePointAccumulator")
22  Subst.AddWord ("geo::vect::Normalize" , "geo::vect::normalize" )
23  Subst.AddWord ("geo::vect::Dot" , "geo::vect::dot" )
24  Subst.AddWord ("geo::vect::Cross" , "geo::vect::cross" )
25  Subst.AddWord ("geo::vect::MixedProduct" , "geo::vect::mixedProduct" )
26  Subst.AddWord ("geo::vect::Mag2" , "geo::vect::mag2" )
27  Subst.AddWord ("geo::vect::Rounded01" , "geo::vect::rounded01" )
28  Subst.AddWord ("geo::vect::Round01" , "geo::vect::round01" )
29  Subst.AddWord ("geo::vect::RoundValue01" , "geo::vect::extra::roundValue01")
30 
31  Subst.AddWord ("geo::vect::Vector_t" , "geo::Vector_t" )
32  Subst.AddWord ("geo::vect::Point_t" , "geo::Point_t" )
33 
34  Subst.AddWord ("larcoreobj/SimpleTypesAndConstants/geo_vectors_utils.h", "larcorealg/Geometry/geo_vectors_utils.h")
35  Subst.AddWord ("larcoreobj/SimpleTypesAndConstants/geo_vectors_fhicl.h", "larcorealg/Geometry/geo_vectors_fhicl.h")
36 
37 
38  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
39  #############################################################################
40 
41  sys.exit(RunSubstitutor())
42 #
def AddProcessor(processor)