CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
JsonOutputProducer::JsonEventState Struct Reference

Public Member Functions

 JsonEventState ()
 
 JsonEventState (State _s, int _m, int _l, int _t)
 
std::string serialise (size_t _indent=0) const
 

Public Attributes

int l
 
int m
 
State s
 
int t
 

Detailed Description

Definition at line 616 of file hltDiff.cc.

Constructor & Destructor Documentation

◆ JsonEventState() [1/2]

JsonOutputProducer::JsonEventState::JsonEventState ( )
inline

◆ JsonEventState() [2/2]

JsonOutputProducer::JsonEventState::JsonEventState ( State  _s,
int  _m,
int  _l,
int  _t 
)
inline

Member Function Documentation

◆ serialise()

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

Definition at line 622 of file hltDiff.cc.

References MainPageGenerator::l, visualization-live-secondInstance_cfg::m, Pass, alignCSCRings::s, and submitPVValidationJobs::t.

622  {
623  std::ostringstream json;
624  json << key_int("s", int(s)); // line
625  // No more information needed if the state is 'accepted'
626  if (s == State::Pass)
627  return json.str();
628  json << ',';
629  json << key_int("m", m) << ',';
630  json << key_int("l", l) << ',';
631  json << key_int("t", t);
632 
633  return json.str();
634  }
Definition: hltDiff.cc:243
nlohmann::json json
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:455

Member Data Documentation

◆ l

int JsonOutputProducer::JsonEventState::l

Definition at line 619 of file hltDiff.cc.

◆ m

int JsonOutputProducer::JsonEventState::m

Definition at line 618 of file hltDiff.cc.

◆ s

State JsonOutputProducer::JsonEventState::s

Definition at line 617 of file hltDiff.cc.

◆ t

int JsonOutputProducer::JsonEventState::t

Definition at line 620 of file hltDiff.cc.