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.

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

◆ JsonTriggerEventState() [2/2]

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

Definition at line 655 of file hltDiff.cc.

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

Member Function Documentation

◆ serialise()

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

Definition at line 645 of file hltDiff.cc.

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  }

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

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().

JsonOutputProducer::key_int
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:455
JsonOutputProducer::indent
static std::string indent(size_t _nTabs)
Definition: hltDiff.cc:425
JsonOutputProducer::JsonTriggerEventState::tr
int tr
Definition: hltDiff.cc:641
JsonOutputProducer::JsonTriggerEventState::o
JsonEventState o
Definition: hltDiff.cc:642
JsonOutputProducer::JsonEventState::serialise
std::string serialise(size_t _indent=0) const
Definition: hltDiff.cc:622
JsonOutputProducer::key
static std::string key(const std::string &_key, const std::string &_delim="")
Definition: hltDiff.cc:439
JsonOutputProducer::JsonTriggerEventState::n
JsonEventState n
Definition: hltDiff.cc:643
json
nlohmann::json json
Definition: FastTimerService.cc:21