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"
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 };
EcalTrigPrimAnalyzer
Definition: EcalTrigPrimAnalyzer.h:45
EDAnalyzer.h
EcalTrigPrimAnalyzer::ecal_fgvb_
TH1I * ecal_fgvb_[2]
Definition: EcalTrigPrimAnalyzer.h:58
EcalTrigPrimAnalyzer::ieta_
int ieta_
Definition: EcalTrigPrimAnalyzer.h:65
EcalTrigPrimAnalyzer::barrelGeomToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > barrelGeomToken_
Definition: EcalTrigPrimAnalyzer.h:74
EcalTrigPrimAnalyzer::hTPvsRechit_
TH2F * hTPvsRechit_
Definition: EcalTrigPrimAnalyzer.h:61
EcalTrigPrimAnalyzer::endcapGeomToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > endcapGeomToken_
Definition: EcalTrigPrimAnalyzer.h:73
EcalTPGScale::Tokens
Definition: EcalTPGScale.h:18
EcalTrigPrimAnalyzer::histfile_
TFile * histfile_
Definition: EcalTrigPrimAnalyzer.h:60
EcalTrigPrimAnalyzer::ecal_et_
TH1I * ecal_et_[2]
Definition: EcalTrigPrimAnalyzer.h:56
EcalTrigPrimAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: EcalTrigPrimAnalyzer.cc:98
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
EcalTrigPrimAnalyzer::endJob
void endJob() override
Definition: EcalTrigPrimAnalyzer.cc:222
EcalTrigPrimAnalyzer::ttf_
int ttf_
Definition: EcalTrigPrimAnalyzer.h:65
ESGetToken.h
EcalTrigPrimAnalyzer::ecal_parts_
std::vector< std::string > ecal_parts_
Definition: EcalTrigPrimAnalyzer.h:55
EcalTrigPrimAnalyzer::geomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: EcalTrigPrimAnalyzer.h:72
MakerMacros.h
EcalTrigPrimAnalyzer::~EcalTrigPrimAnalyzer
~EcalTrigPrimAnalyzer() override
Definition: EcalTrigPrimAnalyzer.cc:85
EcalTrigPrimAnalyzer::rechits_labelEB_
edm::InputTag rechits_labelEB_
Definition: EcalTrigPrimAnalyzer.h:70
EcalBarrelGeometryRecord.h
CaloGeometryRecord.h
EcalTrigPrimAnalyzer::label_
edm::InputTag label_
Definition: EcalTrigPrimAnalyzer.h:68
CaloSubdetectorGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:47
EcalTrigPrimAnalyzer::tpgADC_
int tpgADC_
Definition: EcalTrigPrimAnalyzer.h:65
Event.h
EcalTrigPrimAnalyzer::tree_
TTree * tree_
Definition: EcalTrigPrimAnalyzer.h:63
IdealGeometryRecord.h
edm::EventSetup
Definition: EventSetup.h:57
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
InputTag.h
EcalTrigPrimAnalyzer::eTTmapToken_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_
Definition: EcalTrigPrimAnalyzer.h:75
EcalTrigPrimAnalyzer::tpgGeV_
float tpgGeV_
Definition: EcalTrigPrimAnalyzer.h:66
EcalTrigPrimAnalyzer::recHits_
bool recHits_
Definition: EcalTrigPrimAnalyzer.h:78
EcalTrigTowerConstituentsMap.h
EcalTrigPrimAnalyzer::histBar
TH1I * histBar
Definition: EcalTrigPrimAnalyzer.h:59
EcalTrigPrimAnalyzer::ecal_tt_
TH1I * ecal_tt_[2]
Definition: EcalTrigPrimAnalyzer.h:57
EcalTrigPrimAnalyzer::hTPoverRechit_
TH1F * hTPoverRechit_
Definition: EcalTrigPrimAnalyzer.h:62
EcalTrigPrimAnalyzer::rechits_labelEE_
edm::InputTag rechits_labelEE_
Definition: EcalTrigPrimAnalyzer.h:71
EcalTrigPrimAnalyzer::fg_
int fg_
Definition: EcalTrigPrimAnalyzer.h:65
CaloGeometry.h
EcalTrigPrimAnalyzer::iphi_
int iphi_
Definition: EcalTrigPrimAnalyzer.h:65
EcalTrigPrimAnalyzer::EcalTrigPrimAnalyzer
EcalTrigPrimAnalyzer(const edm::ParameterSet &)
Definition: EcalTrigPrimAnalyzer.cc:46
EcalEndcapGeometryRecord.h
EcalTrigPrimAnalyzer::tokens_
EcalTPGScale::Tokens tokens_
Definition: EcalTrigPrimAnalyzer.h:76
ParameterSet.h
EcalTrigPrimAnalyzer::eRec_
float eRec_
Definition: EcalTrigPrimAnalyzer.h:66
edm::Event
Definition: Event.h:73
EcalTrigPrimAnalyzer::histEndc
TH1I * histEndc
Definition: EcalTrigPrimAnalyzer.h:59
edm::InputTag
Definition: InputTag.h:15
EcalTPGScale.h