CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
L1RCTTestAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1RCTTestAnalyzer
4 // Class: L1RCTTestAnalyzer
5 //
14 //
15 // Original Author: pts/47
16 // Created: Thu Jul 13 21:38:08 CEST 2006
17 //
18 //
19 
20 // system include files
21 #include <iostream>
22 #include <memory>
23 // user include files
26 
29 
32 
34 
38 
39 #include "TH1F.h"
40 #include "TH2F.h"
41 #include "TTree.h"
42 
43 // // outside of class
44 // bool compareEmCands(const L1CaloEmCand& cand1, const L1CaloEmCand& cand2)
45 // {
46 // return (cand1.rank() < cand2.rank());
47 // }
48 
49 //
50 // class declaration
51 //
52 
53 class L1RCTTestAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
54 public:
55  explicit L1RCTTestAnalyzer(const edm::ParameterSet &);
56  ~L1RCTTestAnalyzer() override;
57 
58  void analyze(const edm::Event &, const edm::EventSetup &) override;
59 
60 private:
61  static bool compareEmCands(const L1CaloEmCand &cand1, const L1CaloEmCand &cand2);
62 
63  // ----------member data ---------------------------
70 
71  TTree *emTree;
72  // float emRank[8];
73  // float emIeta[8];
74  // float emIphi[8];
75  // float emIso[8];
76  std::vector<int> emRank;
77  std::vector<int> emIeta;
78  std::vector<int> emIphi;
79  std::vector<int> emIso;
80 
81  TH1F *h_emRank;
83  TH1F *h_emIeta;
84  TH1F *h_emIphi;
85  TH1F *h_emIso;
87  // add isolated/non-iso?
91 
92  TH1F *h_regionSum;
93  TH1F *h_regionIeta;
94  TH1F *h_regionIphi;
95  TH1F *h_regionMip;
97  // add bits in ieta/iphi? tau, overflow, mip, quiet, finegrain?
98  // (is fine grain same thing as mip??)
100 
101  TH1F *h_towerMip;
102 
105 };
106 
107 //
108 // constants, enums and typedefs
109 //
110 
111 //
112 // static data member definitions
113 //
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< int > emIeta
static bool compareEmCands(const L1CaloEmCand &cand1, const L1CaloEmCand &cand2)
Level-1 Region Calorimeter Trigger EM candidate.
Definition: L1CaloEmCand.h:17
std::string m_HepMCProduct
~L1RCTTestAnalyzer() override
std::vector< int > emRank
edm::InputTag rctDigisLabel
L1RCTTestAnalyzer(const edm::ParameterSet &)
edm::InputTag hcalDigisLabel
edm::InputTag ecalDigisLabel
std::vector< int > emIso
std::vector< int > emIphi