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

Constructor & Destructor Documentation

JsonOutputProducer::JsonTriggerEventState::JsonTriggerEventState ( )
inline

Definition at line 655 of file hltDiff.cc.

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

Definition at line 656 of file hltDiff.cc.

Member Function Documentation

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

Definition at line 646 of file hltDiff.cc.

References util.rrClient::indent, L1Trigger_dataformats::json, crabWrapper::key, and JsonOutputProducer::JsonEventState::serialise().

646  {
647  std::ostringstream json;
648  json << indent(_indent) << key_int("t", tr) << ','; // line
649  json << indent(_indent) << key("o") << '{' << o.serialise() << "},"; // line
650  json << indent(_indent) << key("n") << '{' << n.serialise() << "}"; // line
651 
652  return json.str();
653  }
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:426
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:623
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:456
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:440

Member Data Documentation

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