Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-28 05:58:08

0001 #ifndef EcalPreshowerNoiseDistrib_H
0002 #define EcalPreshowerNoiseDistrib_H
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "FWCore/Framework/interface/EventSetup.h"
0008 #include "FWCore/Framework/interface/ESHandle.h"
0009 #include "FWCore/Framework/interface/MakerMacros.h"
0010 
0011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0012 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0013 
0014 #include "DQMServices/Core/interface/DQMStore.h"
0015 #include "FWCore/ServiceRegistry/interface/Service.h"
0016 
0017 #include "DataFormats/EcalDigi/interface/ESDataFrame.h"
0018 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0019 
0020 #include <iostream>
0021 #include <fstream>
0022 #include <vector>
0023 #include <map>
0024 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0025 
0026 class EcalPreshowerNoiseDistrib : public DQMEDAnalyzer {
0027   typedef std::map<uint32_t, float, std::less<uint32_t> > MapType;
0028 
0029 public:
0030   /// Constructor
0031   EcalPreshowerNoiseDistrib(const edm::ParameterSet& ps);
0032 
0033   void bookHistograms(DQMStore::IBooker& i, edm::Run const&, edm::EventSetup const&) override;
0034 
0035 protected:
0036   /// Analyze
0037   void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0038 
0039 private:
0040   bool verbose_;
0041 
0042   std::string outputFile_;
0043 
0044   edm::EDGetTokenT<ESDigiCollection> ESdigiCollectionToken_;
0045 
0046   MonitorElement* meESDigiADC_[3];
0047   MonitorElement* meESDigiCorr_[3];
0048   MonitorElement* meESDigi3D_;
0049   MonitorElement* meESDigiMultiplicity_;
0050 };
0051 
0052 #endif