ATLAS Offline Software
gSuperCellTowerMapper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 //***************************************************************************
5 // gSuperCellTowerMapper - supercells and Tile tower assignment to gTowers
6 // -------------------
7 // begin : 01 04 2021
8 // email : cecilia.tosciri@cern.ch
9 //***************************************************************************
10 
11 
12 #ifndef GSUPERCELLTOWERMAPPER_H
13 #define GSUPERCELLTOWERMAPPER_H
14 
15 // STL
16 #include <string>
18 
19 
20 class CaloIdManager;
21 
22 namespace LVL1 {
23 
24 
26 {
27  public:
28  gSuperCellTowerMapper(const std::string& type,const std::string& name,const IInterface* parent);
29  virtual ~gSuperCellTowerMapper();
30 
32  virtual StatusCode initialize() override;
33 
34  virtual StatusCode AssignSuperCellsToTowers(std::unique_ptr<gTowerContainer> & my_gTowerContainerRaw) const override;
35  virtual StatusCode AssignTriggerTowerMapper(std::unique_ptr<gTowerContainer> & my_gTowerContainerRaw) const override;
36 
37  virtual void reset() override;
38 
39  private:
40 
42  SG::ReadHandleKey<xAOD::TriggerTowerContainer> m_triggerTowerCollectionSGKey {this, "xODTriggerTowers", "xAODTriggerTowers", "xAODTriggerTowers"};
43 
44  Gaudi::Property<bool> m_apply_masking {this, "SCellMasking", false, "Applies masking. Only use for data"};
45 
46  virtual int FindAndConnectTower(std::unique_ptr<gTowerContainer> & my_gTowerContainerRaw,CaloSampling::CaloSample sample,
47  const int region, const int pos_neg, const int eta_index, const int phi_index, Identifier ID,
48  float et, int prov, bool doPrint) const override;
49 
50  virtual void ConnectSuperCellToTower(std::unique_ptr<gTowerContainer> & my_gTowerContainerRaw,
51  int iGTower, Identifier ID, float et) const override;
52 
53  virtual int FindTowerIDForSuperCell(int towereta, int towerphi, int nphi) const override;
54 
55  virtual void PrintCellSpec(const CaloSampling::CaloSample sample, const int region,
56  const int eta_index, const int phi_index, const int pos_neg,
57  int towereta, int towerphi, int nphi, int towerID_Modifier,
58  int iGTower, int prov, Identifier ID) const override;
59 };
60 
61 
62 } // end of LVL1 namespace
63 #endif
LVL1::gSuperCellTowerMapper
Definition: gSuperCellTowerMapper.h:26
et
Extra patterns decribing particle interation process.
LVL1::IgSuperCellTowerMapper
Definition: IgSuperCellTowerMapper.h:25
LVL1::gSuperCellTowerMapper::m_apply_masking
Gaudi::Property< bool > m_apply_masking
Definition: gSuperCellTowerMapper.h:44
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
LVL1::gSuperCellTowerMapper::AssignSuperCellsToTowers
virtual StatusCode AssignSuperCellsToTowers(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw) const override
Definition: gSuperCellTowerMapper.cxx:99
LVL1::gSuperCellTowerMapper::initialize
virtual StatusCode initialize() override
standard Athena-Algorithm method
Definition: gSuperCellTowerMapper.cxx:33
LVL1::gSuperCellTowerMapper::FindTowerIDForSuperCell
virtual int FindTowerIDForSuperCell(int towereta, int towerphi, int nphi) const override
Definition: gSuperCellTowerMapper.cxx:654
LVL1::gSuperCellTowerMapper::~gSuperCellTowerMapper
virtual ~gSuperCellTowerMapper()
Definition: gSuperCellTowerMapper.cxx:29
SG::ReadHandleKey< CaloCellContainer >
LVL1::gSuperCellTowerMapper::PrintCellSpec
virtual void PrintCellSpec(const CaloSampling::CaloSample sample, const int region, const int eta_index, const int phi_index, const int pos_neg, int towereta, int towerphi, int nphi, int towerID_Modifier, int iGTower, int prov, Identifier ID) const override
Definition: gSuperCellTowerMapper.cxx:661
IgSuperCellTowerMapper.h
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::gSuperCellTowerMapper::AssignTriggerTowerMapper
virtual StatusCode AssignTriggerTowerMapper(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw) const override
Definition: gSuperCellTowerMapper.cxx:42
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
LVL1::gSuperCellTowerMapper::m_triggerTowerCollectionSGKey
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerCollectionSGKey
Definition: gSuperCellTowerMapper.h:42
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
createCablingJSON.eta_index
int eta_index
Definition: createCablingJSON.py:9
LVL1::gSuperCellTowerMapper::gSuperCellTowerMapper
gSuperCellTowerMapper(const std::string &type, const std::string &name, const IInterface *parent)
Definition: gSuperCellTowerMapper.cxx:22
TrigConf::name
Definition: HLTChainList.h:35
LVL1::gSuperCellTowerMapper::reset
virtual void reset() override
Definition: gSuperCellTowerMapper.cxx:94
LVL1::gSuperCellTowerMapper::m_scellsCollectionSGKey
SG::ReadHandleKey< CaloCellContainer > m_scellsCollectionSGKey
Definition: gSuperCellTowerMapper.h:41
LVL1::gSuperCellTowerMapper::FindAndConnectTower
virtual int FindAndConnectTower(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw, CaloSampling::CaloSample sample, const int region, const int pos_neg, const int eta_index, const int phi_index, Identifier ID, float et, int prov, bool doPrint) const override
Definition: gSuperCellTowerMapper.cxx:162
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1::gSuperCellTowerMapper::ConnectSuperCellToTower
virtual void ConnectSuperCellToTower(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw, int iGTower, Identifier ID, float et) const override
Definition: gSuperCellTowerMapper.cxx:150
AthAlgTool
Definition: AthAlgTool.h:26