test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCSectorReceiverLUT.h
Go to the documentation of this file.
1 #ifndef L1Trigger_CSCSectorReceiverLUT_h
2 #define L1Trigger_CSCSectorReceiverLUT_h
3 
15 
16 class CSCLayer;
17 
19 {
20  public:
21 
22  CSCSectorReceiverLUT(int endcap, int sector, int subsector, int station, const edm::ParameterSet &pset, bool TMB07);
25 
27 
29 
32  lclphidat localPhi(int strip, int pattern, int quality, int lr, const bool gangedME1a = false ) const;
33  lclphidat localPhi(unsigned address, const bool gangedME1a = false ) const;
34  lclphidat localPhi(lclphiadd address, const bool gangedME1a = false ) const;
35 
36  gblphidat globalPhiME(int phi_local, int wire_group, int cscid, const bool gangedME1a = false) const;
37  gblphidat globalPhiME(unsigned address, const bool gangedME1a = false) const;
38  gblphidat globalPhiME(gblphiadd address, const bool gangedME1a = false ) const;
39 
40  gblphidat globalPhiMB(int phi_local,int wire_group, int cscid, const bool gangedME1a = false) const;
41  gblphidat globalPhiMB(unsigned address, const bool gangedME1a = false) const;
42  gblphidat globalPhiMB(gblphiadd address, const bool gangedME1a = false) const;
43 
44  gbletadat globalEtaME(int phi_bend, int phi_local, int wire_group, int cscid, const bool gangedME1a = false) const;
45  gbletadat globalEtaME(unsigned address, const bool gangedME1a = false) const;
46  gbletadat globalEtaME(gbletaadd address, const bool gangedME1a = false) const;
47 
50 
51  private:
53 
55  lclphidat calcLocalPhi(const lclphiadd& address) const;
56 
58  gblphidat calcGlobalPhiME(const gblphiadd& address) const;
59  gblphidat calcGlobalPhiMB(const gblphidat& me_gphi_data) const;
60  double getGlobalPhiValue(const CSCLayer* thelayer, const unsigned& strip, const unsigned& wire_group) const;
61 
63  gbletadat calcGlobalEtaME(const gbletaadd& address) const;
64  double getGlobalEtaValue(const unsigned& cscid, const unsigned& wire_group, const unsigned& phi_local) const;
65 
66  void fillLocalPhiLUT();
67 
72  bool LUTsFromFile; // readLUTs from file or generate on the fly
73  bool useMiniLUTs; // if useMiniLUTs is set to true, the code will generate LUTs using the CSCSectorReceiverMiniLUTs class -- BJ
74  bool isBinary; // if readLUTs is set to true, are the LUT files binary or ascii format
75 
76  bool isTMB07; // use the TMB 2007 patterns or the older set of parameters
77 
80  void readLUTsFromFile();
81 
82  static bool me_lcl_phi_loaded;
86 };
87 
88 #endif
lclphidat localPhi(int strip, int pattern, int quality, int lr, const bool gangedME1a=false) const
Geometry Lookup Tables.
gbletadat calcGlobalEtaME(const gbletaadd &address) const
Global Eta LUT.
std::string encodeFileIndex() const
Helpers.
class global_phi_address gblphiadd
edm::FileInPath mb_gbl_phi_file
CSCSectorReceiverLUT & operator=(const CSCSectorReceiverLUT &)
double getGlobalPhiValue(const CSCLayer *thelayer, const unsigned &strip, const unsigned &wire_group) const
gblphidat globalPhiME(int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
double getGlobalEtaValue(const unsigned &cscid, const unsigned &wire_group, const unsigned &phi_local) const
edm::FileInPath me_gbl_phi_file
edm::FileInPath me_lcl_phi_file
CSCSectorReceiverLUT(int endcap, int sector, int subsector, int station, const edm::ParameterSet &pset, bool TMB07)
gblphidat globalPhiMB(int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
edm::FileInPath me_gbl_eta_file
static lclphidat * me_lcl_phi
class global_phi_data gblphidat
class local_phi_address lclphiadd
class local_phi_data lclphidat
Data Types.
gbletadat globalEtaME(int phi_bend, int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
gblphidat calcGlobalPhiME(const gblphiadd &address) const
Global Phi LUT.
class global_eta_address gbletaadd
lclphidat calcLocalPhi(const lclphiadd &address) const
Local Phi LUT.
class global_eta_data gbletadat
gblphidat calcGlobalPhiMB(const gblphidat &me_gphi_data) const