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

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

247  : processed_(0),
248  accepted_(0),
249  errorEvents_(0),
250  retCodeMask_(0),
251  filelist_(),
252  filesize_(0),
253  inputFiles_(),
254  fileAdler32_(1),
255  transferDestination_(transferDestination),
256  mergeType_(mergeType),
257  hltErrorEvents_(0) {
258  processed_.setName("Processed");
259  accepted_.setName("Accepted");
260  errorEvents_.setName("ErrorEvents");
261  retCodeMask_.setName("ReturnCodeMask");
262  filelist_.setName("Filelist");
263  filesize_.setName("Filesize");
264  inputFiles_.setName("InputFiles");
265  fileAdler32_.setName("FileAdler32");
266  transferDestination_.setName("TransferDestination");
267  mergeType_.setName("MergeType");
268  hltErrorEvents_.setName("HLTErrorEvents");
269 
270  jsonMonitor_.reset(new jsoncollector::FastMonitor(&outJsonDef, true));
271  jsonMonitor_->setDefPath(outJsonDefName);
272  jsonMonitor_->registerGlobalMonitorable(&processed_, false);
273  jsonMonitor_->registerGlobalMonitorable(&accepted_, false);
274  jsonMonitor_->registerGlobalMonitorable(&errorEvents_, false);
275  jsonMonitor_->registerGlobalMonitorable(&retCodeMask_, false);
276  jsonMonitor_->registerGlobalMonitorable(&filelist_, false);
277  jsonMonitor_->registerGlobalMonitorable(&filesize_, false);
278  jsonMonitor_->registerGlobalMonitorable(&inputFiles_, false);
279  jsonMonitor_->registerGlobalMonitorable(&fileAdler32_, false);
280  jsonMonitor_->registerGlobalMonitorable(&transferDestination_, false);
281  jsonMonitor_->registerGlobalMonitorable(&mergeType_, false);
282  jsonMonitor_->registerGlobalMonitorable(&hltErrorEvents_, false);
283  jsonMonitor_->commit(nullptr);
284  }
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 143 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ errorEvents_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::errorEvents_

Definition at line 144 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ fileAdler32_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::fileAdler32_

Definition at line 149 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ filelist_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::filelist_

Definition at line 146 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ filesize_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::filesize_

Definition at line 147 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ hltErrorEvents_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::hltErrorEvents_

Definition at line 152 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ inputFiles_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::inputFiles_

Definition at line 148 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ jsonMonitor_

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

Definition at line 153 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ mergeType_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::mergeType_

Definition at line 151 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ processed_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::processed_

Definition at line 142 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ retCodeMask_

jsoncollector::IntJ evf::GlobalEvFOutputJSONWriter::retCodeMask_

Definition at line 145 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().

◆ transferDestination_

jsoncollector::StringJ evf::GlobalEvFOutputJSONWriter::transferDestination_

Definition at line 150 of file GlobalEvFOutputModule.cc.

Referenced by GlobalEvFOutputJSONWriter().