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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 673 of file hltDiff.cc.

References edmPickEvents::json, and Pass.

Referenced by JsonOutputProducer::JsonTriggerEventState::serialise().

673  {
674  std::ostringstream json;
675  json << key_int("s", int(s)); // line
676  // No more information needed if the state is 'accepted'
677  if (s == State::Pass) return json.str();
678  json << ',';
679  json << key_int("m", m) << ',';
680  json << key_int("l", l) << ',';
681  json << key_int("t", t);
682 
683  return json.str();
684  }
Definition: hltDiff.cc:289
static std::string key_int(const std::string &_key, int _int, const std::string &_delim="")
Definition: hltDiff.cc:510

Member Data Documentation

int JsonOutputProducer::JsonEventState::l
int JsonOutputProducer::JsonEventState::m

Definition at line 669 of file hltDiff.cc.

State JsonOutputProducer::JsonEventState::s
int JsonOutputProducer::JsonEventState::t

Definition at line 671 of file hltDiff.cc.