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 #include <memory>
7 
8 namespace edm {
9  class EventSetup;
10 }
11 
12 class RPCGeometry;
13 class CSCGeometry;
14 class CSCLayer;
15 class DTGeometry;
16 
17 class L1MuDTChambPhDigi;
20 class RPCDigi;
21 
23  public:
26 
29 
31  int getGlobalPhi(unsigned int rawid, const L1MuDTChambPhDigi &aDigi);
32 
34  int getGlobalPhi(unsigned int rawid, const CSCCorrelatedLCTDigi &aDigi);
35 
39  float getGlobalPhi(unsigned int rawid, const RPCDigi &aDigi);
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 RPCDigi &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 getGlobalPhi(unsigned int rawid, const L1MuDTChambPhDigi &aDigi)
Convert local phi coordinate to global digital OMTF scale.
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
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.
edm::ESHandle< CSCGeometry > _geocsc
edm::ESHandle< RPCGeometry > _georpc
void checkAndUpdateGeometry(const edm::EventSetup &)
Update the Geometry with current Event Setup.
edm::ESHandle< DTGeometry > _geodt