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 591 of file hltDiff.cc.

Constructor & Destructor Documentation

JsonOutputProducer::JsonConfiguration::JsonConfiguration ( )
inline

Definition at line 614 of file hltDiff.cc.

614 : o(), n() {}
JsonConfigurationBlock o
Definition: hltDiff.cc:592
JsonConfigurationBlock n
Definition: hltDiff.cc:593

Member Function Documentation

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

Definition at line 597 of file hltDiff.cc.

References PatBasicFWLiteAnalyzer::events, summarizeEdmComparisonLogfiles::indent, edmPickEvents::json, crabWrapper::key, JsonOutputProducer::JsonConfigurationBlock::serialise(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by JsonOutputProducer::write().

597  {
598  std::ostringstream json;
599  json << indent(_indent) << key("configuration") << '{'; // line open
600  json << indent(_indent+1) << key("o") << '{'; // line open
601  json << o.serialise(_indent+2); // block
602  json << indent(_indent+1) << "},"; // line close
603  json << indent(_indent+1) << key("n") << '{'; // line open
604  json << n.serialise(_indent+2); // line block
605  json << indent(_indent+1) << "},"; // line close
606  std::string prescales_str = prescales ? "true" : "false";
607  json << indent(_indent+1) << key("prescales") << prescales_str << ','; // line
608  json << indent(_indent+1) << key("events") << events; // line
609  json << indent(_indent) << "}"; // line close
610 
611  return json.str();
612  }
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:481
JsonConfigurationBlock o
Definition: hltDiff.cc:592
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:552
JsonConfigurationBlock n
Definition: hltDiff.cc:593
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:495

Member Data Documentation

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

Definition at line 593 of file hltDiff.cc.

Referenced by HltDiff::compare(), and JsonOutputProducer::output_filename_base().

JsonConfigurationBlock JsonOutputProducer::JsonConfiguration::o

Definition at line 592 of file hltDiff.cc.

Referenced by HltDiff::compare(), and JsonOutputProducer::output_filename_base().

bool JsonOutputProducer::JsonConfiguration::prescales

Definition at line 594 of file hltDiff.cc.

Referenced by HltDiff::compare().