#include <vector>
#include <set>
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <cstdio>
#include <iomanip>
#include <memory>
#include <algorithm>
#include <cstring>
#include <unistd.h>
#include <getopt.h>
#include <cmath>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <TFile.h>
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TGraphAsymmErrors.h>
#include "FWCore/Common/interface/TriggerNames.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/ParameterSet/interface/Registry.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/HLTReco/interface/TriggerObject.h"
#include "DataFormats/HLTReco/interface/TriggerEvent.h"
#include "DataFormats/FWLite/interface/Handle.h"
#include "DataFormats/FWLite/interface/Event.h"
#include "DataFormats/FWLite/interface/ChainEvent.h"
#include "HLTrigger/HLTcore/interface/HLTConfigData.h"
Go to the source code of this file.
Classes | |
struct | SummaryOutputProducer::Event |
struct | SummaryOutputProducer::GenericSummary |
class | HLTCommonConfig |
class | HLTConfigDataEx |
class | HLTConfigInterface |
class | HltDiff |
struct | JsonOutputProducer::JsonConfiguration |
struct | JsonOutputProducer::JsonConfigurationBlock |
struct | JsonOutputProducer::JsonEvent |
struct | JsonOutputProducer::JsonEventState |
class | JsonOutputProducer |
struct | JsonOutputProducer::JsonTriggerEventState |
struct | JsonOutputProducer::JsonVars |
struct | SummaryOutputProducer::Pair |
class | SummaryOutputProducer |
struct | TriggerDiff |
struct | SummaryOutputProducer::TriggerSummary |
class | HLTCommonConfig::View |
Enumerations | |
enum | State { InvalidLinkId, InvalidROCId, InvalidPixelId, Unknown, Ready = edm::hlt::Ready, Pass = edm::hlt::Pass, Fail = edm::hlt::Fail, Exception = edm::hlt::Exception, Prescaled, Invalid } |
Functions | |
bool | check_file (std::string const &file) |
bool | check_files (std::vector< std::string > const &files) |
void | error (std::ostream &out) |
void | error (std::ostream &out, const char *message) |
void | error (std::ostream &out, const std::string &message) |
const char * | event_state (bool state) |
std::unique_ptr< HLTConfigDataEx > | getHLTConfigData (fwlite::EventBase const &event, std::string process) |
std::string | getProcessNameFromBranch (std::string const &branch) |
int | main (int argc, char **argv) |
std::ostream & | operator<< (std::ostream &out, TriggerDiff diff) |
const char * | path_state (State state) |
State | prescaled_state (int state, int path, int module, HLTConfigInterface const &config) |
void | print_detailed_path_state (std::ostream &out, State state, int path, int module, HLTConfigInterface const &config) |
void | print_trigger_candidates (std::ostream &out, trigger::TriggerEvent const &summary, edm::InputTag const &filter) |
void | print_trigger_collection (std::ostream &out, trigger::TriggerEvent const &summary, std::string const &tag) |
std::string | strip_process_name (std::string const &s) |
enum State |
Enumerator | |
---|---|
InvalidLinkId | |
InvalidROCId | |
InvalidPixelId | |
Unknown | |
Ready | |
Pass | |
Fail | |
Exception | |
Prescaled | |
Invalid |
Definition at line 242 of file hltDiff.cc.
bool check_file | ( | std::string const & | file | ) |
Definition at line 1177 of file hltDiff.cc.
References f, and FrontierConditions_GlobalTag_cff::file.
Referenced by check_files().
bool check_files | ( | std::vector< std::string > const & | files | ) |
Definition at line 1182 of file hltDiff.cc.
References beam_dqm_sourceclient-live_cfg::cerr, check_file(), FrontierConditions_GlobalTag_cff::file, MainPageGenerator::files, and RemoveAddSevLevel::flag.
Referenced by HltDiff::compare().
void error | ( | std::ostream & | out | ) |
void error | ( | std::ostream & | out, |
const char * | message | ||
) |
Definition at line 46 of file hltDiff.cc.
References error(), and MillePedeFileConverter_cfg::out.
void error | ( | std::ostream & | out, |
const std::string & | message | ||
) |
Definition at line 51 of file hltDiff.cc.
References error(), and MillePedeFileConverter_cfg::out.
const char* event_state | ( | bool | state | ) |
Definition at line 114 of file hltDiff.cc.
Referenced by HltDiff::compare().
std::unique_ptr<HLTConfigDataEx> getHLTConfigData | ( | fwlite::EventBase const & | event, |
std::string | process | ||
) |
Definition at line 363 of file hltDiff.cc.
References MicroEventContent_cff::branch, beam_dqm_sourceclient-live_cfg::cerr, looper::config, beamvalidation::exit(), edm::pset::Registry::getMapped(), getProcessNameFromBranch(), edm::pset::Registry::instance(), LaserDQM_cfg::process, and muonDTDigis_cfi::pset.
Referenced by HltDiff::compare().
std::string getProcessNameFromBranch | ( | std::string const & | branch | ) |
Definition at line 357 of file hltDiff.cc.
References MicroEventContent_cff::branch, and cms::dd::split().
Referenced by getHLTConfigData().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 1581 of file hltDiff.cc.
References dir2webdir::argc, cmsBatch::argv, HltBtagPostValidation_cff::c, beam_dqm_sourceclient-live_cfg::cerr, error(), beamvalidation::exit(), ValidationMatrix::hlt, SiStripPI::max, and fileinputsource_cfi::option.
std::ostream& operator<< | ( | std::ostream & | out, |
TriggerDiff | diff | ||
) |
Definition at line 415 of file hltDiff.cc.
References change_name::diff, TriggerDiff::format(), and MillePedeFileConverter_cfg::out.
const char* path_state | ( | State | state | ) |
Definition at line 251 of file hltDiff.cc.
References Invalid.
Referenced by HltDiff::compare(), and print_detailed_path_state().
|
inline |
Definition at line 260 of file hltDiff.cc.
References Fail, castor_dqm_sourceclient_file_cfg::path, and Prescaled.
Referenced by HltDiff::compare().
void print_detailed_path_state | ( | std::ostream & | out, |
State | state, | ||
int | path, | ||
int | module, | ||
HLTConfigInterface const & | config | ||
) |
Definition at line 287 of file hltDiff.cc.
References Fail, label, MillePedeFileConverter_cfg::out, castor_dqm_sourceclient_file_cfg::path, and path_state().
Referenced by HltDiff::compare().
void print_trigger_candidates | ( | std::ostream & | out, |
trigger::TriggerEvent const & | summary, | ||
edm::InputTag const & | filter | ||
) |
Definition at line 298 of file hltDiff.cc.
References trigger::TriggerObject::eta(), ALCARECOTkAlBeamHalo_cff::filter, mps_fire::i, trigger::TriggerObject::id(), crabWrapper::key, trigger::TriggerObject::mass(), MillePedeFileConverter_cfg::out, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), and edmLumisInFiles::summary.
Referenced by HltDiff::compare().
void print_trigger_collection | ( | std::ostream & | out, |
trigger::TriggerEvent const & | summary, | ||
std::string const & | tag | ||
) |
Definition at line 328 of file hltDiff.cc.
References begin, end, trigger::TriggerObject::eta(), spr::find(), trigger::TriggerObject::id(), crabWrapper::key, trigger::TriggerObject::mass(), MillePedeFileConverter_cfg::out, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), edmLumisInFiles::summary, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by HltDiff::compare().
std::string strip_process_name | ( | std::string const & | s | ) |
Definition at line 273 of file hltDiff.cc.
References KineDebug3::count(), end, and alignCSCRings::s.
Referenced by HltDiff::compare().