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)
 

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 109 of file GlobalEvFOutputModule.cc.

Constructor & Destructor Documentation

◆ GlobalEvFOutputJSONWriter()

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

Definition at line 207 of file GlobalEvFOutputModule.cc.

References accepted_, errorEvents_, fileAdler32_, filelist_, filesize_, hltErrorEvents_, inputFiles_, jsonMonitor_, mergeType_, evf::MergeTypeDAT, processed_, retCodeMask_, jsoncollector::JsonMonitorable::setName(), beamhlt_dqm_sourceclient-live_cfg::streamLabel, and transferDestination_.

210  : processed_(0),
211  accepted_(0),
212  errorEvents_(0),
213  retCodeMask_(0),
214  filelist_(),
215  filesize_(0),
216  inputFiles_(),
217  fileAdler32_(1),
218  hltErrorEvents_(0) {
221 
222  processed_.setName("Processed");
223  accepted_.setName("Accepted");
224  errorEvents_.setName("ErrorEvents");
225  retCodeMask_.setName("ReturnCodeMask");
226  filelist_.setName("Filelist");
227  filesize_.setName("Filesize");
228  inputFiles_.setName("InputFiles");
229  fileAdler32_.setName("FileAdler32");
230  transferDestination_.setName("TransferDestination");
231  mergeType_.setName("MergeType");
232  hltErrorEvents_.setName("HLTErrorEvents");
233 
234  jsonMonitor_.reset(new jsoncollector::FastMonitor(&outJsonDef, true));
235  jsonMonitor_->setDefPath(outJsonDefName);
236  jsonMonitor_->registerGlobalMonitorable(&processed_, false);
237  jsonMonitor_->registerGlobalMonitorable(&accepted_, false);
238  jsonMonitor_->registerGlobalMonitorable(&errorEvents_, false);
239  jsonMonitor_->registerGlobalMonitorable(&retCodeMask_, false);
240  jsonMonitor_->registerGlobalMonitorable(&filelist_, false);
241  jsonMonitor_->registerGlobalMonitorable(&filesize_, false);
242  jsonMonitor_->registerGlobalMonitorable(&inputFiles_, false);
243  jsonMonitor_->registerGlobalMonitorable(&fileAdler32_, false);
244  jsonMonitor_->registerGlobalMonitorable(&transferDestination_, false);
245  jsonMonitor_->registerGlobalMonitorable(&mergeType_, false);
246  jsonMonitor_->registerGlobalMonitorable(&hltErrorEvents_, false);
247  jsonMonitor_->commit(nullptr);
248  }
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 116 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ errorEvents_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::errorEvents_

Definition at line 117 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ fileAdler32_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::fileAdler32_

Definition at line 122 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ filelist_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::filelist_

Definition at line 119 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ filesize_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::filesize_

Definition at line 120 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ hltErrorEvents_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::hltErrorEvents_

Definition at line 125 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ inputFiles_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::inputFiles_

Definition at line 121 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ jsonMonitor_

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

Definition at line 126 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ mergeType_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::mergeType_

Definition at line 124 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ processed_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::processed_

Definition at line 115 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ retCodeMask_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::retCodeMask_

Definition at line 118 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ transferDestination_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::transferDestination_

Definition at line 123 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().