#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 288 of file hltDiff.cc.
bool check_file | ( | std::string const & | file | ) |
bool check_files | ( | std::vector< std::string > const & | files | ) |
Definition at line 1216 of file hltDiff.cc.
References MessageLogger_cfi::cerr, check_file(), FrontierConditions_GlobalTag_cff::file, and RemoveAddSevLevel::flag.
Referenced by HltDiff::compare().
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 | ) |
Definition at line 136 of file hltDiff.cc.
Referenced by HltDiff::compare().
std::unique_ptr<HLTConfigDataEx> getHLTConfigData | ( | fwlite::EventBase const & | event, |
std::string | process | ||
) |
Definition at line 412 of file hltDiff.cc.
References MicroEventContent_cff::branch, MessageLogger_cfi::cerr, looper::config, cmsRelvalreport::exit, edm::pset::Registry::getMapped(), getProcessNameFromBranch(), edm::pset::Registry::instance(), edm::ProcessConfiguration::parameterSetID(), and muonDTDigis_cfi::pset.
Referenced by HltDiff::compare().
std::string getProcessNameFromBranch | ( | std::string const & | branch | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 1596 of file hltDiff.cc.
References EnergyCorrector::c, MessageLogger_cfi::cerr, error(), cmsRelvalreport::exit, ValidationMatrix::hlt, SiStripPI::max, and TSGForRoadSearch_cfi::option.
std::ostream& operator<< | ( | std::ostream & | out, |
TriggerDiff | diff | ||
) |
Definition at line 466 of file hltDiff.cc.
References TriggerDiff::count, TriggerDiff::format(), TriggerDiff::gained, TriggerDiff::internal, TriggerDiff::lost, and MillePedeFileConverter_cfg::out.
const char* path_state | ( | State | state | ) |
Definition at line 297 of file hltDiff.cc.
References Invalid, and python.rootplot.argparse::message.
Referenced by HltDiff::compare(), and print_detailed_path_state().
|
inline |
Definition at line 307 of file hltDiff.cc.
References Fail, Prescaled, and HLTConfigInterface::prescaler().
Referenced by HltDiff::compare().
void print_detailed_path_state | ( | std::ostream & | out, |
State | state, | ||
int | path, | ||
int | module, | ||
HLTConfigInterface const & | config | ||
) |
Definition at line 335 of file hltDiff.cc.
References Fail, diffTwoXMLs::label, HLTConfigInterface::moduleLabel(), HLTConfigInterface::moduleType(), 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 346 of file hltDiff.cc.
References trigger::TriggerObject::eta(), trigger::TriggerEvent::filterIds(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), trigger::TriggerEvent::getObjects(), mps_fire::i, trigger::TriggerObject::id(), crabWrapper::key, trigger::TriggerObject::mass(), trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), and trigger::TriggerEvent::sizeFilters().
Referenced by HltDiff::compare().
void print_trigger_collection | ( | std::ostream & | out, |
trigger::TriggerEvent const & | summary, | ||
std::string const & | tag | ||
) |
Definition at line 376 of file hltDiff.cc.
References begin, trigger::TriggerEvent::collectionKey(), trigger::TriggerEvent::collectionTags(), end, trigger::TriggerObject::eta(), spr::find(), trigger::TriggerEvent::getObjects(), trigger::TriggerObject::id(), crabWrapper::key, trigger::TriggerObject::mass(), trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by HltDiff::compare().
std::string strip_process_name | ( | std::string const & | s | ) |
Definition at line 320 of file hltDiff.cc.
References KineDebug3::count(), end, and alignCSCRings::s.
Referenced by HltDiff::compare().