CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 585 of file hltDiff.cc.

Constructor & Destructor Documentation

JsonOutputProducer::JsonConfiguration::JsonConfiguration ( )
inline

Definition at line 608 of file hltDiff.cc.

608 : o(), n() {}
JsonConfigurationBlock o
Definition: hltDiff.cc:586
JsonConfigurationBlock n
Definition: hltDiff.cc:587

Member Function Documentation

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

Definition at line 591 of file hltDiff.cc.

References patZpeak::events, dataformats::indent(), L1Trigger_dataformats::json, relval_steps::key, gen::n, connectstrParser::o, makeHLTPrescaleTable::prescales, and AlCaHLTBitMon_QueryRunRegistry::string.

591  {
592  std::ostringstream json;
593  json << indent(_indent) << key("configuration") << '{'; // line open
594  json << indent(_indent+1) << key("o") << '{'; // line open
595  json << o.serialise(_indent+2); // block
596  json << indent(_indent+1) << "},"; // line close
597  json << indent(_indent+1) << key("n") << '{'; // line open
598  json << n.serialise(_indent+2); // line block
599  json << indent(_indent+1) << "},"; // line close
600  std::string prescales_str = prescales ? "true" : "false";
601  json << indent(_indent+1) << key("prescales") << prescales_str << ','; // line
602  json << indent(_indent+1) << key("events") << events; // line
603  json << indent(_indent) << "}"; // line close
604 
605  return json.str();
606  }
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:475
JsonConfigurationBlock o
Definition: hltDiff.cc:586
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:546
JsonConfigurationBlock n
Definition: hltDiff.cc:587
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:489

Member Data Documentation

int JsonOutputProducer::JsonConfiguration::events
JsonConfigurationBlock JsonOutputProducer::JsonConfiguration::n

Definition at line 587 of file hltDiff.cc.

Referenced by HltDiff::compare().

JsonConfigurationBlock JsonOutputProducer::JsonConfiguration::o

Definition at line 586 of file hltDiff.cc.

Referenced by HltDiff::compare().

bool JsonOutputProducer::JsonConfiguration::prescales

Definition at line 588 of file hltDiff.cc.

Referenced by HltDiff::compare().