Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:39

0001 #ifndef Calibration_EcalCalibAlgos_miscalibExample_h
0002 #define Calibration_EcalCalibAlgos_miscalibExample_h
0003 
0004 /**\class miscalibExample
0005 
0006  Description: Analyzer to fetch collection of objects from event and make simple plots
0007 
0008  Implementation:
0009      \\\author: Lorenzo Agostino, September 2006
0010 */
0011 //
0012 //
0013 
0014 // system include files
0015 #include <memory>
0016 
0017 // user include files
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 // class declaration
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   // ----------member data ---------------------------
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