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