![]() |
![]() |
#include <vector>
#include <string>
#include "TPRegexp.h"
Go to the source code of this file.
Enumerations | |
enum | { do_nothing = 0, do_hide = 1, do_remove = 2 } |
Functions | |
void | apply_filter (TEveElement *node, int simplify=do_hide, bool verbose=false) |
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=do_hide, bool verbose=false) |
void | split_path (const std::string &path, std::string &name, std::vector< std::string > &parents) |
anonymous enum |
Enumerator | |
---|---|
do_nothing | |
do_hide | |
do_remove |
Definition at line 12 of file eve_filter.h.
void apply_filter | ( | TEveElement * | node, |
int | simplify = do_hide , |
||
bool | verbose = false |
||
) |
Definition at line 178 of file eve_filter.cc.
References gather_cfg::cout, get_name(), matching_nodes, and node_filter().
void dump | ( | void | ) |
TEveElement* get_root_object | ( | const char * | name | ) |
Definition at line 192 of file eve_filter.cc.
References get_name(), i, n, and or.
Referenced by calo_filter().
void init_filter | ( | const std::vector< std::pair< std::string, Color_t > > & | elements | ) |
Definition at line 149 of file eve_filter.cc.
References colors, asciidump::elements, filters, first, i, make_filter(), matching_nodes, parents, edm::second(), and split_path().
Referenced by calo_filter().
TPRegexp make_filter | ( | const std::string & | token | ) |
Definition at line 42 of file eve_filter.cc.
References alcazmumu_cfi::filter, and ns_name_index().
Referenced by init_filter().
TPRegexp make_filter | ( | const std::vector< std::string > & | tokens | ) |
Definition at line 54 of file eve_filter.cc.
References alcazmumu_cfi::filter, i, and ns_name_index().
void node_filter | ( | TEveElement * | node, |
int | simplify = do_hide , |
||
bool | verbose = false |
||
) |
Definition at line 76 of file eve_filter.cc.
References colors, gather_cfg::cout, do_hide, do_nothing, do_remove, expand_node(), filters, newFWLiteAna::found, i, dataformats::indent(), matching_nodes, node_filter(), and parents.
Referenced by apply_filter(), and node_filter().
void split_path | ( | const std::string & | path, |
std::string & | name, | ||
std::vector< std::string > & | parents | ||
) |