CMS 3D CMS Logo

EcalTrigPrimAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Class: EcalTrigPrimAnalyzer
4 //
10 //
11 // Original Author: Ursula Berthon
12 // Created: Thu Jul 4 11:38:38 CEST 2005
13 //
14 //
15 
16 // system include files
17 //#include "FWCore/Framework/interface/Frameworkfwd.h"
20 
23 
25 #include <TFile.h>
26 #include <TH1F.h>
27 #include <TH1I.h>
28 #include <TH2F.h>
29 #include <TTree.h>
30 #include <string>
31 #include <vector>
32 
33 //
34 // class declaration
35 //
36 
38 public:
39  explicit EcalTrigPrimAnalyzer(const edm::ParameterSet &);
40  ~EcalTrigPrimAnalyzer() override;
41 
42  void analyze(const edm::Event &, const edm::EventSetup &) override;
43  void endJob() override;
44 
45 private:
46  // for histos of nr of hits
47  std::vector<std::string> ecal_parts_;
48  TH1I *ecal_et_[2];
49  TH1I *ecal_tt_[2];
50  TH1I *ecal_fgvb_[2];
51  TH1I *histEndc, *histBar;
52  TFile *histfile_;
53  TH2F *hTPvsRechit_;
55  TTree *tree_;
56 
58  float eRec_, tpgGeV_;
59 
61 
64 
65  bool recHits_;
66 };
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< std::string > ecal_parts_
EcalTrigPrimAnalyzer(const edm::ParameterSet &)
edm::InputTag rechits_labelEE_
edm::InputTag rechits_labelEB_