Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1TMuon
interface
deprecate
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
18
#include "
FWCore/Framework/interface/ESHandle.h
"
19
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
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
36
class
GeometryTranslator
{
37
public
:
38
GeometryTranslator
();
39
~
GeometryTranslator
();
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
;
50
edm::ESHandle<RPCGeometry>
_georpc
;
51
edm::ESHandle<CSCGeometry>
_geocsc
;
52
edm::ESHandle<DTGeometry>
_geodt
;
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
L1TMuon::GeometryTranslator::_geodt
edm::ESHandle< DTGeometry > _geodt
Definition:
GeometryTranslator.h:52
L1TMuon::GeometryTranslator::_geom_cache_id
unsigned long long _geom_cache_id
Definition:
GeometryTranslator.h:49
L1TMuon
Definition:
CSCCollector.h:15
L1TMuon::GeometryTranslator::_georpc
edm::ESHandle< RPCGeometry > _georpc
Definition:
GeometryTranslator.h:50
CSCGeometry
Definition:
CSCGeometry.h:24
DTGeometry
Definition:
DTGeometry.h:25
RPCGeometry
Definition:
RPCGeometry.h:22
EventSetup
L1TMuon::TriggerPrimitive
Definition:
MuonTriggerPrimitive.h:46
L1TMuon::GeometryTranslator::_geocsc
edm::ESHandle< CSCGeometry > _geocsc
Definition:
GeometryTranslator.h:51
edm::ESHandle< RPCGeometry >
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
CSCLayer
Definition:
CSCLayer.h:24
MuonTriggerPrimitive.h
Point3DBase< float, GlobalTag >
edm
HLT enums.
Definition:
AlignableModifier.h:17
L1TMuon::GeometryTranslator
Definition:
GeometryTranslator.h:36
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.11