Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:28

0001 #ifndef ESDigisReferenceDistrib_H
0002 #define ESDigisReferenceDistrib_H
0003 
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005 #include "FWCore/Framework/interface/Frameworkfwd.h"
0006 
0007 #include "FWCore/Framework/interface/Event.h"
0008 #include "FWCore/Framework/interface/EventSetup.h"
0009 #include "FWCore/Framework/interface/MakerMacros.h"
0010 
0011 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 #include "FWCore/ServiceRegistry/interface/Service.h"
0014 
0015 #include "DataFormats/EcalDigi/interface/ESDataFrame.h"
0016 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0017 
0018 #include <fstream>
0019 #include <iostream>
0020 
0021 #include "TFile.h"
0022 #include "TH1F.h"
0023 #include "TH3F.h"
0024 
0025 class ESDigisReferenceDistrib : public edm::one::EDAnalyzer<> {
0026 public:
0027   /// Constructor
0028   ESDigisReferenceDistrib(const edm::ParameterSet &ps);
0029 
0030   /// Destructor
0031   ~ESDigisReferenceDistrib() override;
0032 
0033 protected:
0034   /// Analyze
0035   void analyze(const edm::Event &e, const edm::EventSetup &c) override;
0036 
0037   // BeginJob
0038   void beginJob() override;
0039 
0040   // EndJob
0041   void endJob(void) override;
0042 
0043 private:
0044   bool verbose_;
0045 
0046   std::string outputRootFile_;
0047   std::string outputTxtFile_;
0048 
0049   const edm::InputTag ESdigiCollection_;
0050   const edm::EDGetTokenT<ESDigiCollection> ecalDigiESToken_;
0051 
0052   TH3F *meESDigi3D_;
0053   TH1F *meESDigiADC_[3];
0054 };
0055 
0056 #endif