CMS 3D CMS Logo

GeometryTranslator.h
Go to the documentation of this file.
1 #ifndef __L1TMUON_GEOMETRYTRANSLATOR_H__
2 #define __L1TMUON_GEOMETRYTRANSLATOR_H__
3 //
4 // Class: L1TMuon::GeometryTranslator
5 //
6 // Info: This class implements a the translations from packed bits or
7 // digi information into local or global CMS coordinates for all
8 // types of L1 trigger primitives that we want to consider for
9 // use in the integrated muon trigger.
10 //
11 // Note: This should be considered as a base class to some sort of global
12 // look-up table
13 //
14 // Author: L. Gray (FNAL)
15 // Some pieces of code lifted from: Matt Carver & Bobby Scurlock (UF)
16 //
17 
20 #include <memory>
21 
22 #include "MuonTriggerPrimitive.h"
23 
24 // forwards
25 namespace edm {
26  class EventSetup;
27 }
28 
29 class RPCGeometry;
30 class CSCGeometry;
31 class CSCLayer;
32 class DTGeometry;
33 
34 namespace L1TMuon{
35 
37  public:
40 
41  double calculateGlobalEta(const TriggerPrimitive&) const;
42  double calculateGlobalPhi(const TriggerPrimitive&) const;
43  double calculateBendAngle(const TriggerPrimitive&) const;
44 
45  void checkAndUpdateGeometry(const edm::EventSetup&);
46 
47  private:
48  // pointers to the current geometry records
49  unsigned long long _geom_cache_id;
53 
54  GlobalPoint getRPCSpecificPoint(const TriggerPrimitive&) const;
55  double calcRPCSpecificEta(const TriggerPrimitive&) const;
56  double calcRPCSpecificPhi(const TriggerPrimitive&) const;
57  double calcRPCSpecificBend(const TriggerPrimitive&) const;
58 
59  GlobalPoint getCSCSpecificPoint(const TriggerPrimitive&) const;
60  double calcCSCSpecificEta(const TriggerPrimitive&) const;
61  double calcCSCSpecificPhi(const TriggerPrimitive&) const;
62  double calcCSCSpecificBend(const TriggerPrimitive&) const;
63  bool isCSCCounterClockwise(const std::unique_ptr<const CSCLayer>&) const;
64 
65  GlobalPoint calcDTSpecificPoint(const TriggerPrimitive&) const;
66  double calcDTSpecificEta(const TriggerPrimitive&) const;
67  double calcDTSpecificPhi(const TriggerPrimitive&) const;
68  double calcDTSpecificBend(const TriggerPrimitive&) const;
69  };
70 }
71 
72 #endif
edm::ESHandle< DTGeometry > _geodt
unsigned long long _geom_cache_id
edm::ESHandle< RPCGeometry > _georpc
edm::ESHandle< CSCGeometry > _geocsc
HLT enums.