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 #include <memory>
22 
23 #include <vector>
24 
27 
29 
30 class DQMStore;
31 class SiStripDetCabling;
32 class SiStripCluster;
33 class SiPixelCluster;
34 class EventWithHistory;
36 class SiStripDCSStatus;
38 
40  public:
43  virtual void analyze(const edm::Event&, const edm::EventSetup&);
44  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
45  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) ;
46 
47  struct ModMEs{ // MEs for one single detector module
48 
58  MonitorElement* NrOfClusterizedStrips = 0; // can be used at client level for occupancy calculations
60  };
61 
62  struct LayerMEs{ // MEs for Layer Level
79 
80  };
81 
82  struct SubDetMEs{ // MEs for Subdetector Level
83  int totNClusters = 0;
94  };
95 
96  struct ClusterProperties { // Cluster Properties
97  float charge;
98  float position;
99  short start;
100  short width;
101  float noise;
102  };
103 
122 
123  private:
124 
125  void createMEs(const edm::EventSetup& es , DQMStore::IBooker & ibooker);
126  void createLayerMEs(std::string label, int ndets , DQMStore::IBooker & ibooker );
127  void createModuleMEs(ModMEs& mod_single, uint32_t detid , DQMStore::IBooker & ibooker);
129  int FindRegion(int nstrip,int npixel);
130  void fillModuleMEs(ModMEs& mod_mes, ClusterProperties& cluster);
131  void fillLayerMEs(LayerMEs&, ClusterProperties& cluster);
132 
133  void ResetModuleMEs(uint32_t idet);
134 
135  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
136  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
137  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
138  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
139  MonitorElement * bookMETrend(const char* , DQMStore::IBooker & ibooker);
140  MonitorElement* bookME1D(const char* ParameterSetLabel, const char* HistoName , DQMStore::IBooker & ibooker);
141  MonitorElement* bookME2D(const char* ParameterSetLabel, const char* HistoName , DQMStore::IBooker & ibooker);
142 
144  std::map<uint32_t, ModMEs> ModuleMEsMap;
145  std::map<std::string, LayerMEs> LayerMEsMap;
146  std::map<std::string, std::vector< uint32_t > > LayerDetMap;
147  std::map<std::string, SubDetMEs> SubDetMEsMap;
148  std::map<std::string, std::string> SubDetPhasePartMap;
149 
150  // flags
152  unsigned long long m_cacheID_;
153 
155  std::vector<uint32_t> ModulesToBeExcluded_;
156 
158 
159  // TkHistoMap added
162 
165  float trendVar;
166 
180 
184 
214 
215  bool Mod_On_;
217 
220 
221  /*
222  edm::InputTag clusterProducerStrip_;
223  edm::InputTag clusterProducerPix_;
224  edm::InputTag historyProducer_;
225  edm::InputTag apvPhaseProducer_;
226  */
227 
232 
238 
239  double k0;
240  double q0;
241  double dk0;
242  double maxClus;
243  double minPix;
244 
246 
247  // add for selecting on ZeroBias events in the MinimumBias PD
251 
255 };
256 #endif
MonitorElement * GlobalABXTH1_CSCP
void ResetModuleMEs(uint32_t idet)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * bookME1D(const char *ParameterSetLabel, const char *HistoName, DQMStore::IBooker &ibooker)
int FindRegion(int nstrip, int npixel)
MonitorElement * NumberOfPixelClus_vs_BX
MonitorElement * PixVsStripMultiplicityRegions
MonitorElement * GlobalTH2MainDiagonalPosition_vs_BX
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
void createLayerMEs(std::string label, int ndets, DQMStore::IBooker &ibooker)
std::map< std::string, LayerMEs > LayerMEsMap
std::map< std::string, std::vector< uint32_t > > LayerDetMap
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void Fill(long long x)
MonitorElement * NumberOfPixelClus
unsigned long long m_cacheID_
void createSubDetMEs(std::string label, DQMStore::IBooker &ibooker)
Definition: ME.h:11
std::map< uint32_t, ModMEs > ModuleMEsMap
void createMEs(const edm::EventSetup &es, DQMStore::IBooker &ibooker)
std::map< std::string, std::string > SubDetPhasePartMap
MonitorElement * GlobalApvCycleDBxTH2
edm::ParameterSet Parameters
GenericTriggerEventFlag * genTriggerEventFlagPixelDCSfilter_
MonitorElement * bookMETrend(const char *, DQMStore::IBooker &ibooker)
void fillME(MonitorElement *ME, float value1, float value2, float value3, float value4)
MonitorElement * NumberOfStripClus
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * GlobalMainDiagonalPosition_vs_BX
MonitorElement * NumberOfStripClus_vs_BX
edm::EDGetTokenT< EventWithHistory > historyProducerToken_
MonitorElement * ClusWidthVsAmpTH2
MonitorElement * GlobalMainDiagonalPosition
std::vector< uint32_t > ModulesToBeExcluded_
MonitorElement * bookME2D(const char *ParameterSetLabel, const char *HistoName, DQMStore::IBooker &ibooker)
SiStripDCSStatus * dcsStatus_
GenericTriggerEventFlag * genTriggerEventFlagBPTXfilter_
MonitorElement * LayerNumberOfClusterPerRingTrend
void fillME(MonitorElement *ME, float value1)
SiStripMonitorCluster(const edm::ParameterSet &)
std::string HistoName
MonitorElement * StripNoise3Cycle
void createModuleMEs(ModMEs &mod_single, uint32_t detid, DQMStore::IBooker &ibooker)
void fillME(MonitorElement *ME, float value1, float value2)
Pixel cluster – collection of neighboring pixels above threshold.
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clusterProducerPixToken_
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillLayerMEs(LayerMEs &, ClusterProperties &cluster)
void fillME(MonitorElement *ME, float value1, float value2, float value3)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterProducerStripToken_
MonitorElement * GlobalDBxCycleTH1
edm::EDGetTokenT< APVCyclePhaseCollection > apvPhaseProducerToken_
GenericTriggerEventFlag * genTriggerEventFlagStripDCSfilter_
MonitorElement * NclusVsCycleTimeProf2D
MonitorElement * BPTXrateTrend
void fillModuleMEs(ModMEs &mod_mes, ClusterProperties &cluster)
MonitorElement * SubDetNumberOfClusterPerLayerTrend
Definition: Run.h:43