CMS 3D CMS Logo

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

Public Member Functions

 JsonTriggerEventState ()
 
 JsonTriggerEventState (int _tr)
 
std::string serialise (size_t _indent=0) const
 

Public Attributes

JsonEventState n
 
JsonEventState o
 
int tr
 

Detailed Description

Definition at line 691 of file hltDiff.cc.

Constructor & Destructor Documentation

JsonOutputProducer::JsonTriggerEventState::JsonTriggerEventState ( )
inline

Definition at line 705 of file hltDiff.cc.

JsonOutputProducer::JsonTriggerEventState::JsonTriggerEventState ( int  _tr)
inline

Definition at line 706 of file hltDiff.cc.

Member Function Documentation

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

Definition at line 696 of file hltDiff.cc.

References summarizeEdmComparisonLogfiles::indent, edmPickEvents::json, crabWrapper::key, and JsonOutputProducer::JsonEventState::serialise().

696  {
697  std::ostringstream json;
698  json << indent(_indent) << key_int("t", tr) << ','; // line
699  json << indent(_indent) << key("o") << '{' << o.serialise() << "},"; // line
700  json << indent(_indent) << key("n") << '{' << n.serialise() << "}"; // line
701 
702  return json.str();
703  }
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:481
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:674
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:511
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:495

Member Data Documentation

JsonEventState JsonOutputProducer::JsonTriggerEventState::n
JsonEventState JsonOutputProducer::JsonTriggerEventState::o
int JsonOutputProducer::JsonTriggerEventState::tr