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

◆ JsonTriggerEventState() [1/2]

JsonOutputProducer::JsonTriggerEventState::JsonTriggerEventState ( )
inline

Definition at line 655 of file hltDiff.cc.

655 : tr(-1), o(), n() {}

◆ JsonTriggerEventState() [2/2]

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

Definition at line 656 of file hltDiff.cc.

656 : tr(_tr), o(), n() {}

Member Function Documentation

◆ serialise()

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

Definition at line 646 of file hltDiff.cc.

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  }

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

Member Data Documentation

◆ n

JsonEventState JsonOutputProducer::JsonTriggerEventState::n

Definition at line 644 of file hltDiff.cc.

◆ o

JsonEventState JsonOutputProducer::JsonTriggerEventState::o

Definition at line 643 of file hltDiff.cc.

◆ tr

int JsonOutputProducer::JsonTriggerEventState::tr

Definition at line 642 of file hltDiff.cc.

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

JsonOutputProducer::key_int
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:456
JsonOutputProducer::indent
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:426
JsonOutputProducer::JsonTriggerEventState::tr
int tr
Definition: hltDiff.cc:642
JsonOutputProducer::JsonTriggerEventState::o
JsonEventState o
Definition: hltDiff.cc:643
JsonOutputProducer::JsonEventState::serialise
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:623
JsonOutputProducer::key
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:440
JsonOutputProducer::JsonTriggerEventState::n
JsonEventState n
Definition: hltDiff.cc:644
json
nlohmann::json json
Definition: FastTimerService.cc:21