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.42 2012/07/19 15:46:18 tosi Exp $
12 #include <memory>
22 
23 #include <vector>
24 
25 class DQMStore;
26 class SiStripDetCabling;
27 class SiStripCluster;
28 class SiStripDCSStatus;
30 
32  public:
35  virtual void analyze(const edm::Event&, const edm::EventSetup&);
36  //virtual void beginJob() ;
37  virtual void endJob() ;
38  virtual void beginRun(const edm::Run&, const edm::EventSetup&);
39 
40  struct ModMEs{ // MEs for one single detector module
41 
51  MonitorElement* NrOfClusterizedStrips; // can be used at client level for occupancy calculations
52  };
53 
54  struct LayerMEs{ // MEs for Layer Level
67 
68  };
69 
70  struct SubDetMEs{ // MEs for Subdetector Level
78  };
79 
80  struct ClusterProperties { // Cluster Properties
81  float charge;
82  float position;
83  short start;
84  short width;
85  float noise;
86  };
87 
96 
98 
99  private:
100 
101  void createMEs(const edm::EventSetup& es);
102  void createLayerMEs(std::string label, int ndets);
103  void createModuleMEs(ModMEs& mod_single, uint32_t detid);
104  void createSubDetMEs(std::string label);
105  int FindRegion(int nstrip,int npixel);
106  void fillModuleMEs(ModMEs& mod_mes, ClusterProperties& cluster);
107  void fillLayerMEs(LayerMEs&, ClusterProperties& cluster, float timeinorbit);
108 
109  void ResetModuleMEs(uint32_t idet);
110 
111  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
112  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
113  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
114  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
115  MonitorElement * bookMETrend(const char*, const char*);
116  MonitorElement* bookME1D(const char* ParameterSetLabel, const char* HistoName);
117 
118  private:
121  std::map<uint32_t, ModMEs> ModuleMEsMap;
122  std::map<std::string, LayerMEs> LayerMEsMap;
123  std::map<std::string, std::vector< uint32_t > > LayerDetMap;
124  std::map<std::string, SubDetMEs> SubDetMEsMap;
125  std::map<std::string, std::string> SubDetPhasePartMap;
126 
127  // flags
129  unsigned long long m_cacheID_;
130 
132  std::vector<uint32_t> ModulesToBeExcluded_;
133 
135 
136  // TkHistoMap added
138 
141 
154 
158 
180 
181  bool Mod_On_;
183 
184  std::string topFolderName_;
185  std::string qualityLabel_;
186 
191 
197 
198  double k0;
199  double q0;
200  double dk0;
201  double maxClus;
202  double minPix;
203 
205 
206  // add for selecting on ZeroBias events in the MinimumBias PD
210 
214 };
215 #endif
void ResetModuleMEs(uint32_t idet)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int FindRegion(int nstrip, int npixel)
MonitorElement * bookME1D(const char *ParameterSetLabel, const char *HistoName)
MonitorElement * PixVsStripMultiplicityRegions
MonitorElement * GlobalCStripVsCpix
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
MonitorElement * ClusterSignalOverNoiseVsPos
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
MonitorElement * StripNoise2Cycle
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)
MonitorElement * NumberOfPixelClus
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
GenericTriggerEventFlag * genTriggerEventFlagPixelDCSfilter_
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)
MonitorElement * NumberOfStripClus
MonitorElement * GlobalMainDiagonalPosition
std::vector< uint32_t > ModulesToBeExcluded_
SiStripDCSStatus * dcsStatus_
GenericTriggerEventFlag * genTriggerEventFlagBPTXfilter_
void fillME(MonitorElement *ME, float value1)
SiStripMonitorCluster(const edm::ParameterSet &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
std::string HistoName
MonitorElement * StripNoise3Cycle
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)
GenericTriggerEventFlag * genTriggerEventFlagStripDCSfilter_
MonitorElement * BPTXrateTrend
void fillModuleMEs(ModMEs &mod_mes, ClusterProperties &cluster)
Definition: Run.h:33