ATLAS Offline Software
CaloClusterMomentsMaker_DigiHSTruth.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 //Dear emacs, this is -*-c++-*-
5 #ifndef CALOCLUSTERMOMENTSMAKER_DigiHSTruth_H
6 #define CALOCLUSTERMOMENTSMAKER_DigiHSTruth_H
7 
29 #include "GaudiKernel/ToolHandle.h"
30 
31 class CaloCell_ID;
32 class LArHVFraction;
33 
41 #include <string>
42 #include <vector>
43 
45 {
46  public:
47  CaloClusterMomentsMaker_DigiHSTruth(const std::string& type, const std::string& name,
48  const IInterface* parent);
49 
51  virtual StatusCode execute(const EventContext& ctx,
52  xAOD::CaloClusterContainer* theClusColl) const override final;
53  virtual StatusCode initialize() override;
54  virtual StatusCode finalize() override;
55 
56 
57  private:
58 
65  std::vector<std::string> m_momentsNames;
66 
73  std::vector<xAOD::CaloCluster::MomentType> m_validMoments;
74 
76 
79  double m_maxAxisAngle;
80 
87  double m_minRLateral;
88 
98 
106 
109 
112 
115 
120 
121  ToolHandle<CaloDepthTool> m_caloDepthTool;
122 
124  this,
125  "CaloDetDescrManager",
126  "CaloDetDescrManager"
127  };
128 
129  SG::ReadHandleKey<CaloCellContainer> m_signalCellKey{this,"SignalCells","AllCalo_DigiHSTruth"};
130 
133  SG::ReadCondHandleKey<CaloNoise> m_noiseCDOKey{this,"CaloNoiseKey","totalNoise","SG Key of CaloNoise data object"};
134  ToolHandle<ILArHVFraction> m_larHVFraction;
135 
137  std::string m_momentsNamesAOD;
141  bool m_absOpt;
142 };
143 
144 #endif // CALOCLUSTERMOMENTSMAKER_H
CaloClusterMomentsMaker_DigiHSTruth::m_noiseCDOKey
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Key of the CaloNoise Conditions data object.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:133
CaloClusterMomentsMaker_DigiHSTruth::m_momentsNames
std::vector< std::string > m_momentsNames
vector holding the input list of names of moments to calculate.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:65
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
CaloDepthTool.h
Declaration of CaloDepthTool. Created by Claire Bourdarios, 25.10.2004.
CaloClusterMomentsMaker_DigiHSTruth
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:45
CaloClusterMomentsMaker_DigiHSTruth::m_twoGaussianNoise
bool m_twoGaussianNoise
if set to true use 2-gaussian noise description for TileCal
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:119
CaloClusterCollectionProcessor
Definition: CaloClusterCollectionProcessor.h:32
CaloClusterMomentsMaker_DigiHSTruth::m_calculateIsolation
bool m_calculateIsolation
Set to true if cluster isolation is to be calculated.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:111
SG::ReadHandleKey< CaloCellContainer >
CaloClusterMomentsMaker_DigiHSTruth::m_maxAxisAngle
double m_maxAxisAngle
the maximal allowed deviation from the IP-to-ClusterCenter-axis.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:79
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloClusterMomentsMaker_DigiHSTruth::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *theClusColl) const override final
Execute on an entire collection of clusters.
Definition: CaloClusterMomentsMaker_DigiHSTruth.cxx:276
CaloClusterMomentsMaker_DigiHSTruth::m_validMoments
std::vector< xAOD::CaloCluster::MomentType > m_validMoments
set of moments which will be calculated.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:73
CaloClusterMomentsMaker_DigiHSTruth::initialize
virtual StatusCode initialize() override
Definition: CaloClusterMomentsMaker_DigiHSTruth.cxx:164
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloClusterMomentsMaker_DigiHSTruth::m_calculateLArHVFraction
bool m_calculateLArHVFraction
Set to true to calculate E and N of cells affected by LAr HV corrections.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:114
LArHVFraction
Definition: LArHVFraction.h:19
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloClusterMomentsMaker_DigiHSTruth::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:75
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
ReadCondHandleKey.h
CaloClusterMomentsMaker_DigiHSTruth::m_signalCellKey
SG::ReadHandleKey< CaloCellContainer > m_signalCellKey
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:129
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
CaloNoise.h
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
CaloClusterMomentsMaker_DigiHSTruth::m_minRLateral
double m_minRLateral
the minimal in the definition of the Lateral moment
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:87
CaloClusterMomentsMaker_DigiHSTruth::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:123
CaloCellContainer.h
CaloClusterMomentsMaker_DigiHSTruth::m_absOpt
bool m_absOpt
if set to true use abs E value of cells to calculate
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:141
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloClusterMomentsMaker_DigiHSTruth::m_momentsNamesAOD
std::string m_momentsNamesAOD
Not used anymore (with xAOD), but required when configured from COOL.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:137
CaloClusterMomentsMaker_DigiHSTruth::m_caloDepthTool
ToolHandle< CaloDepthTool > m_caloDepthTool
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:121
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloClusterMomentsMaker_DigiHSTruth::CaloClusterMomentsMaker_DigiHSTruth
CaloClusterMomentsMaker_DigiHSTruth(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloClusterMomentsMaker_DigiHSTruth.cxx:113
CaloClusterMomentsMaker_DigiHSTruth::m_calculateSignificance
bool m_calculateSignificance
Set to true if significance moments are need.
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:108
AthAlgTool
Definition: AthAlgTool.h:26
CaloClusterMomentsMaker_DigiHSTruth::m_minBadLArQuality
double m_minBadLArQuality
the minimal cell quality in the LAr for declaring a cell bad
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:105
CaloClusterMomentsMaker_DigiHSTruth::finalize
virtual StatusCode finalize() override
Definition: CaloClusterMomentsMaker_DigiHSTruth.cxx:945
CaloClusterMomentsMaker_DigiHSTruth::m_larHVFraction
ToolHandle< ILArHVFraction > m_larHVFraction
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:134
ILArHVFraction.h
CaloClusterMomentsMaker_DigiHSTruth::m_minLLongitudinal
double m_minLLongitudinal
the minimal in the definition of the Longitudinal moment
Definition: CaloClusterMomentsMaker_DigiHSTruth.h:97