void HistoAnalyzer::init( XmlConfig &_config, string _nodePath ){ TaskRunner::init( _config, _nodePath ); int _jobIndex = config.getInt( "jobIndex", -1 ); jobIndex = _jobIndex; string jobPostfix = "_" + ts( _jobIndex ) + ".root"; if ( -1 >=_jobIndex ) jobPostfix = ".root"; this->jobModifier = "job_" + ts( _jobIndex ) +"_"; if ( -1 == _jobIndex ){ jobPostfix = ".root"; this->jobModifier = ""; } initHistoBook( jobPostfix ); initReporter( jobPostfix ); initRootFiles(); initialize(); }
Reporter::Reporter(QObject* parent) : QThread(parent) { initReporter(); }