ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigT2CaloEgamma
src
EgammaReSamp2Fex.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/********************************************************************
6
7
NAME: EgammaReSamp2Fex.h
8
PACKAGE: Trigger/TrigAlgorithms/TrigT2CaloEgamma
9
10
AUTHOR: M.P. Casado
11
12
PURPOSE: Calculates energy weighted cluster position around
13
hottest cell in RoI. Also, calculates energy in
14
a 3x7 and in a 7x7 cluster (rCore = 3x7/7x7).
15
*******************************************************************/
16
17
#ifndef TRIGT2CALOEGAMMA_CALOSAMP2FEXEGAMMARE_H
18
#define TRIGT2CALOEGAMMA_CALOSAMP2FEXEGAMMARE_H
19
20
21
#include "
TrigT2CaloCommon/IReAlgToolCalo.h
"
22
#include "GaudiKernel/AlgTool.h"
23
#include "CaloGeoHelpers/CaloSampling.h"
24
#include "
TrigT2CaloCommon/Calo_Def.h
"
25
26
class
IRoiDesciptor;
27
29
class
EgammaReSamp2Fex
:
public
IReAlgToolCalo
{
30
public
:
31
EgammaReSamp2Fex
(
const
std::string &
type
,
const
std::string & name,
32
const
IInterface* parent);
33
39
virtual
StatusCode
execute
(
xAOD::TrigEMCluster
&rtrigEmCluster,
const
IRoiDescriptor
& roi,
40
const
CaloDetDescrElement
*& caloDDE,
41
const
EventContext& context)
const override
;
42
43
private
:
44
inline
double
etaSizeLArEMSamp2
(
const
double
eta
,
const
int
calo)
const
;
45
inline
double
phiSizeLArEMSamp2
(
const
double
eta
,
const
int
calo)
const
;
46
47
Gaudi::Property<float>
m_maxHotCellDeta
{
this
,
"MaxDetaHotCell"
, 1.0};
48
Gaudi::Property<float>
m_maxHotCellDphi
{
this
,
"MaxDphiHotCell"
, 1.0};
49
};
50
51
inline
double
EgammaReSamp2Fex::etaSizeLArEMSamp2
(
double
cellEta,
int
calo)
const
{
52
double
sizeEta;
53
if
( calo ==
Calorimeter::EMBAR
){
54
if
( std::abs(cellEta) < 1.4 ){
55
sizeEta = 0.025;
56
}
else
{
57
sizeEta = 0.075;
58
}
59
}
else
{
60
if
( std::abs(cellEta) < 2.5 ){
61
sizeEta = 0.025;
62
}
else
{
63
sizeEta = 0.1;
64
}
65
}
66
return
sizeEta;
67
}
68
69
inline
double
EgammaReSamp2Fex::phiSizeLArEMSamp2
(
double
cellEta,
int
calo)
const
{
70
double
sizePhi;
71
if
( calo ==
Calorimeter::EMBAR
){
72
sizePhi = 0.025;
73
}
else
{
74
if
( std::abs(cellEta) < 2.5 ){
75
sizePhi = 0.025;
76
}
else
{
77
sizePhi = 0.1;
78
}
79
}
80
return
sizePhi;
81
}
82
83
#endif
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
Calo_Def.h
IReAlgToolCalo.h
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell.
Definition
Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
Calorimeter::EMBAR
@ EMBAR
Definition
Calo_Def.h:21
EgammaReSamp2Fex::m_maxHotCellDphi
Gaudi::Property< float > m_maxHotCellDphi
Definition
EgammaReSamp2Fex.h:48
EgammaReSamp2Fex::phiSizeLArEMSamp2
double phiSizeLArEMSamp2(const double eta, const int calo) const
Definition
EgammaReSamp2Fex.h:69
EgammaReSamp2Fex::EgammaReSamp2Fex
EgammaReSamp2Fex(const std::string &type, const std::string &name, const IInterface *parent)
Definition
EgammaReSamp2Fex.cxx:22
EgammaReSamp2Fex::m_maxHotCellDeta
Gaudi::Property< float > m_maxHotCellDeta
Definition
EgammaReSamp2Fex.h:47
EgammaReSamp2Fex::etaSizeLArEMSamp2
double etaSizeLArEMSamp2(const double eta, const int calo) const
Definition
EgammaReSamp2Fex.h:51
EgammaReSamp2Fex::execute
virtual StatusCode execute(xAOD::TrigEMCluster &rtrigEmCluster, const IRoiDescriptor &roi, const CaloDetDescrElement *&caloDDE, const EventContext &context) const override
execute feature extraction for the EM Calorimeter second layer
Definition
EgammaReSamp2Fex.cxx:28
IReAlgToolCalo::IReAlgToolCalo
IReAlgToolCalo(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition
IReAlgToolCalo.cxx:20
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition
IRoiDescriptor.h:23
xAOD::TrigEMCluster
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.
Definition
Event/xAOD/xAODTrigCalo/xAODTrigCalo/TrigEMCluster.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0