test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
46 
47  private:
48  // pointers to the current geometry records
49  unsigned long long _geom_cache_id;
53 
55  double calcRPCSpecificEta(const TriggerPrimitive&) const;
56  double calcRPCSpecificPhi(const TriggerPrimitive&) const;
57  double calcRPCSpecificBend(const TriggerPrimitive&) const;
58 
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 
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
double calcRPCSpecificBend(const TriggerPrimitive &) const
double calcDTSpecificEta(const TriggerPrimitive &) const
edm::ESHandle< RPCGeometry > _georpc
GlobalPoint getRPCSpecificPoint(const TriggerPrimitive &) const
GlobalPoint getCSCSpecificPoint(const TriggerPrimitive &) const
double calcRPCSpecificPhi(const TriggerPrimitive &) const
double calculateBendAngle(const TriggerPrimitive &) const
void checkAndUpdateGeometry(const edm::EventSetup &)
edm::ESHandle< CSCGeometry > _geocsc
double calcCSCSpecificPhi(const TriggerPrimitive &) const
double calculateGlobalPhi(const TriggerPrimitive &) const
double calcDTSpecificBend(const TriggerPrimitive &) const
double calcCSCSpecificEta(const TriggerPrimitive &) const
GlobalPoint calcDTSpecificPoint(const TriggerPrimitive &) const
double calcDTSpecificPhi(const TriggerPrimitive &) const
double calculateGlobalEta(const TriggerPrimitive &) const
bool isCSCCounterClockwise(const std::unique_ptr< const CSCLayer > &) const
double calcRPCSpecificEta(const TriggerPrimitive &) const
double calcCSCSpecificBend(const TriggerPrimitive &) const