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"
27 
30 
38 
39 #include <TH1F.h>
40 #include <TH1I.h>
41 #include <TH2F.h>
42 #include <TTree.h>
43 #include <string>
44 #include <vector>
45 
46 //
47 // class declaration
48 //
49 
50 class EcalTrigPrimAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
51 public:
52  explicit EcalTrigPrimAnalyzer(const edm::ParameterSet &);
53  ~EcalTrigPrimAnalyzer() override = default;
54 
55  void analyze(const edm::Event &, const edm::EventSetup &) override;
56 
57 private:
58  // for histos of nr of hits
59  std::vector<std::string> ecal_parts_;
60  TH1I *ecal_et_[2];
61  TH1I *ecal_tt_[2];
62  TH1I *ecal_fgvb_[2];
63  TH1I *histEndc, *histBar;
64  TH2F *hTPvsRechit_;
66  TTree *tree_;
67 
69  float eRec_, tpgGeV_;
70 
71  const bool recHits_;
82 };
const edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpToken_
~EcalTrigPrimAnalyzer() override=default
const edm::InputTag rechits_labelEB_
const edm::InputTag rechits_labelEE_
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_
const edm::EDGetTokenT< EcalRecHitCollection > eeToken_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_
EcalTrigPrimAnalyzer(const edm::ParameterSet &)
EcalTPGScale::Tokens tokens_
const edm::InputTag label_
const edm::EDGetTokenT< EcalRecHitCollection > ebToken_