ATLAS Offline Software
Loading...
Searching...
No Matches
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
22#include "GaudiKernel/AlgTool.h"
23#include "CaloGeoHelpers/CaloSampling.h"
25
26class IRoiDesciptor;
27
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
51inline 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
69inline 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
Scalar eta() const
pseudorapidity method
This class groups all DetDescr information related to a CaloCell.
Gaudi::Property< float > m_maxHotCellDphi
double phiSizeLArEMSamp2(const double eta, const int calo) const
EgammaReSamp2Fex(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< float > m_maxHotCellDeta
double etaSizeLArEMSamp2(const double eta, const int calo) const
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
IReAlgToolCalo(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Describes the API of the Region of Ineterest geometry.
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.