|
[Rivet-svn] r4209 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Mar 7 12:04:48 GMT 2013
Author: buckley Date: Thu Mar 7 12:04:48 2013 New Revision: 4209 Log: Small format improvement in code output of rivet-mkanalysis Modified: trunk/bin/rivet-mkanalysis Modified: trunk/bin/rivet-mkanalysis ============================================================================== --- trunk/bin/rivet-mkanalysis Thu Mar 7 11:55:56 2013 (r4208) +++ trunk/bin/rivet-mkanalysis Thu Mar 7 12:04:48 2013 (r4209) @@ -162,7 +162,7 @@ ANASRCFILE = os.path.join(ANASRCDIR, ANANAME+".cc") logging.debug("Writing implementation template to %s" % ANASRCFILE) f = open(ANASRCFILE, "w") - src = """\ + src = '''\ // -*- C++ -*- #include "Rivet/Analysis.hh" #include "Rivet/RivetYODA.hh" @@ -176,16 +176,11 @@ class %(ANANAME)s : public Analysis { public: - /// @name Constructors etc. - //@{ - /// Constructor %(ANANAME)s() : Analysis("%(ANANAME)s") { } - //@} - public: @@ -248,14 +243,14 @@ DECLARE_RIVET_PLUGIN(%(ANANAME)s); } -""" % KEYWORDS +''' % KEYWORDS f.write(src) f.close() ANAPLOTFILE = os.path.join(ANAPLOTDIR, ANANAME+".plot") logging.debug("Writing plot template to %s" % ANAPLOTFILE) f = open(ANAPLOTFILE, "w") - src = """\ + src = '''\ # BEGIN PLOT /%(ANANAME)s/d01-x01-y01 #Title=[Uncomment and insert title for histogram d01-x01-y01 here] #XLabel=[Uncomment and insert x-axis label for histogram d01-x01-y01 here] @@ -264,7 +259,7 @@ # END PLOT # ... add more histograms as you need them ... -""" % KEYWORDS +''' % KEYWORDS f.write(src) f.close() @@ -312,5 +307,4 @@ f.write(src) f.close() - logging.info("Use e.g. 'rivet-buildplugin Rivet%s.so %s.cc' to compile the plugin" % (ANANAME, ANANAME))
More information about the Rivet-svn mailing list |