CMS 3D CMS Logo

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 
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,
62  const L1CaloEmCand &cand2);
63 
64  // ----------member data ---------------------------
71 
72  TTree *emTree;
73  // float emRank[8];
74  // float emIeta[8];
75  // float emIphi[8];
76  // float emIso[8];
77  std::vector<int> emRank;
78  std::vector<int> emIeta;
79  std::vector<int> emIphi;
80  std::vector<int> emIso;
81 
82  TH1F *h_emRank;
84  TH1F *h_emIeta;
85  TH1F *h_emIphi;
86  TH1F *h_emIso;
88  // add isolated/non-iso?
92 
93  TH1F *h_regionSum;
94  TH1F *h_regionIeta;
95  TH1F *h_regionIphi;
96  TH1F *h_regionMip;
98  // add bits in ieta/iphi? tau, overflow, mip, quiet, finegrain?
99  // (is fine grain same thing as mip??)
101 
102  TH1F *h_towerMip;
103 
106 };
107 
108 //
109 // constants, enums and typedefs
110 //
111 
112 //
113 // static data member definitions
114 //
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:18
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