CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripMonitorCluster.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorCluster_SiStripMonitorCluster_h
2 #define SiStripMonitorCluster_SiStripMonitorCluster_h
3 // -*- C++ -*-
4 // Package: SiStripMonitorCluster
5 // Class : SiStripMonitorCluster
9 // Original Author: dkcira
10 // Created: Wed Feb 1 16:47:14 CET 2006
11 // $Id: SiStripMonitorCluster.h,v 1.35 2010/04/22 16:26:59 dutta Exp $
12 #include <memory>
22 
23 #include <vector>
24 
25 class DQMStore;
26 class SiStripDetCabling;
27 class SiStripCluster;
28 class SiStripDCSStatus;
29 
31  public:
34  virtual void analyze(const edm::Event&, const edm::EventSetup&);
35  //virtual void beginJob() ;
36  virtual void endJob() ;
37  virtual void beginRun(const edm::Run&, const edm::EventSetup&);
38 
39  struct ModMEs{ // MEs for one single detector module
40 
50  MonitorElement* NrOfClusterizedStrips; // can be used at client level for occupancy calculations
51  };
52 
53  struct LayerMEs{ // MEs for Layer Level
66 
67  };
68 
69  struct SubDetMEs{ // MEs for Subdetector Level
77  };
78 
79  struct ClusterProperties { // Cluster Properties
80  float charge;
81  float position;
82  short start;
83  short width;
84  float noise;
85  };
86 
88  private:
89 
90  void createMEs(const edm::EventSetup& es);
91  void createLayerMEs(std::string label, int ndets);
92  void createModuleMEs(ModMEs& mod_single, uint32_t detid);
93  void createSubDetMEs(std::string label);
94 
95  void fillModuleMEs(ModMEs& mod_mes, ClusterProperties& cluster);
96  void fillLayerMEs(LayerMEs&, ClusterProperties& cluster, float timeinorbit);
97 
98  void ResetModuleMEs(uint32_t idet);
99 
100  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
101  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
102  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
103  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
104  MonitorElement * bookMETrend(const char*, const char*);
105  MonitorElement* bookME1D(const char* ParameterSetLabel, const char* HistoName);
106 
107  private:
110  std::map<uint32_t, ModMEs> ModuleMEsMap;
111  std::map<std::string, LayerMEs> LayerMEsMap;
112  std::map<std::string, std::vector< uint32_t > > LayerDetMap;
113  std::map<std::string, SubDetMEs> SubDetMEsMap;
114  std::map<std::string, std::string> SubDetPhasePartMap;
115 
116  // flags
118  unsigned long long m_cacheID_;
119 
121  std::vector<uint32_t> ModulesToBeExcluded_;
122 
124 
125  // TkHistoMap added
127 
130 
143 
161 
164 
165  bool Mod_On_;
166 
167  std::string topFolderName_;
168  std::string qualityLabel_;
169 
173 
179 
181 };
182 #endif
void ResetModuleMEs(uint32_t idet)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * bookME1D(const char *ParameterSetLabel, const char *HistoName)
const std::string & label
Definition: MVAComputer.cc:186
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
MonitorElement * ClusterSignalOverNoiseVsPos
std::map< std::string, LayerMEs > LayerMEsMap
void createMEs(const edm::EventSetup &es)
std::map< std::string, std::vector< uint32_t > > LayerDetMap
void Fill(long long x)
unsigned long long m_cacheID_
Definition: ME.h:11
std::map< uint32_t, ModMEs > ModuleMEsMap
void createSubDetMEs(std::string label)
std::map< std::string, std::string > SubDetPhasePartMap
MonitorElement * GlobalApvCycleDBxTH2
void createModuleMEs(ModMEs &mod_single, uint32_t detid)
edm::ParameterSet Parameters
MonitorElement * bookMETrend(const char *, const char *)
void fillLayerMEs(LayerMEs &, ClusterProperties &cluster, float timeinorbit)
void fillME(MonitorElement *ME, float value1, float value2, float value3, float value4)
std::vector< uint32_t > ModulesToBeExcluded_
SiStripDCSStatus * dcsStatus_
void fillME(MonitorElement *ME, float value1)
SiStripMonitorCluster(const edm::ParameterSet &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
std::string HistoName
void fillME(MonitorElement *ME, float value1, float value2)
void createLayerMEs(std::string label, int ndets)
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillME(MonitorElement *ME, float value1, float value2, float value3)
void fillModuleMEs(ModMEs &mod_mes, ClusterProperties &cluster)
Definition: Run.h:31