CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes
JsonOutputProducer Class Reference

Classes

struct  JsonConfiguration
 
struct  JsonConfigurationBlock
 
struct  JsonEvent
 
struct  JsonEventState
 
struct  JsonTriggerEventState
 
struct  JsonVars
 

Public Member Functions

JsonEventState eventState (State _s, int _m, const std::string &_l, const std::string &_t)
 
 JsonOutputProducer (bool _writeJson, std::string _file_name)
 
std::string output_filename_base (int _run) const
 
JsonEventpushEvent (int _run, int _lumi, int _event)
 
void write ()
 

Public Attributes

JsonConfiguration configuration
 
std::map< int, std::vector
< JsonEvent > > 
m_run_events
 
std::string out_filename_base
 
bool useSingleOutFile
 
JsonVars vars
 
bool writeJson
 

Private Member Functions

unsigned int labelId (std::string labelName)
 
unsigned int typeId (std::string typeName)
 

Static Private Member Functions

static std::string indent (size_t _nTabs)
 
static std::string key (const std::string &_key, const std::string &_delim="")
 
static std::string key_int (const std::string &_key, int _int, const std::string &_delim="")
 
static std::string key_string (const std::string &_key, const std::string &_string, const std::string &_delim="")
 
static std::string list_string (const std::vector< std::string > &_values, const std::string &_delim="")
 
static std::string string (const std::string &_string, const std::string &_delim="")
 

Static Private Attributes

static size_t tab_spaces = 0
 

Detailed Description

Definition at line 469 of file hltDiff.cc.

Constructor & Destructor Documentation

JsonOutputProducer::JsonOutputProducer ( bool  _writeJson,
std::string  _file_name 
)
inline

Definition at line 743 of file hltDiff.cc.

Member Function Documentation

JsonEventState JsonOutputProducer::eventState ( State  _s,
int  _m,
const std::string &  _l,
const std::string &  _t 
)
inline

Definition at line 764 of file hltDiff.cc.

static std::string JsonOutputProducer::indent ( size_t  _nTabs)
inlinestaticprivate

Definition at line 475 of file hltDiff.cc.

static std::string JsonOutputProducer::key ( const std::string &  _key,
const std::string &  _delim = "" 
)
inlinestaticprivate

Definition at line 489 of file hltDiff.cc.

static std::string JsonOutputProducer::key_int ( const std::string &  _key,
int  _int,
const std::string &  _delim = "" 
)
inlinestaticprivate

Definition at line 505 of file hltDiff.cc.

static std::string JsonOutputProducer::key_string ( const std::string &  _key,
const std::string &  _string,
const std::string &  _delim = "" 
)
inlinestaticprivate

Definition at line 497 of file hltDiff.cc.

unsigned int JsonOutputProducer::labelId ( std::string  labelName)
inlineprivate

Definition at line 645 of file hltDiff.cc.

static std::string JsonOutputProducer::list_string ( const std::vector< std::string > &  _values,
const std::string &  _delim = "" 
)
inlinestaticprivate

Definition at line 520 of file hltDiff.cc.

std::string JsonOutputProducer::output_filename_base ( int  _run) const
inline

Definition at line 768 of file hltDiff.cc.

JsonEvent& JsonOutputProducer::pushEvent ( int  _run,
int  _lumi,
int  _event 
)
inline

Definition at line 749 of file hltDiff.cc.

static std::string JsonOutputProducer::string ( const std::string &  _string,
const std::string &  _delim = "" 
)
inlinestaticprivate

Definition at line 512 of file hltDiff.cc.

unsigned int JsonOutputProducer::typeId ( std::string  typeName)
inlineprivate

Definition at line 653 of file hltDiff.cc.

void JsonOutputProducer::write ( )
inline

Definition at line 778 of file hltDiff.cc.

Member Data Documentation

JsonConfiguration JsonOutputProducer::configuration

Definition at line 641 of file hltDiff.cc.

std::map<int, std::vector<JsonEvent> > JsonOutputProducer::m_run_events

Definition at line 740 of file hltDiff.cc.

std::string JsonOutputProducer::out_filename_base

Definition at line 537 of file hltDiff.cc.

size_t JsonOutputProducer::tab_spaces = 0
staticprivate

Definition at line 472 of file hltDiff.cc.

bool JsonOutputProducer::useSingleOutFile

Definition at line 538 of file hltDiff.cc.

JsonVars JsonOutputProducer::vars

Definition at line 642 of file hltDiff.cc.

bool JsonOutputProducer::writeJson

Definition at line 536 of file hltDiff.cc.