Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef EcalTPInputAnalyzer_h
0002 #define EcalTPInputAnalyzer_h
0003 // -*- C++ -*-
0004 //
0005 // Class:      EcalTPInutAnalyzer
0006 //
0007 /**\class EcalTPInutAnalyzer
0008 
0009  Description: rereads the result of the EcalTrigPrimProducer
0010 
0011 */
0012 //
0013 // Original Author:  Ursula Berthon
0014 //         Created:  Thu Jul 4 11:38:38 CEST 2005
0015 //
0016 //
0017 
0018 // system include files
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 // class declaration
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   // for histos of nr of hits
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