Parameter Logging

In addition to the revision number, processors must also register the used parameters in the run header parameters of the datasets processed by them.

This is done by adding

void MyProcessor::processRunHeader( LCRunHeader* run ) {

    for ( ProcParamMap::iterator i = _map.begin(); i != _map.end(); i++ ) {
        if ( ! i->second->isOptional() || i->second->valueSet() ) {
            run->parameters().setValue( _processorName + "_" + i->second->name(), i->second->value() );
        }
    }

    // additional code might follow here
}
in the processRunHeader method of your processor.

-- PeterWienemann - 10 May 2007


This topic: ILCTPC > WebHome > Software > MarlinTPC > MarlinTPCDeveloperWorkbook > DeveloperWorkbookParameterLogging
Topic revision: r1 - 2007-05-10 - 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