CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
dqmservices::DQMFileIterator::LumiEntry Struct Reference

#include <DQMFileIterator.h>

Public Member Functions

std::string get_data_path () const
 
std::string get_json_path () const
 

Static Public Member Functions

static LumiEntry load_json (const std::string &run_path, const std::string &filename, int lumiNumber, int datafn_position)
 

Public Attributes

std::string datafn
 
unsigned int file_ls
 
std::string filename
 
std::size_t n_events_accepted
 
std::size_t n_events_processed
 
std::string run_path
 
std::string state
 

Detailed Description

Definition at line 20 of file DQMFileIterator.h.

Member Function Documentation

std::string dqmservices::DQMFileIterator::LumiEntry::get_data_path ( ) const
std::string dqmservices::DQMFileIterator::LumiEntry::get_json_path ( ) const

Definition at line 54 of file DQMFileIterator.cc.

References filename.

Referenced by dqmservices::DQMProtobufReader::beginLuminosityBlock().

54  {
55  return filename;
56 }
DQMFileIterator::LumiEntry dqmservices::DQMFileIterator::LumiEntry::load_json ( const std::string &  run_path,
const std::string &  filename,
int  lumiNumber,
int  datafn_position 
)
static

Definition at line 20 of file DQMFileIterator.cc.

References datafn, file_ls, filename, csvLumiCalc::lumi, n_events_accepted, n_events_processed, GetRecoTauVFromDQM_MC_cff::next, EnergyCorrector::pt, run_path, edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dqmservices::DQMFileIterator::collect().

22  {
23  boost::property_tree::ptree pt;
24  read_json(filename, pt);
25 
26  LumiEntry lumi;
27  lumi.filename = filename;
28  lumi.run_path = run_path;
29 
30  lumi.n_events_processed = std::next(pt.get_child("data").begin(), 0)
31  ->second.get_value<std::size_t>();
32 
33  lumi.n_events_accepted = std::next(pt.get_child("data").begin(), 1)
34  ->second.get_value<std::size_t>();
35 
36  lumi.file_ls = lumiNumber;
37 
38  if (datafn_position >= 0) {
39  lumi.datafn = std::next(pt.get_child("data").begin(), datafn_position)
40  ->second.get_value<std::string>();
41  }
42 
43  return lumi;
44 }
U second(std::pair< T, U > const &p)

Member Data Documentation

std::string dqmservices::DQMFileIterator::LumiEntry::datafn

Definition at line 27 of file DQMFileIterator.h.

Referenced by get_data_path(), and load_json().

unsigned int dqmservices::DQMFileIterator::LumiEntry::file_ls
std::string dqmservices::DQMFileIterator::LumiEntry::filename
std::size_t dqmservices::DQMFileIterator::LumiEntry::n_events_accepted

Definition at line 26 of file DQMFileIterator.h.

Referenced by load_json().

std::size_t dqmservices::DQMFileIterator::LumiEntry::n_events_processed

Definition at line 25 of file DQMFileIterator.h.

Referenced by load_json().

std::string dqmservices::DQMFileIterator::LumiEntry::run_path
std::string dqmservices::DQMFileIterator::LumiEntry::state

Definition at line 34 of file DQMFileIterator.h.

Referenced by dqmservices::DQMFileIterator::monUpdateLumi().