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  //virtual void beginJob() ;
45  virtual void endJob() ;
46  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
47  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) ;
48 
49  struct ModMEs{ // MEs for one single detector module
50 
60  MonitorElement* NrOfClusterizedStrips = 0; // can be used at client level for occupancy calculations
61  };
62 
63  struct LayerMEs{ // MEs for Layer Level
76 
77  };
78 
79  struct SubDetMEs{ // MEs for Subdetector Level
80  int totNClusters = 0;
87  };
88 
89  struct ClusterProperties { // Cluster Properties
90  float charge;
91  float position;
92  short start;
93  short width;
94  float noise;
95  };
96 
105 
107 
108  private:
109 
110  void createMEs(const edm::EventSetup& es , DQMStore::IBooker & ibooker);
111  void createLayerMEs(std::string label, int ndets , DQMStore::IBooker & ibooker );
112  void createModuleMEs(ModMEs& mod_single, uint32_t detid , DQMStore::IBooker & ibooker);
114  int FindRegion(int nstrip,int npixel);
115  void fillModuleMEs(ModMEs& mod_mes, ClusterProperties& cluster);
116  void fillLayerMEs(LayerMEs&, ClusterProperties& cluster, float timeinorbit);
117 
118  void ResetModuleMEs(uint32_t idet);
119 
120  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
121  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
122  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
123  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
124  MonitorElement * bookMETrend(const char*, const char* , DQMStore::IBooker & ibooker);
125  MonitorElement* bookME1D(const char* ParameterSetLabel, const char* HistoName , DQMStore::IBooker & ibooker);
126 
127  private:
130  std::map<uint32_t, ModMEs> ModuleMEsMap;
131  std::map<std::string, LayerMEs> LayerMEsMap;
132  std::map<std::string, std::vector< uint32_t > > LayerDetMap;
133  std::map<std::string, SubDetMEs> SubDetMEsMap;
134  std::map<std::string, std::string> SubDetPhasePartMap;
135 
136  // flags
138  unsigned long long m_cacheID_;
139 
141  std::vector<uint32_t> ModulesToBeExcluded_;
142 
144 
145  // TkHistoMap added
147 
150 
163 
167 
189 
190  bool Mod_On_;
192 
195 
196  /*
197  edm::InputTag clusterProducerStrip_;
198  edm::InputTag clusterProducerPix_;
199  edm::InputTag historyProducer_;
200  edm::InputTag apvPhaseProducer_;
201  */
202 
207 
213 
214  double k0;
215  double q0;
216  double dk0;
217  double maxClus;
218  double minPix;
219 
221 
222  // add for selecting on ZeroBias events in the MinimumBias PD
226 
230 };
231 #endif
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 * 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
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_
void fillLayerMEs(LayerMEs &, ClusterProperties &cluster, float timeinorbit)
void fillME(MonitorElement *ME, float value1, float value2, float value3, float value4)
MonitorElement * NumberOfStripClus
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
edm::EDGetTokenT< EventWithHistory > historyProducerToken_
MonitorElement * bookMETrend(const char *, const char *, DQMStore::IBooker &ibooker)
MonitorElement * GlobalMainDiagonalPosition
std::vector< uint32_t > ModulesToBeExcluded_
SiStripDCSStatus * dcsStatus_
GenericTriggerEventFlag * genTriggerEventFlagBPTXfilter_
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 fillME(MonitorElement *ME, float value1, float value2, float value3)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterProducerStripToken_
edm::EDGetTokenT< APVCyclePhaseCollection > apvPhaseProducerToken_
GenericTriggerEventFlag * genTriggerEventFlagStripDCSfilter_
MonitorElement * BPTXrateTrend
void fillModuleMEs(ModMEs &mod_mes, ClusterProperties &cluster)
Definition: Run.h:41