CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AngleConverter.h
Go to the documentation of this file.
1 #ifndef ANGLECONVERTER_H
2 #define ANGLECONVERTER_H
3 
6 
8 
9 #include <memory>
10 
11 namespace edm {
12  class EventSetup;
13 }
14 
15 class RPCGeometry;
16 class CSCGeometry;
17 class CSCLayer;
18 class DTGeometry;
19 
20 class L1MuDTChambPhDigi;
23 class RPCDigi;
24 class CSCDetId;
25 class RPCDetId;
26 
28  public:
31 
34 
37  int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const L1MuDTChambPhDigi &digi) const;
38  int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const CSCDetId & csc, const CSCCorrelatedLCTDigi &digi) const;
39  int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const RPCDetId & rollId, const unsigned int &digi) const;
40 
42  int getGlobalEta(unsigned int rawid, const L1MuDTChambPhDigi &aDigi,
43  const L1MuDTChambThContainer *dtThDigis);
44 
46  int getGlobalEta(unsigned int rawid, const CSCCorrelatedLCTDigi &aDigi);
47 
49  int getGlobalEta(unsigned int rawid, const unsigned int &aDigi);
50 
51  private:
52 
54  bool isCSCCounterClockwise(const std::unique_ptr<const CSCLayer>& layer) const;
55 
56 
58  const int findBTIgroup(const L1MuDTChambPhDigi &aDigi,
59  const L1MuDTChambThContainer *dtThDigis);
60 
61  // pointers to the current geometry records
62  unsigned long long _geom_cache_id;
66 
67 
68  };
69 
70 #endif
int getGlobalEta(unsigned int rawid, const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis)
Convert local eta coordinate to global digital microGMT scale.
unsigned long long _geom_cache_id
int getProcessorPhi(unsigned int iProcessor, l1t::tftype part, const L1MuDTChambPhDigi &digi) const
const int findBTIgroup(const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis)
Find BTI group.
bool isCSCCounterClockwise(const std::unique_ptr< const CSCLayer > &layer) const
Check orientation of strips in given CSC chamber.
part
Definition: HCALResponse.h:20
edm::ESHandle< CSCGeometry > _geocsc
edm::ESHandle< RPCGeometry > _georpc
void checkAndUpdateGeometry(const edm::EventSetup &)
Update the Geometry with current Event Setup.
edm::ESHandle< DTGeometry > _geodt