Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:17

0001 #ifndef SiPixelConfigParser_H
0002 #define SiPixelConfigParser_H
0003 
0004 /** \class SiPixelConfigParser
0005  * *
0006  *  Class that handles the SiPixel Quality Tests
0007  *
0008  *  \author Petra Merkel
0009  */
0010 
0011 #include <fstream>
0012 #include <map>
0013 #include <string>
0014 #include <vector>
0015 
0016 #include <boost/property_tree/xml_parser.hpp>
0017 #include <boost/property_tree/ptree.hpp>
0018 
0019 class SiPixelConfigParser {
0020 public:
0021   // Constructor
0022   SiPixelConfigParser();
0023 
0024   void getDocument(std::string filename);
0025 
0026   // get List of MEs for TrackerMap
0027   bool getMENamesForTrackerMap(std::string &tkmap_name, std::vector<std::string> &me_names);
0028   bool getFrequencyForTrackerMap(int &u_freq);
0029   bool getMENamesForTree(std::string &structure_name, std::vector<std::string> &me_names);
0030   bool getMENamesForBarrelSummary(std::string &structure_name, std::vector<std::string> &me_names);
0031   bool getMENamesForEndcapSummary(std::string &structure_name, std::vector<std::string> &me_names);
0032   bool getMENamesForFEDErrorSummary(std::string &structure_name, std::vector<std::string> &me_names);
0033   bool getFrequencyForBarrelSummary(int &u_freq);
0034   bool getFrequencyForEndcapSummary(int &u_freq);
0035   bool getMENamesForGrandBarrelSummary(std::string &structure_name, std::vector<std::string> &me_names);
0036   bool getMENamesForGrandEndcapSummary(std::string &structure_name, std::vector<std::string> &me_names);
0037   bool getFrequencyForGrandBarrelSummary(int &u_freq);
0038   bool getFrequencyForGrandEndcapSummary(int &u_freq);
0039   bool getMessageLimitForQTests(int &u_freq);
0040   bool getSourceType(int &u_freq);
0041   bool getCalibType(int &u_freq);
0042 
0043 private:
0044   boost::property_tree::ptree config_;
0045 };
0046 
0047 #endif