ATLAS Offline Software
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 
26 class 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 
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
EgammaReSamp2Fex::phiSizeLArEMSamp2
double phiSizeLArEMSamp2(const double eta, const int calo) const
Definition: EgammaReSamp2Fex.h:69
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
EgammaReSamp2Fex::EgammaReSamp2Fex
EgammaReSamp2Fex(const std::string &type, const std::string &name, const IInterface *parent)
Definition: EgammaReSamp2Fex.cxx:22
EgammaReSamp2Fex::etaSizeLArEMSamp2
double etaSizeLArEMSamp2(const double eta, const int calo) const
Definition: EgammaReSamp2Fex.h:51
Calorimeter::EMBAR
@ EMBAR
Definition: Calo_Def.h:21
EgammaReSamp2Fex
Feature extraction Tool for LVL2 Calo.
Definition: EgammaReSamp2Fex.h:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
IReAlgToolCalo.h
EgammaReSamp2Fex::m_maxHotCellDphi
Gaudi::Property< float > m_maxHotCellDphi
Definition: EgammaReSamp2Fex.h:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
EgammaReSamp2Fex::m_maxHotCellDeta
Gaudi::Property< float > m_maxHotCellDeta
Definition: EgammaReSamp2Fex.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
IReAlgToolCalo
Base Class for Tools used for Egamma and Tau Feature Extraction Algorithms.
Definition: IReAlgToolCalo.h:37
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Calo_Def.h
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
xAOD::TrigEMCluster_v1
Description of a trigger EM cluster.
Definition: TrigEMCluster_v1.h:28