CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastL1GlobalAlgo.h
Go to the documentation of this file.
1 #ifndef RecoTauTag_FastL1GlobalAlgo_h
2 #define RecoTauTag_FastL1GlobalAlgo_h
3 // -*- C++ -*-
4 //
5 // Package: L1CaloSim
6 // Class: FastL1GlobalAlgo
7 //
15 //
16 // Original Author: Chi Nhan Nguyen
17 // Created: Mon Feb 19 13:25:24 CST 2007
18 // $Id: FastL1GlobalAlgo.h,v 1.20 2009/03/23 11:41:27 chinhan Exp $
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
29 
30 #include <string>
31 #include <iostream>
32 #include <vector>
33 
38 
42 
49 
52 
55 
58 
59 //
60 // constants, enums and typedefs
61 //
62 
63 //
64 // static data member definitions
65 //
66 
67 //
68 // class decleration
69 //
71  public:
72  explicit FastL1GlobalAlgo(const edm::ParameterSet&);
74 
75  void CaloTowersDump(edm::Event const& e);
76 
77  //l1extra::L1EtMissParticle getMET() const { return m_MET; }
85 
86  void FillBitInfos();
87  void InitL1Regions();
88 
89  // ------------ Methods using Towers and RecHits ------------
90  void FillMET(); // old version
91  void FillMET(edm::Event const& e);
92  void FillL1Regions(edm::Event const& e, const edm::EventSetup& c);
93  void FillJets(const edm::EventSetup& e) { findJets(); };
94  void FillEgammas(edm::Event const&);
95 
96  // ------------ Methods using Trigger Primitives------------
97  void FillL1RegionsTP(edm::Event const& e, const edm::EventSetup& c);
98  void FillEgammasTP(edm::Event const&);
99 
100  std::vector<FastL1Region> GetCaloRegions(){return m_Regions;}//KP
101 
102 
103  private:
104  bool isMaxEtRgn_Window33(int rgnid);
105  //int isEMCand(CaloTowerDetId cid, l1extra::L1EmParticle p,const edm::Event& e);
107  bool isTauJet(int rgnid);
108  bool TauIsolation(int rgnid);
109 
110  void findJets();
111  void addJet(int rgnId, bool taubit);
112  void checkMapping();
113  bool greaterEt(const reco::Candidate& a, const reco::Candidate& b);
114 
115  double hcaletValue(const int ieta,const int compET);
116  // ----------member data ---------------------------
117  // output data
118  //l1extra::L1EtMissParticle m_MET;
126 
127  std::vector<FastL1Region> m_Regions;
130 
131  bool m_GctIso;
133 
135  double m_hcaluncomp[33][256];
136 };
137 
138 #endif
l1extra::L1JetParticleCollection m_TauJets
l1extra::L1JetParticleCollection getForJets() const
l1extra::L1JetParticleCollection getCenJets() const
FastL1BitInfoCollection m_BitInfos
FastL1GlobalAlgo(const edm::ParameterSet &)
l1extra::L1EmParticleCollection getEgammas() const
std::vector< L1JetParticle > L1JetParticleCollection
std::vector< FastL1Region > m_Regions
int isEMCand(CaloTowerDetId cid, l1extra::L1EmParticle *p, const edm::Event &e)
std::vector< FastL1BitInfo > FastL1BitInfoCollection
Definition: FastL1BitInfo.h:86
void FillEgammas(edm::Event const &)
l1extra::L1JetParticleCollection m_CenJets
std::vector< FastL1Region > GetCaloRegions()
bool isTauJet(int rgnid)
bool greaterEt(const reco::Candidate &a, const reco::Candidate &b)
void FillEgammasTP(edm::Event const &)
l1extra::L1EtMissParticleCollection getMET() const
void CaloTowersDump(edm::Event const &e)
bool isMaxEtRgn_Window33(int rgnid)
double m_hcaluncomp[33][256]
bool TauIsolation(int rgnid)
FastL1BitInfoCollection getBitInfos()
void FillJets(const edm::EventSetup &e)
l1extra::L1EtMissParticleCollection m_METs
void FillL1RegionsTP(edm::Event const &e, const edm::EventSetup &c)
void FillL1Regions(edm::Event const &e, const edm::EventSetup &c)
double hcaletValue(const int ieta, const int compET)
l1extra::L1EmParticleCollection m_isoEgammas
double b
Definition: hdecay.h:120
l1extra::L1EmParticleCollection m_Egammas
void addJet(int rgnId, bool taubit)
double a
Definition: hdecay.h:121
l1extra::L1JetParticleCollection m_ForJets
l1extra::L1JetParticleCollection getTauJets() const
l1extra::L1EmParticleCollection getisoEgammas() const
std::vector< L1EtMissParticle > L1EtMissParticleCollection
FastL1RegionMap * m_RMap
std::vector< L1EmParticle > L1EmParticleCollection