CMS 3D CMS Logo

EcalEBTrigPrimAnalyzer.h
Go to the documentation of this file.
15 
17 #include <vector>
18 #include <string>
19 #include <TH1I.h>
20 #include <TFile.h>
21 #include <TTree.h>
22 #include <TH2F.h>
23 #include <TH1F.h>
24 
25 //
26 // class declaration
27 //
28 
30 public:
31  explicit EcalEBTrigPrimAnalyzer(const edm::ParameterSet &);
32  ~EcalEBTrigPrimAnalyzer() override;
33 
34  void analyze(const edm::Event &, const edm::EventSetup &) override;
35  void endJob() override;
36 
37 private:
38  int nEvents_;
39  void init(const edm::EventSetup &);
40 
41  // for histos of nr of hits
42  std::vector<std::string> ecal_parts_;
43  TH1I *ecal_et_[2];
44  TH1I *ecal_tt_[2];
45  TH1I *ecal_fgvb_[2];
46  TH1I *histEndc, *histBar;
47  TFile *histfile_;
49  TH1F *hTPperEvt_;
50  TH2F *hTPvsRechit_;
52  TH1F *hDeltaEt_;
54  TH1F *hRechitEt_;
55  TH1F *hTPEt_;
56  TH1F *hRatioEt_;
63 
64  TTree *tree_;
65 
68  float eRec_, tpgGeV_;
69 
70  //edm::InputTag label_;
74  bool recHits_;
75  bool debug_;
80 
81  int getIndex(const EBDigiCollection *, EcalTrigTowerDetId &id) { return id.hashedIndex(); }
82 };
edm::EDGetTokenT< EcalRecHitCollection > rechits_labelEB_
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > barrelGeomToken_
EcalTPGScale::Tokens tokens_
edm::EDGetTokenT< EBDigiCollection > tokenEBdigi_
EcalEBTrigPrimAnalyzer(const edm::ParameterSet &)
int getIndex(const EBDigiCollection *, EcalTrigTowerDetId &id)
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_
std::vector< std::string > ecal_parts_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
edm::EDGetTokenT< EcalEBTrigPrimDigiCollection > primToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
void init(const edm::EventSetup &)