CMS 3D CMS Logo

CSCSectorReceiverLUT.h
Go to the documentation of this file.
1 #ifndef L1Trigger_CSCSectorReceiverLUT_h
2 #define L1Trigger_CSCSectorReceiverLUT_h
3 
16 
17 class CSCLayer;
18 
20 public:
21  CSCSectorReceiverLUT(int endcap, int sector, int subsector, int station, const edm::ParameterSet& pset, bool TMB07);
24 
26 
28 
31  lclphidat localPhi(int strip, int pattern, int quality, int lr, const bool gangedME1a = false) const;
32  lclphidat localPhi(unsigned address, const bool gangedME1a = false) const;
33  lclphidat localPhi(lclphiadd address, const bool gangedME1a = false) const;
34 
35  gblphidat globalPhiME(int phi_local, int wire_group, int cscid, const bool gangedME1a = false) const;
36  gblphidat globalPhiME(unsigned address, const bool gangedME1a = false) const;
37  gblphidat globalPhiME(gblphiadd address, const bool gangedME1a = false) const;
38 
39  gblphidat globalPhiMB(int phi_local, int wire_group, int cscid, const bool gangedME1a = false) const;
40  gblphidat globalPhiMB(unsigned address, const bool gangedME1a = false) const;
41  gblphidat globalPhiMB(gblphiadd address, const bool gangedME1a = false) const;
42 
43  gbletadat globalEtaME(int phi_bend, int phi_local, int wire_group, int cscid, const bool gangedME1a = false) const;
44  gbletadat globalEtaME(unsigned address, const bool gangedME1a = false) const;
45  gbletadat globalEtaME(gbletaadd address, const bool gangedME1a = false) const;
46 
49 
50  void setCSCGeometry(const CSCGeometry* g) { csc_g = g; }
51 
52 private:
54 
56  lclphidat calcLocalPhi(const lclphiadd& address) const;
57 
59  gblphidat calcGlobalPhiME(const gblphiadd& address) const;
60  gblphidat calcGlobalPhiMB(const gblphidat& me_gphi_data) const;
61  double getGlobalPhiValue(const CSCLayer* thelayer, const unsigned& strip, const unsigned& wire_group) const;
62 
64  gbletadat calcGlobalEtaME(const gbletaadd& address) const;
65  double getGlobalEtaValue(const unsigned& cscid, const unsigned& wire_group, const unsigned& phi_local) const;
66 
67  void fillLocalPhiLUT();
68 
73  bool LUTsFromFile; // readLUTs from file or generate on the fly
74  bool useMiniLUTs; // if useMiniLUTs is set to true, the code will generate LUTs using the CSCSectorReceiverMiniLUTs class -- BJ
75  bool isBinary; // if readLUTs is set to true, are the LUT files binary or ascii format
76 
77  bool isTMB07; // use the TMB 2007 patterns or the older set of parameters
78 
81  void readLUTsFromFile();
82 
83  static bool me_lcl_phi_loaded;
87 
89 };
90 
91 #endif
CSCSectorReceiverLUT
Definition: CSCSectorReceiverLUT.h:19
CSCSectorReceiverLUT::localPhi
lclphidat localPhi(int strip, int pattern, int quality, int lr, const bool gangedME1a=false) const
Geometry Lookup Tables.
Definition: CSCSectorReceiverLUT.cc:180
CSCTrackFinderDataTypes.h
CSCSectorReceiverLUT::calcGlobalEtaME
gbletadat calcGlobalEtaME(const gbletaadd &address) const
Global Eta LUT.
Definition: CSCSectorReceiverLUT.cc:655
lclphidat
class local_phi_data lclphidat
Data Types.
relativeConstraints.station
station
Definition: relativeConstraints.py:67
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
gbletaadd
class global_eta_address gbletaadd
CSCSectorReceiverLUT::me_global_phi
gblphidat * me_global_phi
Definition: CSCSectorReceiverLUT.h:85
CSCSectorReceiverLUT::~CSCSectorReceiverLUT
~CSCSectorReceiverLUT()
Definition: CSCSectorReceiverLUT.cc:118
CSCSectorReceiverLUT::operator=
CSCSectorReceiverLUT & operator=(const CSCSectorReceiverLUT &)
Definition: CSCSectorReceiverLUT.cc:84
CSCLayer
Definition: CSCLayer.h:24
CSCSectorReceiverLUT::mb_global_phi
gblphidat * mb_global_phi
Definition: CSCSectorReceiverLUT.h:85
CSCSectorReceiverLUT::encodeFileIndex
std::string encodeFileIndex() const
Helpers.
Definition: CSCSectorReceiverLUT.cc:752
CSCSectorReceiverLUT::me_lcl_phi_file
edm::FileInPath me_lcl_phi_file
Definition: CSCSectorReceiverLUT.h:69
CSCSectorReceiverLUT::readLUTsFromFile
void readLUTsFromFile()
Definition: CSCSectorReceiverLUT.cc:787
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
CSCSectorReceiverLUT::csc_g
const CSCGeometry * csc_g
Definition: CSCSectorReceiverLUT.h:88
FileInPath.h
CSCGeometry
Definition: CSCGeometry.h:24
CSCSectorReceiverLUT::_sector
int _sector
Definition: CSCSectorReceiverLUT.h:53
edm::FileInPath
Definition: FileInPath.h:64
CSCSectorReceiverLUT::globalPhiME
gblphidat globalPhiME(int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
Definition: CSCSectorReceiverLUT.cc:445
CSCSectorReceiverLUT::setCSCGeometry
void setCSCGeometry(const CSCGeometry *g)
Definition: CSCSectorReceiverLUT.h:50
CSCSectorReceiverLUT::me_gbl_eta_file
edm::FileInPath me_gbl_eta_file
Definition: CSCSectorReceiverLUT.h:72
CSCSectorReceiverLUT::isTMB07
bool isTMB07
Definition: CSCSectorReceiverLUT.h:77
CSCSectorReceiverLUT::_endcap
int _endcap
Definition: CSCSectorReceiverLUT.h:53
CSCSectorReceiverLUT::mb_gbl_phi_file
edm::FileInPath mb_gbl_phi_file
Definition: CSCSectorReceiverLUT.h:71
CSCSectorReceiverLUT::LUTsFromFile
bool LUTsFromFile
Definition: CSCSectorReceiverLUT.h:73
CSCSectorReceiverLUT::getGlobalPhiValue
double getGlobalPhiValue(const CSCLayer *thelayer, const unsigned &strip, const unsigned &wire_group) const
Definition: CSCSectorReceiverLUT.cc:221
CSCSectorReceiverLUT::isBinary
bool isBinary
Definition: CSCSectorReceiverLUT.h:75
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCSectorReceiverLUT::me_gbl_phi_file
edm::FileInPath me_gbl_phi_file
Definition: CSCSectorReceiverLUT.h:70
CSCSectorReceiverLUT::globalPhiMB
gblphidat globalPhiMB(int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
Definition: CSCSectorReceiverLUT.cc:516
CSCSectorReceiverLUT::me_global_eta
gbletadat * me_global_eta
Definition: CSCSectorReceiverLUT.h:86
l1temulator_dqm_sourceclient-live_cfg.gangedME1a
gangedME1a
Definition: l1temulator_dqm_sourceclient-live_cfg.py:94
CSCSectorReceiverLUT::CSCSectorReceiverLUT
CSCSectorReceiverLUT(int endcap, int sector, int subsector, int station, const edm::ParameterSet &pset, bool TMB07)
Definition: CSCSectorReceiverLUT.cc:24
CSCSectorReceiverLUT::calcLocalPhi
lclphidat calcLocalPhi(const lclphiadd &address) const
Local Phi LUT.
Definition: CSCSectorReceiverLUT.cc:138
edm::ParameterSet
Definition: ParameterSet.h:36
CSCSectorReceiverLUT::_station
int _station
Definition: CSCSectorReceiverLUT.h:53
CSCSectorReceiverLUT::getGlobalEtaValue
double getGlobalEtaValue(const unsigned &cscid, const unsigned &wire_group, const unsigned &phi_local) const
Definition: CSCSectorReceiverLUT.cc:562
CSCSectorReceiverLUT::calcGlobalPhiME
gblphidat calcGlobalPhiME(const gblphiadd &address) const
Global Phi LUT.
Definition: CSCSectorReceiverLUT.cc:244
gblphiadd
class global_phi_address gblphiadd
CSCSectorReceiverLUT::calcGlobalPhiMB
gblphidat calcGlobalPhiMB(const gblphidat &me_gphi_data) const
Definition: CSCSectorReceiverLUT.cc:490
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition: topSingleLeptonDQM_PU_cfi.py:39
lclphiadd
class local_phi_address lclphiadd
gbletadat
class global_eta_data gbletadat
CSCSectorReceiverLUT::fillLocalPhiLUT
void fillLocalPhiLUT()
Definition: CSCSectorReceiverLUT.cc:176
CSCSectorReceiverLUT::me_lcl_phi_loaded
static bool me_lcl_phi_loaded
Definition: CSCSectorReceiverLUT.h:83
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
CSCSectorReceiverLUT::useMiniLUTs
bool useMiniLUTs
Definition: CSCSectorReceiverLUT.h:74
CSCSectorReceiverLUT::globalEtaME
gbletadat globalEtaME(int phi_bend, int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
Definition: CSCSectorReceiverLUT.cc:706
gblphidat
class global_phi_data gblphidat
ParameterSet.h
CSCSectorReceiverLUT::_subsector
int _subsector
Definition: CSCSectorReceiverLUT.h:53
CSCSectorReceiverLUT::me_lcl_phi
static lclphidat * me_lcl_phi
Definition: CSCSectorReceiverLUT.h:84
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
CSCGeometry.h