CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
calo_filter.cc
Go to the documentation of this file.
1 #include <vector>
2 #include <string>
3 
4 #include "Rtypes.h"
5 
6 #include "eve_filter.h"
7 
8 // show the calorimeter system (ECAL, HCAL)
9 void calo_filter(void) {
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
void calo_filter(void)
Definition: calo_filter.cc:9
TEveElement * get_root_object(const char *name)
Definition: eve_filter.cc:192