Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:03

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