Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1THGCal
interface
HGCalTriggerTools.h
Go to the documentation of this file.
1
#ifndef __L1Trigger_L1THGCal_HGCalTriggerTools_h__
2
#define __L1Trigger_L1THGCal_HGCalTriggerTools_h__
3
16
#include <array>
17
#include <cmath>
18
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
19
#include "
DataFormats/ForwardDetId/interface/ForwardSubdetector.h
"
20
21
class
HGCalTriggerGeometryBase
;
22
class
DetId
;
23
24
25
namespace
edm
{
26
class
Event
;
27
class
EventSetup
;
28
}
29
30
class
HGCalTriggerTools
{
31
public
:
32
HGCalTriggerTools
() : geom_(
nullptr
),
33
eeLayers_(0), fhLayers_(0), bhLayers_(0), totalLayers_(0){}
34
~HGCalTriggerTools
() {}
35
36
void
eventSetup(
const
edm::EventSetup
&);
37
GlobalPoint
getTCPosition(
const
DetId
&
id
)
const
;
38
unsigned
layers
(
ForwardSubdetector
type
)
const
;
39
unsigned
layer(
const
DetId
&)
const
;
40
unsigned
layerWithOffset(
const
DetId
&)
const
;
41
42
unsigned
lastLayerEE
()
const
{
return
eeLayers_;}
43
unsigned
lastLayerFH
()
const
{
return
eeLayers_+fhLayers_;}
44
unsigned
lastLayerBH
()
const
{
return
totalLayers_;}
45
46
// 4-vector helper functions using GlobalPoint
47
float
getEta(
const
GlobalPoint
&
position
,
const
float
& vertex_z = 0.)
const
;
48
float
getPhi(
const
GlobalPoint
& position)
const
;
49
float
getPt(
const
GlobalPoint
& position,
const
float
& hitEnergy,
const
float
& vertex_z = 0.)
const
;
50
51
// 4-vector helper functions using DetId
52
float
getTCEta(
const
DetId
&
id
,
const
float
& vertex_z = 0.)
const
;
53
float
getTCPhi(
const
DetId
&
id
)
const
;
54
float
getTCPt(
const
DetId
&
id
,
const
float
& hitEnergy,
const
float
& vertex_z = 0.)
const
;
55
56
inline
const
HGCalTriggerGeometryBase
*
getTriggerGeometry
()
const
{
return
geom_;};
57
58
float
getLayerZ(
const
unsigned
& layerWithOffset)
const
;
59
float
getLayerZ(
const
int
& subdet,
const
unsigned
& layer)
const
;
60
61
62
63
private
:
64
const
HGCalTriggerGeometryBase
*
geom_
;
65
unsigned
eeLayers_
;
66
unsigned
fhLayers_
;
67
unsigned
bhLayers_
;
68
unsigned
totalLayers_
;
69
};
70
71
72
#endif
HGCalTriggerGeometryBase
Definition:
HGCalTriggerGeometryBase.h:22
type
type
Definition:
HCALResponse.h:21
LayerTriplets::layers
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition:
LayerTriplets.cc:4
HGCalTriggerTools::lastLayerEE
unsigned lastLayerEE() const
Definition:
HGCalTriggerTools.h:42
HGCalTriggerTools::geom_
const HGCalTriggerGeometryBase * geom_
Definition:
HGCalTriggerTools.h:64
ForwardSubdetector.h
HGCalTriggerTools::getTriggerGeometry
const HGCalTriggerGeometryBase * getTriggerGeometry() const
Definition:
HGCalTriggerTools.h:56
nullptr
#define nullptr
ForwardSubdetector
ForwardSubdetector
Definition:
ForwardSubdetector.h:4
EventSetup
HGCalTriggerTools::bhLayers_
unsigned bhLayers_
Definition:
HGCalTriggerTools.h:67
edm::EventSetup
Definition:
EventSetup.h:51
HGCalTriggerTools
Definition:
HGCalTriggerTools.h:30
HGCalTriggerTools::~HGCalTriggerTools
~HGCalTriggerTools()
Definition:
HGCalTriggerTools.h:34
HGCalTriggerTools::lastLayerBH
unsigned lastLayerBH() const
Definition:
HGCalTriggerTools.h:44
DetId
Definition:
DetId.h:18
HGCalTriggerTools::totalLayers_
unsigned totalLayers_
Definition:
HGCalTriggerTools.h:68
Event
Point3DBase< float, GlobalTag >
edm
HLT enums.
Definition:
AlignableModifier.h:17
position
static int position[264][3]
Definition:
ReadPGInfo.cc:509
HGCalTriggerTools::eeLayers_
unsigned eeLayers_
Definition:
HGCalTriggerTools.h:65
HGCalTriggerTools::HGCalTriggerTools
HGCalTriggerTools()
Definition:
HGCalTriggerTools.h:32
HGCalTriggerTools::fhLayers_
unsigned fhLayers_
Definition:
HGCalTriggerTools.h:66
HGCalTriggerTools::lastLayerFH
unsigned lastLayerFH() const
Definition:
HGCalTriggerTools.h:43
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.11