CMS 3D CMS Logo

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