CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
JsonOutputProducer::JsonConfiguration Struct Reference

Public Member Functions

 JsonConfiguration ()
 
std::string serialise (size_t _indent=0) const
 

Public Attributes

int events
 
JsonConfigurationBlock n
 
JsonConfigurationBlock o
 
bool prescales
 

Detailed Description

Definition at line 539 of file hltDiff.cc.

Constructor & Destructor Documentation

◆ JsonConfiguration()

JsonOutputProducer::JsonConfiguration::JsonConfiguration ( )
inline

Definition at line 562 of file hltDiff.cc.

562 : o(), n() {}

Member Function Documentation

◆ serialise()

std::string JsonOutputProducer::JsonConfiguration::serialise ( size_t  _indent = 0) const
inline

Definition at line 545 of file hltDiff.cc.

545  {
546  std::ostringstream json;
547  json << indent(_indent) << key("configuration") << '{'; // line open
548  json << indent(_indent + 1) << key("o") << '{'; // line open
549  json << o.serialise(_indent + 2); // block
550  json << indent(_indent + 1) << "},"; // line close
551  json << indent(_indent + 1) << key("n") << '{'; // line open
552  json << n.serialise(_indent + 2); // line block
553  json << indent(_indent + 1) << "},"; // line close
554  std::string prescales_str = prescales ? "true" : "false";
555  json << indent(_indent + 1) << key("prescales") << prescales_str << ','; // line
556  json << indent(_indent + 1) << key("events") << events; // line
557  json << indent(_indent) << "}"; // line close
558 
559  return json.str();
560  }

References patZpeak::events, util.rrClient::indent, crabWrapper::key, dqmiodumpmetadata::n, EcalTangentSkim_cfg::o, hltrates_dqm_sourceclient-live_cfg::prescales, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ events

int JsonOutputProducer::JsonConfiguration::events

◆ n

JsonConfigurationBlock JsonOutputProducer::JsonConfiguration::n

Definition at line 541 of file hltDiff.cc.

◆ o

JsonConfigurationBlock JsonOutputProducer::JsonConfiguration::o

Definition at line 540 of file hltDiff.cc.

◆ prescales

bool JsonOutputProducer::JsonConfiguration::prescales

Definition at line 542 of file hltDiff.cc.

JsonOutputProducer::JsonConfiguration::events
int events
Definition: hltDiff.cc:543
JsonOutputProducer::indent
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:425
JsonOutputProducer::JsonConfigurationBlock::serialise
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:497
JsonOutputProducer::JsonConfiguration::o
JsonConfigurationBlock o
Definition: hltDiff.cc:540
JsonOutputProducer::key
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:439
JsonOutputProducer::JsonConfiguration::prescales
bool prescales
Definition: hltDiff.cc:542
JsonOutputProducer::JsonConfiguration::n
JsonConfigurationBlock n
Definition: hltDiff.cc:541
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
json
nlohmann::json json
Definition: FastTimerService.cc:21