File indexing completed on 2023-03-17 11:23:45
0001 #ifndef EcalTPInputAnalyzer_h
0002 #define EcalTPInputAnalyzer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0020 #include "FWCore/Framework/interface/Frameworkfwd.h"
0021 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0022 #include "FWCore/Framework/interface/Event.h"
0023 #include "FWCore/Framework/interface/MakerMacros.h"
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 #include "FWCore/ServiceRegistry/interface/Service.h"
0026 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0027
0028 #include <TH1I.h>
0029 #include <string>
0030 #include <vector>
0031
0032
0033
0034
0035
0036 class EcalTPInputAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
0037 public:
0038 explicit EcalTPInputAnalyzer(const edm::ParameterSet &);
0039 ~EcalTPInputAnalyzer() override = default;
0040
0041 void analyze(const edm::Event &, const edm::EventSetup &) override;
0042
0043 private:
0044
0045 std::vector<std::string> ecal_parts_;
0046 TH1I *ecal_et_[2];
0047 TH1I *ecal_tt_[2];
0048 TH1I *ecal_fgvb_[2];
0049 TH1I *histEndc, *histBar;
0050
0051 const std::string producer_;
0052 const std::string ebLabel_;
0053 const std::string eeLabel_;
0054 const edm::EDGetTokenT<EBDigiCollection> ebToken_;
0055 const edm::EDGetTokenT<EEDigiCollection> eeToken_;
0056 };
0057 #endif