emcFEMList.h

Go to the documentation of this file.
00001 #ifndef __EMCFEMLIST_H__
00002 #define __EMCFEMLIST_H__
00003 
00004 #include <iostream>
00005 #include <set>
00006 #include <string>
00007 
00013 class emcFEMList
00014 {
00015  public:
00016   emcFEMList(const char* sectors);
00017 
00018   bool hasFEM(int ifem) const;
00019   bool hasSector(const char* sname) const;
00020 
00021   std::set<int> fems(const char* sname) const;
00022 
00023   void print(std::ostream& out = std::cout) const;
00024 
00025  private:
00026 
00027   std::set<std::string> fSectors;
00028   std::set<int> fFems;
00029 };
00030 
00031 #endif