1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#ifndef Calibration_EcalCalibAlgos_miscalibExample_h
#define Calibration_EcalCalibAlgos_miscalibExample_h
/**\class miscalibExample
Description: Analyzer to fetch collection of objects from event and make simple plots
Implementation:
\\\author: Lorenzo Agostino, September 2006
*/
//
//
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
#include <string>
#include "TH1.h"
#include "TFile.h"
//
// class declaration
//
class miscalibExample : public edm::one::EDAnalyzer<> {
public:
explicit miscalibExample(const edm::ParameterSet&);
~miscalibExample() override;
void analyze(const edm::Event&, const edm::EventSetup&) override;
void beginJob() override;
void endJob() override;
private:
// ----------member data ---------------------------
const std::string rootfile_;
const std::string correctedHybridSuperClusterProducer_;
const std::string correctedHybridSuperClusterCollection_;
int read_events;
const edm::EDGetTokenT<reco::SuperClusterCollection> correctedHybridSuperClusterToken_;
TH1F* scEnergy;
};
#endif
|