test
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::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 685 of file hltDiff.cc.

Constructor & Destructor Documentation

JsonOutputProducer::JsonTriggerEventState::JsonTriggerEventState ( )
inline

Definition at line 699 of file hltDiff.cc.

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

Definition at line 700 of file hltDiff.cc.

Member Function Documentation

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

Definition at line 690 of file hltDiff.cc.

References dataformats::indent(), L1Trigger_dataformats::json, relval_steps::key, gen::n, and connectstrParser::o.

690  {
691  std::ostringstream json;
692  json << indent(_indent) << key_int("t", tr) << ','; // line
693  json << indent(_indent) << key("o") << '{' << o.serialise() << "},"; // line
694  json << indent(_indent) << key("n") << '{' << n.serialise() << "}"; // line
695 
696  return json.str();
697  }
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:475
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:668
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:505
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:489

Member Data Documentation

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