CMS 3D CMS Logo

AngleConverter.h
Go to the documentation of this file.
1 #ifndef ANGLECONVERTER_H
2 #define ANGLECONVERTER_H
3 
7 
9 
14 
15 #include <memory>
16 
17 class CSCLayer;
18 
19 class L1MuDTChambPhDigi;
22 class RPCDigi;
23 class CSCDetId;
24 class RPCDetId;
25 
27 public:
28  AngleConverter(edm::ConsumesCollector &, bool getDuringEvent = true);
30 
32  void checkAndUpdateGeometry(const edm::EventSetup &, unsigned int);
33 
36  int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const L1MuDTChambPhDigi &digi) const;
37  int getProcessorPhi(unsigned int iProcessor,
39  const CSCDetId &csc,
40  const CSCCorrelatedLCTDigi &digi) const;
41  int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const RPCDetId &rollId, const unsigned int &digi) const;
42  int getProcessorPhi(unsigned int iProcessor,
44  const RPCDetId &rollId,
45  const unsigned int &digi1,
46  const unsigned int &digi2) const;
47 
49  int getGlobalEta(unsigned int rawid, const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis);
50 
52  int getGlobalEta(unsigned int rawid, const CSCCorrelatedLCTDigi &aDigi);
53 
55  int getGlobalEta(unsigned int rawid, const unsigned int &aDigi);
56 
57 private:
59  bool isCSCCounterClockwise(const std::unique_ptr<const CSCLayer> &layer) const;
60 
62  const int findBTIgroup(const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis);
63 
67 
68  // pointers to the current geometry records
69  unsigned long long _geom_cache_id;
73 
75  unsigned int nPhiBins;
76 };
77 
78 #endif
DTGeometry
Definition: DTGeometry.h:28
AngleConverter::isCSCCounterClockwise
bool isCSCCounterClockwise(const std::unique_ptr< const CSCLayer > &layer) const
Check orientation of strips in given CSC chamber.
Definition: AngleConverter.cc:510
l1t::tftype
tftype
Definition: RegionalMuonCandFwd.h:8
AngleConverter::getGlobalEta
int getGlobalEta(unsigned int rawid, const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis)
Convert local eta coordinate to global digital microGMT scale.
Definition: AngleConverter.cc:364
AngleConverter::nPhiBins
unsigned int nPhiBins
Number of phi bins along 2Pi.
Definition: AngleConverter.h:75
AngleConverter::AngleConverter
AngleConverter(edm::ConsumesCollector &, bool getDuringEvent=true)
Definition: AngleConverter.cc:151
AngleConverter::dtGeometryToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeometryToken_
Definition: AngleConverter.h:66
RPCDetId
Definition: RPCDetId.h:16
AngleConverter::_geocsc
const CSCGeometry * _geocsc
Definition: AngleConverter.h:71
AngleConverter::cscGeometryToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeometryToken_
Definition: AngleConverter.h:65
CSCLayer
Definition: CSCLayer.h:24
ESGetToken.h
AngleConverter::rpcGeometryToken_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeometryToken_
Definition: AngleConverter.h:64
CSCGeometry
Definition: CSCGeometry.h:24
AngleConverter::_georpc
const RPCGeometry * _georpc
Definition: AngleConverter.h:70
csc
Definition: L1Track.h:19
part
part
Definition: HCALResponse.h:20
AngleConverter::checkAndUpdateGeometry
void checkAndUpdateGeometry(const edm::EventSetup &, unsigned int)
Update the Geometry with current Event Setup.
Definition: AngleConverter.cc:167
DTGeometry.h
AngleConverter
Definition: AngleConverter.h:26
FrameworkfwdMostUsed.h
CSCDetId
Definition: CSCDetId.h:26
AngleConverter::findBTIgroup
const int findBTIgroup(const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis)
Find BTI group.
Definition: AngleConverter.cc:518
edm::EventSetup
Definition: EventSetup.h:57
edm::ESGetToken< RPCGeometry, MuonGeometryRecord >
RPCDigi
Definition: RPCDigi.h:19
AngleConverter::_geom_cache_id
unsigned long long _geom_cache_id
Definition: AngleConverter.h:69
AngleConverter::~AngleConverter
~AngleConverter()
Definition: AngleConverter.cc:164
AngleConverter::getProcessorPhi
int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const L1MuDTChambPhDigi &digi) const
Definition: AngleConverter.cc:181
RPCGeometry
Definition: RPCGeometry.h:20
RegionalMuonCandFwd.h
MuonGeometryRecord.h
L1MuDTChambThContainer
Definition: L1MuDTChambThContainer.h:33
AngleConverter::_geodt
const DTGeometry * _geodt
Definition: AngleConverter.h:72
GlobalPoint.h
RPCGeometry.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
CSCCorrelatedLCTDigi
Definition: CSCCorrelatedLCTDigi.h:19
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
CSCGeometry.h