File indexing completed on 2024-04-06 12:08:53
0001 #ifndef SiStripMonitorSummary_SiStripClassToMonitorCondData_h
0002 #define SiStripMonitorSummary_SiStripClassToMonitorCondData_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <memory>
0014 #include <iostream>
0015 #include <string>
0016 #include <vector>
0017 #include <cstdint>
0018
0019
0020 #include "FWCore/Framework/interface/Frameworkfwd.h"
0021 #include "FWCore/Framework/interface/Event.h"
0022 #include "FWCore/Framework/interface/ConsumesCollector.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024 #include "DQMServices/Core/interface/DQMStore.h"
0025
0026 #include "Geometry/Records/interface/TrackerTopologyRcd.h"
0027 #include "CondFormats/DataRecord/interface/SiStripPedestalsRcd.h"
0028 #include "CondFormats/DataRecord/interface/SiStripNoisesRcd.h"
0029 #include "CondFormats/DataRecord/interface/SiStripApvGainRcd.h"
0030 #include "CondFormats/DataRecord/interface/SiStripLorentzAngleRcd.h"
0031 #include "CondFormats/DataRecord/interface/SiStripThresholdRcd.h"
0032 #include "CalibTracker/Records/interface/SiStripQualityRcd.h"
0033 #include "CalibTracker/Records/interface/SiStripDetCablingRcd.h"
0034
0035 class TkDetMap;
0036 class SiStripPedestals;
0037 class SiStripNoises;
0038 class SiStripQuality;
0039 class SiStripApvGain;
0040 class SiStripLorentzAngle;
0041 class SiStripBackPlaneCorrection;
0042 class SiStripThreshold;
0043 class SiStripDetCabling;
0044
0045 class SiStripPedestalsDQM;
0046 class SiStripNoisesDQM;
0047 class SiStripQualityDQM;
0048 class SiStripApvGainsDQM;
0049 class SiStripLorentzAngleDQM;
0050 class SiStripBackPlaneCorrectionDQM;
0051 class SiStripCablingDQM;
0052 class SiStripThresholdDQM;
0053
0054 class SiStripClassToMonitorCondData {
0055 public:
0056 typedef dqm::legacy::MonitorElement MonitorElement;
0057 typedef dqm::legacy::DQMStore DQMStore;
0058
0059 SiStripClassToMonitorCondData(edm::ParameterSet const &iConfig, edm::ConsumesCollector iC);
0060 ~SiStripClassToMonitorCondData();
0061
0062 void beginRun(edm::RunNumber_t iRun, edm::EventSetup const &eSetup);
0063 void analyseCondData(const edm::EventSetup &);
0064 void end();
0065 void save();
0066
0067 void getModMEsOnDemand(edm::EventSetup const &eSetup, uint32_t requestedDetId);
0068 void getLayerMEsOnDemand(edm::EventSetup const &eSetup,
0069 std::string requestedSubDetector,
0070 uint32_t requestedSide,
0071 uint32_t requestedLayer);
0072
0073 private:
0074 edm::ParameterSet conf_;
0075
0076 bool monitorPedestals_;
0077 bool monitorNoises_;
0078 bool monitorQuality_;
0079 bool monitorApvGains_;
0080 bool monitorLorentzAngle_;
0081 bool monitorBackPlaneCorrection_;
0082 bool monitorLowThreshold_;
0083 bool monitorHighThreshold_;
0084 bool monitorCabling_;
0085
0086 std::unique_ptr<SiStripPedestalsDQM> pedestalsDQM_;
0087 std::unique_ptr<SiStripNoisesDQM> noisesDQM_;
0088 std::unique_ptr<SiStripQualityDQM> qualityDQM_;
0089 std::unique_ptr<SiStripApvGainsDQM> apvgainsDQM_;
0090 std::unique_ptr<SiStripLorentzAngleDQM> lorentzangleDQM_;
0091 std::unique_ptr<SiStripBackPlaneCorrectionDQM> bpcorrectionDQM_;
0092 std::unique_ptr<SiStripCablingDQM> cablingDQM_;
0093 std::unique_ptr<SiStripThresholdDQM> lowthresholdDQM_;
0094 std::unique_ptr<SiStripThresholdDQM> highthresholdDQM_;
0095
0096 edm::ESGetToken<TkDetMap, TrackerTopologyRcd> tkDetMapToken_;
0097 edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> tTopoToken_;
0098
0099 edm::ESGetToken<SiStripPedestals, SiStripPedestalsRcd> pedestalsToken_;
0100 edm::ESGetToken<SiStripNoises, SiStripNoisesRcd> noiseToken_;
0101 edm::ESGetToken<SiStripApvGain, SiStripApvGainSimRcd> simGainToken_;
0102 edm::ESGetToken<SiStripApvGain, SiStripApvGainRcd> gainTokenForNoise_;
0103 edm::ESGetToken<SiStripApvGain, SiStripApvGainRcd> gainToken_;
0104 edm::ESGetToken<SiStripQuality, SiStripQualityRcd> qualityToken_;
0105 edm::ESGetToken<SiStripLorentzAngle, SiStripLorentzAngleRcd> lorentzAngleToken_;
0106 edm::ESGetToken<SiStripBackPlaneCorrection, SiStripBackPlaneCorrectionRcd> backplaneCorrectionToken_;
0107 edm::ESGetToken<SiStripThreshold, SiStripThresholdRcd> thresholdToken_;
0108 edm::ESGetToken<SiStripDetCabling, SiStripDetCablingRcd> detCablingToken_;
0109 };
0110
0111 #endif