Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-25 23:40:02

0001 #ifndef SiStripMonitorRawData_SiStripMonitorRawData_h
0002 #define SiStripMonitorRawData_SiStripMonitorRawData_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     SiStripMonitorRawData
0006 // Class  :     SiStripMonitorRawData
0007 //
0008 /**\class SiStripMonitorRawData SiStripMonitorRawData.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  dutta
0018 //         Created:  Sat Feb  4 20:49:51 CET 2006
0019 //
0020 
0021 // system include files
0022 #include <memory>
0023 #include <iostream>
0024 #include <string>
0025 #include <vector>
0026 #include <cstdint>
0027 
0028 // user include files
0029 #include "FWCore/Framework/interface/ESWatcher.h"
0030 #include "FWCore/Framework/interface/Frameworkfwd.h"
0031 #include "FWCore/Utilities/interface/EDGetToken.h"
0032 #include "FWCore/Framework/interface/Event.h"
0033 #include "FWCore/Framework/interface/MakerMacros.h"
0034 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0035 #include "DataFormats/Common/interface/DetSetVector.h"
0036 #include "DataFormats/SiStripDigi/interface/SiStripRawDigi.h"
0037 #include "DQMServices/Core/interface/DQMOneEDAnalyzer.h"
0038 #include "DQMServices/Core/interface/DQMStore.h"
0039 
0040 class SiStripDetCabling;
0041 
0042 class SiStripMonitorRawData : public DQMOneEDAnalyzer<> {
0043 public:
0044   explicit SiStripMonitorRawData(const edm::ParameterSet &);
0045   ~SiStripMonitorRawData() override;
0046 
0047   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0048   void analyze(const edm::Event &, const edm::EventSetup &) override;
0049   void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
0050   void endJob() override;
0051 
0052 private:
0053   edm::EDGetTokenT<edm::DetSetVector<SiStripRawDigi>> digiToken_;
0054 
0055   MonitorElement *BadFedNumber;
0056 
0057   DQMStore *dqmStore_;
0058   edm::ParameterSet conf_;
0059   std::vector<uint32_t> SelectedDetIds;
0060 
0061   edm::ESGetToken<SiStripDetCabling, SiStripDetCablingRcd> detCablingToken_;
0062   edm::ESWatcher<SiStripDetCablingRcd> detCablingWatcher_;
0063 };
0064 
0065 #endif