CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
evf::GlobalEvFOutputJSONWriter Class Reference

Public Member Functions

 GlobalEvFOutputJSONWriter (std::string const &streamLabel, jsoncollector::DataPointDefinition const &, std::string const &outJsonDefName, jsoncollector::StringJ const &transferDestination, jsoncollector::StringJ const &mergeType)
 

Public Attributes

jsoncollector::IntJ accepted_
 
jsoncollector::IntJ errorEvents_
 
jsoncollector::IntJ fileAdler32_
 
jsoncollector::StringJ filelist_
 
jsoncollector::IntJ filesize_
 
jsoncollector::IntJ hltErrorEvents_
 
jsoncollector::StringJ inputFiles_
 
std::shared_ptr< jsoncollector::FastMonitorjsonMonitor_
 
jsoncollector::StringJ mergeType_
 
jsoncollector::IntJ processed_
 
jsoncollector::IntJ retCodeMask_
 
jsoncollector::StringJ transferDestination_
 

Detailed Description

Definition at line 164 of file GlobalEvFOutputModule.cc.

Constructor & Destructor Documentation

◆ GlobalEvFOutputJSONWriter()

evf::GlobalEvFOutputJSONWriter::GlobalEvFOutputJSONWriter ( std::string const &  streamLabel,
jsoncollector::DataPointDefinition const &  outJsonDef,
std::string const &  outJsonDefName,
jsoncollector::StringJ const &  transferDestination,
jsoncollector::StringJ const &  mergeType 
)

Definition at line 285 of file GlobalEvFOutputModule.cc.

References accepted_, errorEvents_, fileAdler32_, filelist_, filesize_, hltErrorEvents_, inputFiles_, jsonMonitor_, mergeType_, processed_, retCodeMask_, jsoncollector::JsonMonitorable::setName(), and transferDestination_.

290  : processed_(0),
291  accepted_(0),
292  errorEvents_(0),
293  retCodeMask_(0),
294  filelist_(),
295  filesize_(0),
296  inputFiles_(),
297  fileAdler32_(1),
298  transferDestination_(transferDestination),
299  mergeType_(mergeType),
300  hltErrorEvents_(0) {
301  processed_.setName("Processed");
302  accepted_.setName("Accepted");
303  errorEvents_.setName("ErrorEvents");
304  retCodeMask_.setName("ReturnCodeMask");
305  filelist_.setName("Filelist");
306  filesize_.setName("Filesize");
307  inputFiles_.setName("InputFiles");
308  fileAdler32_.setName("FileAdler32");
309  transferDestination_.setName("TransferDestination");
310  mergeType_.setName("MergeType");
311  hltErrorEvents_.setName("HLTErrorEvents");
312 
313  jsonMonitor_.reset(new jsoncollector::FastMonitor(&outJsonDef, true));
314  jsonMonitor_->setDefPath(outJsonDefName);
315  jsonMonitor_->registerGlobalMonitorable(&processed_, false);
316  jsonMonitor_->registerGlobalMonitorable(&accepted_, false);
317  jsonMonitor_->registerGlobalMonitorable(&errorEvents_, false);
318  jsonMonitor_->registerGlobalMonitorable(&retCodeMask_, false);
319  jsonMonitor_->registerGlobalMonitorable(&filelist_, false);
320  jsonMonitor_->registerGlobalMonitorable(&filesize_, false);
321  jsonMonitor_->registerGlobalMonitorable(&inputFiles_, false);
322  jsonMonitor_->registerGlobalMonitorable(&fileAdler32_, false);
323  jsonMonitor_->registerGlobalMonitorable(&transferDestination_, false);
324  jsonMonitor_->registerGlobalMonitorable(&mergeType_, false);
325  jsonMonitor_->registerGlobalMonitorable(&hltErrorEvents_, false);
326  jsonMonitor_->commit(nullptr);
327  }
std::shared_ptr< jsoncollector::FastMonitor > jsonMonitor_
virtual void setName(std::string name)
jsoncollector::StringJ transferDestination_

Member Data Documentation

◆ accepted_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::accepted_

Definition at line 173 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ errorEvents_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::errorEvents_

Definition at line 174 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ fileAdler32_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::fileAdler32_

Definition at line 179 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ filelist_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::filelist_

Definition at line 176 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ filesize_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::filesize_

Definition at line 177 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ hltErrorEvents_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::hltErrorEvents_

Definition at line 182 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ inputFiles_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::inputFiles_

Definition at line 178 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ jsonMonitor_

std::shared_ptr<jsoncollector::FastMonitor> evf::GlobalEvFOutputJSONWriter::jsonMonitor_

Definition at line 183 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ mergeType_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::mergeType_

Definition at line 181 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ processed_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::processed_

Definition at line 172 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ retCodeMask_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::retCodeMask_

Definition at line 175 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ transferDestination_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::transferDestination_

Definition at line 180 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().