#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <memory>
#include <cstring>
#include <unistd.h>
#include <getopt.h>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#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 | |
class | HLTCommonConfig |
class | HLTConfigDataEx |
class | HLTConfigInterface |
struct | TriggerDiff |
class | HLTCommonConfig::View |
Enumerations | |
enum | State { 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 | compare (std::vector< std::string > const &old_files, std::string const &old_process, std::vector< std::string > const &new_files, std::string const &new_process, unsigned int max_events, bool ignore_prescales, int verbose) |
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) |
void | usage (std::ostream &out) |
enum State |
Enumerator | |
---|---|
Ready | |
Pass | |
Fail | |
Exception | |
Prescaled | |
Invalid |
Definition at line 314 of file hltDiff.cc.
bool check_file | ( | std::string const & | file | ) |
Definition at line 475 of file hltDiff.cc.
References AlCaHLTBitMon_ParallelJobs::p, and fed_dqm_sourceclient-live_cfg::path.
Referenced by check_files().
bool check_files | ( | std::vector< std::string > const & | files | ) |
Definition at line 495 of file hltDiff.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, check_file(), and mergeVDriftHistosByStation::file.
Referenced by compare().
void compare | ( | std::vector< std::string > const & | old_files, |
std::string const & | old_process, | ||
std::vector< std::string > const & | new_files, | ||
std::string const & | new_process, | ||
unsigned int | max_events, | ||
bool | ignore_prescales, | ||
int | verbose | ||
) |
Definition at line 506 of file hltDiff.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, check_files(), runEdmFileComparison::collection, counter, gather_cfg::cout, event_state(), HLTCommonConfig::First, fwlite::Handle< T >::getByLabel(), getHLTConfigData(), HLTCommonConfig::HLTCommonConfig(), i, min(), HLTConfigInterface::moduleLabel(), cscdqm::h::names, or, AlCaHLTBitMon_ParallelJobs::p, Pass, Prescaled, prescaled_state(), print_detailed_path_state(), print_trigger_candidates(), print_trigger_collection(), HLTConfigInterface::processName(), HLTCommonConfig::Second, HLTConfigInterface::size(), HLTConfigInterface::triggerIndex(), and HLTConfigInterface::triggerName().
Referenced by TTUTrackingAlg::alignTracks(), TrackingMonitor::bookHistograms(), l1t::ConditionEvaluation::checkRangeDeltaEta(), muonisolation::CaloExtractorByAssociator::deposits(), GeneralHLTOffline::dqmBeginRun(), PrintGeomMatInfo::dumpG4LVLeafWithMat(), main(), TrackingMonitor::setMaxMinBin(), and TrackingMonitor::setNclus().
void error | ( | std::ostream & | out | ) |
Definition at line 72 of file hltDiff.cc.
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 162 of file hltDiff.cc.
Referenced by compare().
std::unique_ptr<HLTConfigDataEx> getHLTConfigData | ( | fwlite::EventBase const & | event, |
std::string | process | ||
) |
Definition at line 416 of file hltDiff.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, HDQMDatabaseProducer::config, cmsRelvalreport::exit, edm::pset::Registry::getMapped(), getProcessNameFromBranch(), edm::pset::Registry::instance(), and edm::ProcessConfiguration::parameterSetID().
Referenced by compare().
std::string getProcessNameFromBranch | ( | std::string const & | branch | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 682 of file hltDiff.cc.
References EnergyCorrector::c, ecal_dqm_sourceclient-live_cfg::cerr, compare(), relativeConstraints::error, cmsRelvalreport::exit, AlCaHLTBitMon_QueryRunRegistry::string, geometryDiff::usage, and verbose.
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 dbtoconf::out.
const char* path_state | ( | State | state | ) |
Definition at line 323 of file hltDiff.cc.
References Invalid, and python.rootplot.argparse::message.
Referenced by print_detailed_path_state().
|
inline |
Definition at line 333 of file hltDiff.cc.
References Fail, Prescaled, and HLTConfigInterface::prescaler().
Referenced by compare().
void print_detailed_path_state | ( | std::ostream & | out, |
State | state, | ||
int | path, | ||
int | module, | ||
HLTConfigInterface const & | config | ||
) |
Definition at line 339 of file hltDiff.cc.
References Fail, diffTwoXMLs::label, HLTConfigInterface::moduleLabel(), HLTConfigInterface::moduleType(), and path_state().
Referenced by compare().
void print_trigger_candidates | ( | std::ostream & | out, |
trigger::TriggerEvent const & | summary, | ||
edm::InputTag const & | filter | ||
) |
Definition at line 350 of file hltDiff.cc.
References trigger::TriggerObject::eta(), trigger::TriggerEvent::filterIds(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), trigger::TriggerEvent::getObjects(), i, trigger::TriggerObject::id(), cmsHarvester::index, relval_steps::key, trigger::TriggerObject::mass(), trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), and trigger::TriggerEvent::sizeFilters().
Referenced by compare().
void print_trigger_collection | ( | std::ostream & | out, |
trigger::TriggerEvent const & | summary, | ||
std::string const & | tag | ||
) |
Definition at line 380 of file hltDiff.cc.
References begin, trigger::TriggerEvent::collectionKey(), trigger::TriggerEvent::collectionTags(), end, trigger::TriggerObject::eta(), spr::find(), trigger::TriggerEvent::getObjects(), trigger::TriggerObject::id(), cmsHarvester::index, relval_steps::key, trigger::TriggerObject::mass(), trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by compare().
void usage | ( | std::ostream & | out | ) |
Definition at line 33 of file hltDiff.cc.