File indexing completed on 2023-03-17 10:42:37
0001 #ifndef Calibration_EcalCalibAlgos_miscalibExample_h
0002 #define Calibration_EcalCalibAlgos_miscalibExample_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <memory>
0016
0017
0018 #include "FWCore/Framework/interface/Frameworkfwd.h"
0019 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0020
0021 #include "FWCore/Framework/interface/Event.h"
0022 #include "FWCore/Framework/interface/MakerMacros.h"
0023
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025
0026 #include "DataFormats/EgammaReco/interface/SuperCluster.h"
0027 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
0028
0029 #include <string>
0030 #include "TH1.h"
0031 #include "TFile.h"
0032
0033
0034
0035
0036 class miscalibExample : public edm::one::EDAnalyzer<> {
0037 public:
0038 explicit miscalibExample(const edm::ParameterSet&);
0039 ~miscalibExample() override;
0040
0041 void analyze(const edm::Event&, const edm::EventSetup&) override;
0042 void beginJob() override;
0043 void endJob() override;
0044
0045 private:
0046
0047 const std::string rootfile_;
0048 const std::string correctedHybridSuperClusterProducer_;
0049 const std::string correctedHybridSuperClusterCollection_;
0050 int read_events;
0051 const edm::EDGetTokenT<reco::SuperClusterCollection> correctedHybridSuperClusterToken_;
0052
0053 TH1F* scEnergy;
0054 };
0055
0056 #endif