Revision Logging

All processors must register their revision number in the run header parameters of the datasets processed by them. This makes it easy to find out which data need to be re-processed in case a bug is found in a processor.

To do that make sure to include something like

void MyProcessor::processRunHeader( LCRunHeader* run ) {

    run->parameters().setValue( _processorName + "_revision", "$Rev$" );

    // additional code might follow here

}
in the processRunHeader method of your processor.

In addition to that line of code you have to enable the "Rev" keyword substitution for the corresponding source file myprocessor.cc by executing the command

svn propset svn:keywords Rev myprocessor.cc
You can verify that the file properties are set correctly by using
svn proplist --verbose myprocessor.cc
afterwards.

-- PeterWienemann - 18 Apr 2007


This topic: ILCTPC > WebHome > Software > MarlinTPC > MarlinTPCDeveloperWorkbook > DeveloperWorkbookRevisionLogging
Topic revision: r1 - 2007-04-18 - PeterWienemann
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback