CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelInformationExtractor.h
Go to the documentation of this file.
1 #ifndef _SiPixelInformationExtractor_h_
2 #define _SiPixelInformationExtractor_h_
3 
5 
11 
16 
23 
24 #include "TCanvas.h"
25 #include "TPaveText.h"
26 #include "TF1.h"
27 #include "TH2F.h"
28 #include "TGaxis.h"
29 
30 #include <fstream>
31 #include <sstream>
32 #include <map>
33 #include <vector>
34 #include <string>
35 #include <map>
36 #include <boost/cstdint.hpp>
37 
38 class SiPixelEDAClient;
39 class SiPixelWebInterface;
41 
42  public:
43 
44  SiPixelInformationExtractor( bool offlineXMLfile);
46 
47  void computeStatus( MonitorElement * mE,
48  double & colorValue,
49  std::pair<double,double> & norm) ;
51  std::pair<double,double> & norm,
52  std::string theMEType) ;
54  std::pair<double,double> & normX,
55  std::pair<double,double> & normY,
56  std::string theMEType) ;
57  int getDetId( MonitorElement * mE) ;
59 
60  void readConfiguration();
61  bool readConfiguration( std::map<std::string,std::vector< std::string> > & layoutMap,
62  std::map<std::string,std::map<std::string,std::string> > & qtestsMap,
63  std::map<std::string,std::vector<std::string> > & meQTestsMap);
64 
65  void bookNoisyPixels( DQMStore::IBooker & iBooker,
66  float noiseRate,
67  bool Tier0Flag);
68 
69  void findNoisyPixels ( DQMStore::IBooker & iBooker,
70  DQMStore::IGetter & iGetter,
71  bool init,
72  float noiseRate,
73  int noiseRateDenominator,
75 
76  private:
77 
78  void getItemList( const std::multimap<std::string, std::string> & req_map,
79  std::string item_name,
80  std::vector<std::string> & items);
81  bool hasItem( std::multimap<std::string, std::string> & req_map,
82  std::string item_name);
83  std::string getItemValue( const std::multimap<std::string, std::string> & req_map,
84  std::string item_name);
85  std::string getItemValue( std::multimap<std::string, std::string> & req_map,
86  std::string item_name);
88  void selectImage( std::string & name,
89  int status);
90  void selectImage( std::string & name,
91  std::vector<QReport*> & reports);
92  void selectColor( std::string & col,
93  int status);
94  void selectColor( std::string & col,
95  std::vector<QReport*> & reports);
96 
98 
103 
105  std::vector< std::string> > layoutMap;
110  std::vector<std::string> > meQTestsMap;
111 
112 
118 
119  int count;
120  int errcount;
121  bool gotDigis;
122 
123  std::ofstream myfile_;
124  int nevents_;
125  std::map< uint32_t , std::vector< std::pair< std::pair<int,int> , float > > > noisyDetIds_;
127 
130 
133 
134 
135 };
136 #endif
SiPixelInformationExtractor(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.
void getNormalization(MonitorElement *mE, std::pair< double, double > &norm, std::string theMEType)
(Documentation under construction).
std::map< std::string, std::vector< std::string > > meQTestsMap
int init
Definition: HydjetWrapper.h:67
void computeStatus(MonitorElement *mE, double &colorValue, std::pair< double, double > &norm)
(Documentation under construction).
std::map< uint32_t, std::vector< std::pair< std::pair< int, int >, float > > > noisyDetIds_
std::map< std::string, std::vector< std::string > > layoutMap
bool hasItem(std::multimap< std::string, std::string > &req_map, std::string item_name)
(Documentation under construction).
void readConfiguration()
Read Configuration File.
std::map< std::string, std::map< std::string, std::string > > qtestsMap
void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag)
void findNoisyPixels(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, edm::ESHandle< SiPixelFedCablingMap > theCablingMap)
void selectImage(std::string &name, int status)
void getNormalization2D(MonitorElement *mE, std::pair< double, double > &normX, std::pair< double, double > &normY, std::string theMEType)
(Documentation under construction).
std::string getMEType(MonitorElement *mE)
std::string getItemValue(const std::multimap< std::string, std::string > &req_map, std::string item_name)
(Documentation under construction).
void selectColor(std::string &col, int status)
void getItemList(const std::multimap< std::string, std::string > &req_map, std::string item_name, std::vector< std::string > &items)
(Documentation under construction).
int getDetId(MonitorElement *mE)
(Documentation under construction).
~SiPixelInformationExtractor()
Destructor of the SiPixelInformationExtractor class.
tuple status
Definition: ntuplemaker.py:245
int col
Definition: cuy.py:1008