ATLAS Offline Software
Loading...
Searching...
No Matches
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
20class CaloIdManager;
21
22namespace 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
std::vector< Identifier > ID
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
This class initializes the Calo (LAr and Tile) offline identifiers.
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerCollectionSGKey
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
virtual StatusCode AssignTriggerTowerMapper(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw) const override
Gaudi::Property< bool > m_apply_masking
gSuperCellTowerMapper(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
standard Athena-Algorithm method
SG::ReadHandleKey< CaloCellContainer > m_scellsCollectionSGKey
virtual void ConnectSuperCellToTower(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw, int iGTower, Identifier ID, float et) const override
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
virtual int FindTowerIDForSuperCell(int towereta, int towerphi, int nphi) const override
virtual StatusCode AssignSuperCellsToTowers(std::unique_ptr< gTowerContainer > &my_gTowerContainerRaw) const override
Property holding a SG store/key/clid from which a ReadHandle is made.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Extra patterns decribing particle interation process.