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 
17 // system include files
18 //#include "FWCore/Framework/interface/Frameworkfwd.h"
21 
24 
26 #include <vector>
27 #include <string>
28 #include <TH1I.h>
29 #include <TFile.h>
30 #include <TTree.h>
31 #include <TH2F.h>
32 #include <TH1F.h>
33 
34 //
35 // class declaration
36 //
37 
39  public:
40  explicit EcalTrigPrimAnalyzer(const edm::ParameterSet&);
41  ~EcalTrigPrimAnalyzer() override;
42 
43 
44  void analyze(const edm::Event&, const edm::EventSetup&) override;
45  void endJob() override;
46  private:
47 
48  // for histos of nr of hits
49  std::vector<std::string> ecal_parts_;
50  TH1I * ecal_et_[2];
51  TH1I * ecal_tt_[2];
52  TH1I * ecal_fgvb_[2];
53  TH1I *histEndc,*histBar;
54  TFile *histfile_;
55  TH2F *hTPvsRechit_;
57  TTree *tree_ ;
58 
59  int iphi_, ieta_ , tpgADC_, ttf_, fg_ ;
60  float eRec_, tpgGeV_ ;
61 
63 
66 
67  bool recHits_;
68 };
69 
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_