ATLAS Offline Software
TBClusterMaker.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 #ifndef TBREC_TBCLUSTERMAKER_H
6 #define TBREC_TBCLUSTERMAKER_H
7 
20 
23 #include "CaloGeoHelpers/CaloSampling.h"
26 
27 #include <map>
28 #include <vector>
29 #include <string>
30 
32 {
33  public:
34 
35  TBClusterMaker(const std::string& type, const std::string& name,
36  const IInterface* parent);
37 
39  virtual StatusCode execute(const EventContext& ctx,
40  xAOD::CaloClusterContainer* theClusters) const override;
41  virtual StatusCode initialize() override;
42  virtual StatusCode finalize() override;
43 
44  private:
45 
49  std::vector<CaloSampling::CaloSample> m_samplings;
50  std::vector<float> m_coneCuts;
51  std::vector<CaloCell_ID::SUBCALO> m_calos;
52 
55  std::vector<float> m_samplingConeCuts;
56 
59  float m_cellCut;
60 
64  float m_seedCut;
65 
69  float m_deltaR;
70 
73  int m_maxIter;
74 
78 
81  float m_eta0;
82  float m_phi0;
83 
86 
89 
91  { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" };
92 
96  std::vector<std::string> m_samplingNames;
97 
98  std::map<std::string, CaloSampling::CaloSample> m_samplingFromNameLookup;
99  std::map<CaloSampling::CaloSample, CaloCell_ID::SUBCALO> m_caloLookup;
100  std::vector<float> m_adcToMeV;
101 
104 };
105 
106 #endif // TBCLUSTERMAKER_H
TBClusterMaker::m_maxIter
int m_maxIter
Maximal number of iterations to find cluster position.
Definition: TBClusterMaker.h:73
TBClusterMaker::m_cellCut
float m_cellCut
Threshold cut on cell energy in sigma noise units.
Definition: TBClusterMaker.h:59
TBClusterMaker::initialize
virtual StatusCode initialize() override
Definition: TBClusterMaker.cxx:60
TBClusterMaker::m_deltaR
float m_deltaR
Maximal claster position shift at the current step to stop iterations.
Definition: TBClusterMaker.h:69
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
TBClusterMaker::m_elecNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
Definition: TBClusterMaker.h:91
TBClusterMaker::m_seedCut
float m_seedCut
Threshold cut on seed cell energy in sigma noise units to find the 1st approximation of cluster .
Definition: TBClusterMaker.h:64
CaloClusterCollectionProcessor
Definition: CaloClusterCollectionProcessor.h:32
TBClusterMaker::m_adcToMeV
std::vector< float > m_adcToMeV
Definition: TBClusterMaker.h:100
TBClusterMaker::m_samplingFromNameLookup
std::map< std::string, CaloSampling::CaloSample > m_samplingFromNameLookup
Definition: TBClusterMaker.h:98
CaloCell_ID.h
TBClusterMaker::m_samplings
std::vector< CaloSampling::CaloSample > m_samplings
Vectors containing the list of used samplings and corresponding cone cuts; list of used calorimeters.
Definition: TBClusterMaker.h:49
TBClusterMaker::finalize
virtual StatusCode finalize() override
Definition: TBClusterMaker.cxx:291
TBClusterMaker::m_calos
std::vector< CaloCell_ID::SUBCALO > m_calos
Definition: TBClusterMaker.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TBClusterMaker::setupLookupTables
StatusCode setupLookupTables()
Setup lookup tables.
Definition: TBClusterMaker.cxx:307
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TBClusterMaker::m_samplingNames
std::vector< std::string > m_samplingNames
Definition: TBClusterMaker.h:96
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
TBClusterMaker::m_phi0
float m_phi0
Definition: TBClusterMaker.h:82
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
ReadCondHandleKey.h
TBClusterMaker::m_fixClusterPosition
bool m_fixClusterPosition
Flag to fix cluster position ( ) from JO file.
Definition: TBClusterMaker.h:77
TBClusterMaker::m_samplingConeCuts
std::vector< float > m_samplingConeCuts
Map of cone cuts for calorimeter samplings.
Definition: TBClusterMaker.h:55
TBClusterMaker::m_CellEnergyInADC
bool m_CellEnergyInADC
True if cell enrgy is in ADC counts, default = FALSE.
Definition: TBClusterMaker.h:85
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloNoise.h
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
TBClusterMaker::m_calo_id
const CaloCell_ID * m_calo_id
Services.
Definition: TBClusterMaker.h:88
TBClusterMaker::m_caloLookup
std::map< CaloSampling::CaloSample, CaloCell_ID::SUBCALO > m_caloLookup
Definition: TBClusterMaker.h:99
TBClusterMaker::m_caloCellContainerName
std::string m_caloCellContainerName
Names.
Definition: TBClusterMaker.h:94
SG::ReadCondHandleKey< CaloNoise >
TBClusterMaker::m_eta0
float m_eta0
Cluster ) set in JO file.
Definition: TBClusterMaker.h:81
TBClusterMaker::TBClusterMaker
TBClusterMaker(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TBClusterMaker.cxx:20
TBClusterMaker::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *theClusters) const override
Execute on an entire collection of clusters.
Definition: TBClusterMaker.cxx:125
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TBClusterMaker::m_clusterContainerName
std::string m_clusterContainerName
Definition: TBClusterMaker.h:95
AthAlgTool
Definition: AthAlgTool.h:26
TBClusterMaker::m_coneCuts
std::vector< float > m_coneCuts
Definition: TBClusterMaker.h:50
TBClusterMaker
simple cone cluster maker for TB data analysis.
Definition: TBClusterMaker.h:32