CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
22 
33 #include <TFile.h>
34 #include <TH1F.h>
35 #include <TH1I.h>
36 #include <TH2F.h>
37 #include <TTree.h>
38 #include <string>
39 #include <vector>
40 
41 //
42 // class declaration
43 //
44 
46 public:
47  explicit EcalTrigPrimAnalyzer(const edm::ParameterSet &);
48  ~EcalTrigPrimAnalyzer() override;
49 
50  void analyze(const edm::Event &, const edm::EventSetup &) override;
51  void endJob() override;
52 
53 private:
54  // for histos of nr of hits
55  std::vector<std::string> ecal_parts_;
56  TH1I *ecal_et_[2];
57  TH1I *ecal_tt_[2];
58  TH1I *ecal_fgvb_[2];
59  TH1I *histEndc, *histBar;
60  TFile *histfile_;
61  TH2F *hTPvsRechit_;
63  TTree *tree_;
64 
66  float eRec_, tpgGeV_;
67 
69 
77 
78  bool recHits_;
79 };
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > barrelGeomToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > endcapGeomToken_
std::vector< std::string > ecal_parts_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_
EcalTrigPrimAnalyzer(const edm::ParameterSet &)
EcalTPGScale::Tokens tokens_
edm::InputTag rechits_labelEE_
edm::InputTag rechits_labelEB_