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

Constructor & Destructor Documentation

◆ JsonEventState() [1/2]

JsonOutputProducer::JsonEventState::JsonEventState ( )
inline

Definition at line 637 of file hltDiff.cc.

637 : s(State::Ready), m(-1), l(-1), t(-1) {}

◆ JsonEventState() [2/2]

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

Definition at line 638 of file hltDiff.cc.

638 : s(_s), m(_m), l(_l), t(_t) {}

Member Function Documentation

◆ serialise()

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

Definition at line 623 of file hltDiff.cc.

623  {
624  std::ostringstream json;
625  json << key_int("s", int(s)); // line
626  // No more information needed if the state is 'accepted'
627  if (s == State::Pass)
628  return json.str();
629  json << ',';
630  json << key_int("m", m) << ',';
631  json << key_int("l", l) << ',';
632  json << key_int("t", t);
633 
634  return json.str();
635  }

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

Member Data Documentation

◆ l

int JsonOutputProducer::JsonEventState::l

Definition at line 620 of file hltDiff.cc.

◆ m

int JsonOutputProducer::JsonEventState::m

Definition at line 619 of file hltDiff.cc.

◆ s

State JsonOutputProducer::JsonEventState::s

Definition at line 618 of file hltDiff.cc.

◆ t

int JsonOutputProducer::JsonEventState::t

Definition at line 621 of file hltDiff.cc.

JsonOutputProducer::key_int
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:456
JsonOutputProducer::JsonEventState::s
State s
Definition: hltDiff.cc:618
hgcalDigitizer_cfi._m
_m
Definition: hgcalDigitizer_cfi.py:209
Pass
Definition: hltDiff.cc:244
Ready
Definition: hltDiff.cc:243
JsonOutputProducer::JsonEventState::m
int m
Definition: hltDiff.cc:619
JsonOutputProducer::JsonEventState::t
int t
Definition: hltDiff.cc:621
JsonOutputProducer::JsonEventState::l
int l
Definition: hltDiff.cc:620
json
nlohmann::json json
Definition: FastTimerService.cc:21