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

Constructor & Destructor Documentation

◆ JsonTriggerEventState() [1/2]

JsonOutputProducer::JsonTriggerEventState::JsonTriggerEventState ( )
inline

Definition at line 654 of file hltDiff.cc.

◆ JsonTriggerEventState() [2/2]

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

Definition at line 655 of file hltDiff.cc.

Member Function Documentation

◆ serialise()

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

Definition at line 645 of file hltDiff.cc.

References util.rrClient::indent, crabWrapper::key, dqmiodumpmetadata::n, and EcalTangentSkim_cfg::o.

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

Member Data Documentation

◆ n

JsonEventState JsonOutputProducer::JsonTriggerEventState::n

Definition at line 643 of file hltDiff.cc.

◆ o

JsonEventState JsonOutputProducer::JsonTriggerEventState::o

Definition at line 642 of file hltDiff.cc.

◆ tr

int JsonOutputProducer::JsonTriggerEventState::tr

Definition at line 641 of file hltDiff.cc.

Referenced by JsonOutputProducer::JsonEvent::pushTrigger().