CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
calo_filter.cc File Reference
#include <vector>
#include <string>
#include "Rtypes.h"
#include "eve_filter.h"

Go to the source code of this file.

Functions

void calo_filter (void)
 

Function Documentation

void calo_filter ( void  )

Definition at line 9 of file calo_filter.cc.

References skim_scrape_pixel_prob_cfg::apply_filter, do_hide, asciidump::elements, get_root_object(), init_filter(), and python.Node::node.

9  {
10  std::vector< std::pair< std::string, Color_t> > elements;
11  elements.push_back( std::make_pair(std::string("/cms:World/cms:CMSE/caloBase:CALO/eregalgo:ECAL/eregalgo:EREG/eealgo:ENCA/eealgo:E[EO][0-9][0-9]"), kCyan) ); // .../eealgo:EFRY (except for E[EO]02 which are elementary (?))
12  elements.push_back( std::make_pair(std::string("/cms:World/cms:CMSE/caloBase:CALO/eregalgo:ECAL/eregalgo:EBAR/ebalgo:ESPM/eregalgo:EFAW/eregalgo:EHAWR/ebalgo:EWAL"), kCyan) ); // .../ebalgo:EWRA/ebalgo:ECLR/ebalgo:EBRY
13  elements.push_back( std::make_pair(std::string("/cms:World/cms:CMSE/caloBase:CALO/hcalalgo:HCal/hcalbarrelalgo:HB"), kRed) );
14  elements.push_back( std::make_pair(std::string("/cms:World/cms:CMSE/caloBase:CALO/hcalalgo:HCal/hcalendcapalgo:HE"), kRed) );
15 
16  TEveElement * node = get_root_object("cms:World_1");
17  if (node) {
18  init_filter(elements);
19  apply_filter( node, do_hide, true );
20  }
21 }
void init_filter(const std::vector< std::pair< std::string, Color_t > > &elements)
Definition: eve_filter.cc:149
list elements
Definition: asciidump.py:414
tuple node
Definition: Node.py:50
TEveElement * get_root_object(const char *name)
Definition: eve_filter.cc:192