#include <vector>
#include <string>
#include <iostream>
#include <iomanip>
#include <utility>
#include "TPRegexp.h"
#include "TEveManager.h"
#include "TEveScene.h"
#include "TEveElement.h"
#include "TEveGeoNode.h"
#include "TGeoNode.h"
#include "TCollection.h"
#include "TObjString.h"
#include "split.h"
#include "eve_filter.h"
#include "eve_macros.h"
Go to the source code of this file.
Functions | |
void | apply_filter (TEveElement *node, int simplify, bool verbose) |
void | dump (void) |
TEveElement * | get_root_object (const char *name) |
void | init_filter (const std::vector< std::pair< std::string, Color_t > > &elements) |
TPRegexp | make_filter (const std::string &token) |
TPRegexp | make_filter (const std::vector< std::string > &tokens) |
void | node_filter (TEveElement *node, int simplify, bool verbose) |
static TPRegexp | ns_name_index ("([[:alnum:]]+:[[:alnum:]-\\[\\]]+)(_[0-9]+)+") |
void | split_path (const std::string &path, std::string &name, std::vector< std::string > &parents) |
Variables | |
std::vector< Color_t > | colors |
std::vector< TPRegexp > | filters |
unsigned int | matching_nodes |
TPRegexp | parents |
void apply_filter | ( | TEveElement * | node, |
int | simplify, | ||
bool | verbose | ||
) |
Definition at line 175 of file eve_filter.cc.
References gather_cfg::cout, get_name(), matching_nodes, and node_filter().
void dump | ( | void | ) |
Definition at line 168 of file eve_filter.cc.
References gather_cfg::cout, filters, mps_fire::i, and parents.
TEveElement* get_root_object | ( | const char * | name | ) |
Definition at line 189 of file eve_filter.cc.
References get_name(), mps_fire::i, gen::n, and or.
Referenced by calo_filter().
void init_filter | ( | const std::vector< std::pair< std::string, Color_t > > & | elements | ) |
Definition at line 146 of file eve_filter.cc.
References allElectronIsolations_cfi::elements, filters, plotBeamSpotDB::first, mps_fire::i, make_filter(), matching_nodes, parents, edm::second(), split_path(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by calo_filter().
TPRegexp make_filter | ( | const std::string & | token | ) |
Definition at line 39 of file eve_filter.cc.
References ALCARECOTkAlBeamHalo_cff::filter, ns_name_index(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by init_filter().
TPRegexp make_filter | ( | const std::vector< std::string > & | tokens | ) |
Definition at line 51 of file eve_filter.cc.
References ALCARECOTkAlBeamHalo_cff::filter, mps_fire::i, ns_name_index(), and AlCaHLTBitMon_QueryRunRegistry::string.
void node_filter | ( | TEveElement * | node, |
int | simplify, | ||
bool | verbose | ||
) |
Definition at line 73 of file eve_filter.cc.
References gather_cfg::cout, do_hide, do_nothing, do_remove, expand_node(), filters, runEdmFileComparison::found, mps_fire::i, summarizeEdmComparisonLogfiles::indent, matching_nodes, node_filter(), and parents.
Referenced by apply_filter(), and node_filter().
|
static |
Referenced by make_filter(), and split_path().
void split_path | ( | const std::string & | path, |
std::string & | name, | ||
std::vector< std::string > & | parents | ||
) |
Definition at line 26 of file eve_filter.cc.
References ns_name_index(), and split.
Referenced by init_filter().
std::vector<Color_t> colors |
Definition at line 23 of file eve_filter.cc.
std::vector<TPRegexp> filters |
Definition at line 22 of file eve_filter.cc.
Referenced by HeavyFlavorValidation::dqmBeginRun(), dump(), EmDQMReco::EmDQMReco(), FourVectorHLT::FourVectorHLT(), egHLT::trigTools::getActiveFilters(), EmDQM::getFilterModules(), egHLT::trigTools::getFiltersPassed(), init_filter(), node_filter(), EmDQM::SetVarsFromPSet(), and CmsShowNavigator::updateSelectorsInfo().
unsigned int matching_nodes |
Definition at line 24 of file eve_filter.cc.
Referenced by apply_filter(), init_filter(), and node_filter().
TPRegexp parents |
Definition at line 21 of file eve_filter.cc.
Referenced by ElectronSeedAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), PhotonValidator::analyze(), AlignableCompositeBuilder::buildLevel(), GeometricTimingDet::components(), GeometricDet::components(), gen::TauolappInterface::decay(), dump(), edm::PoolOutputModule::fillDependencyGraph(), STFilter::filter(), ComphepSingletopFilter::filter(), ComphepSingletopFilterPy8::filter(), JetFlavourCutFilter::filter(), JetFlavourFilter::filter(), PythiaProbeFilter::filter(), HiggsValidation::findHiggsDecayChannel(), gen::TauolappInterface::FirstTauInChain(), VertexClassifier::genPrimaryVertices(), TrackClassifier::genPrimaryVertices(), EcalTBHodoscopeGeometryLoaderFromDDD::getDetIdForDDDNode(), gen::TauolappInterface::GetMother(), Rivet::HiggsTemplateCrossSections::hasParent(), init_filter(), isFirst(), node_filter(), OniaVtxReProducer::OniaVtxReProducer(), JetFlavourCutFilter::printHisto(), JetFlavourFilter::printHisto(), VertexClassifier::processesAtGenerator(), edm::ProductProvenance::ProductProvenance(), edm::RootFile::readEntryDescriptionTree(), edm::RootFile::readParentageTree(), TEveElementIter::TEveElementIter(), and external::HEPTopTaggerV2::UnclusterFatjets().