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 // $Id: L1RCTTestAnalyzer.h,v 1.15 2012/04/10 13:30:58 ghete Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include <iostream>
24 // user include files
27 
30 
33 
35 
39 
40 #include "TH1F.h"
41 #include "TH2F.h"
42 #include "TTree.h"
43 
44 
45 // // outside of class
46 // bool compareEmCands(const L1CaloEmCand& cand1, const L1CaloEmCand& cand2)
47 // {
48 // return (cand1.rank() < cand2.rank());
49 // }
50 
51 
52 //
53 // class declaration
54 //
55 
57 public:
58  explicit L1RCTTestAnalyzer(const edm::ParameterSet&);
60 
61 
62  virtual void analyze(const edm::Event&, const edm::EventSetup&);
63 private:
64  static bool compareEmCands(const L1CaloEmCand& cand1, const L1CaloEmCand& cand2);
65 
66  // ----------member data ---------------------------
67  std::string m_HepMCProduct;
73 
74  TTree * emTree;
75 // float emRank[8];
76 // float emIeta[8];
77 // float emIphi[8];
78 // float emIso[8];
79  std::vector<int> emRank;
80  std::vector<int> emIeta;
81  std::vector<int> emIphi;
82  std::vector<int> emIso;
83 
84  TH1F * h_emRank;
86  TH1F * h_emIeta;
87  TH1F * h_emIphi;
88  TH1F * h_emIso;
90  // add isolated/non-iso?
94 
95  TH1F * h_regionSum;
96  TH1F * h_regionIeta;
97  TH1F * h_regionIphi;
98  TH1F * h_regionMip;
100  // add bits in ieta/iphi? tau, overflow, mip, quiet, finegrain?
101  // (is fine grain same thing as mip??)
103 
104  TH1F * h_towerMip;
105 
108 
109 };
110 
111 //
112 // constants, enums and typedefs
113 //
114 
115 //
116 // static data member definitions
117 //
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