Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:48

0001 #include <vector>
0002 #include <string>
0003 
0004 #include "Rtypes.h"
0005 
0006 #include "eve_filter.h"
0007 
0008 // show the calorimeter system (ECAL, HCAL)
0009 void calo_filter(void) {
0010   std::vector< std::pair< std::string, Color_t> > elements;
0011   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 (?))
0012   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
0013   elements.push_back( std::make_pair(std::string("/cms:World/cms:CMSE/caloBase:CALO/hcalalgo:HCal/hcalbarrelalgo:HB"), kRed) );
0014   elements.push_back( std::make_pair(std::string("/cms:World/cms:CMSE/caloBase:CALO/hcalalgo:HCal/hcalendcapalgo:HE"), kRed) );
0015 
0016   TEveElement * node = get_root_object("cms:World_1");
0017   if (node) {
0018     init_filter(elements);
0019     apply_filter( node, do_hide, true );
0020   }
0021 }