ATLAS Offline Software
HIJetSubtractorToolBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // HIJetSubtractorToolBase.h
6 
7 #ifndef HIJETREC_HIJETSUBTRACTORTOOLBASE_H
8 #define HIJETREC_HIJETSUBTRACTORTOOLBASE_H
9 
19 
21 #include "AsgTools/AsgTool.h"
22 
24 {
26 public:
27 
28  HIJetSubtractorToolBase(const std::string& myname);
30  inline float minEnergyForMoments() const {return m_EminMoment;};
31  inline float minEnergySigForMoments() const {return m_EsigMoment;};
32  inline bool usesCells() const {return m_useCells;};
33 
34 
35  inline const xAOD::HIEventShapeContainer* getShape() const {return m_shape;};
36  inline const HIEventShapeIndex* getIndex() const {return m_index;};
37  inline const IHIUEModulatorTool* getModulator() const {return m_modulator;};
39  inline void setIndex(const HIEventShapeIndex* ind) {m_index=ind;};
41 
43 
44 private:
45 
46  Gaudi::Property< float > m_EminMoment { this, "MinimumEnergyForMoments", 50., "> E, cluster given tower coordinates" };
47  Gaudi::Property< float > m_EsigMoment { this, "MinimumSignificanceForMoments", 0.1, "if E after subtr / E total < this cut, cluster given tower coordinates" };
48  Gaudi::Property< bool > m_updateClusters { this, "UpdateClusters", false, "If true set cluster kinematics to reflect subtraction" };
49  Gaudi::Property< bool > m_useCells { this, "UseCells", true, "Boolean switch for cells usage" };
50 
54 
55 protected:
56 
57  inline void setMinEnergyForMoment(float min_E) { m_EminMoment=min_E; };
58  inline void setUpdateClusters(bool up) { m_updateClusters=up; };
59 
60  inline bool UpdateClusters() const { return m_updateClusters; };
61 
62  void setSubtractedEtaPhi(float E, float& eta, float& phi, float eta0, float phi0, float sig) const;
63 
64  inline void setUseCells(bool v) {m_useCells=v;};
65 
66 };
67 
68 #endif
HIJetSubtractorToolBase::minEnergyForMoments
float minEnergyForMoments() const
Definition: HIJetSubtractorToolBase.h:30
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
HIJetSubtractorToolBase::m_modulator
const IHIUEModulatorTool * m_modulator
Definition: HIJetSubtractorToolBase.h:53
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
index
Definition: index.py:1
HIJetSubtractorToolBase::HIJetSubtractorToolBase
HIJetSubtractorToolBase(const std::string &myname)
Definition: HIJetSubtractorToolBase.cxx:9
InDetAccessor::phi0
@ phi0
Definition: InDetAccessor.h:33
HIJetSubtractorToolBase::usesCells
bool usesCells() const
Definition: HIJetSubtractorToolBase.h:32
HIJetSubtractorToolBase::m_EsigMoment
Gaudi::Property< float > m_EsigMoment
Definition: HIJetSubtractorToolBase.h:47
HIJetSubtractorToolBase::setUpdateClusters
void setUpdateClusters(bool up)
Definition: HIJetSubtractorToolBase.h:58
HIJetSubtractorToolBase::m_useCells
Gaudi::Property< bool > m_useCells
Definition: HIJetSubtractorToolBase.h:49
HIJetSubtractorToolBase::setUseCells
void setUseCells(bool v)
Definition: HIJetSubtractorToolBase.h:64
HIJetSubtractorToolBase::getModulator
const IHIUEModulatorTool * getModulator() const
Definition: HIJetSubtractorToolBase.h:37
HIJetSubtractorToolBase::setIndex
void setIndex(const HIEventShapeIndex *ind)
Definition: HIJetSubtractorToolBase.h:39
HIJetSubtractorToolBase::m_EminMoment
Gaudi::Property< float > m_EminMoment
Definition: HIJetSubtractorToolBase.h:46
HIJetSubtractorToolBase::m_shape
const xAOD::HIEventShapeContainer * m_shape
Definition: HIJetSubtractorToolBase.h:51
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HIJetSubtractorToolBase::setModulator
void setModulator(const IHIUEModulatorTool *mod)
Definition: HIJetSubtractorToolBase.h:40
HIJetSubtractorToolBase::~HIJetSubtractorToolBase
virtual ~HIJetSubtractorToolBase()
Definition: HIJetSubtractorToolBase.h:29
CalibCoolCompareRT.up
up
Definition: CalibCoolCompareRT.py:109
python.BuildSignatureFlags.sig
sig
Definition: BuildSignatureFlags.py:215
HIJetSubtractorToolBase
Abstract base for JetModifiers applying constituent based subtraction.
Definition: HIJetSubtractorToolBase.h:24
HIJetSubtractorToolBase::m_updateClusters
Gaudi::Property< bool > m_updateClusters
Definition: HIJetSubtractorToolBase.h:48
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
HIEventShapeIndex
Definition: HIEventShapeIndex.h:17
IHISubtractorTool.h
HIJetSubtractorToolBase::minEnergySigForMoments
float minEnergySigForMoments() const
Definition: HIJetSubtractorToolBase.h:31
HIJetSubtractorToolBase::getIndex
const HIEventShapeIndex * getIndex() const
Definition: HIJetSubtractorToolBase.h:36
python.PyAthena.v
v
Definition: PyAthena.py:157
HIJetSubtractorToolBase::UpdateClusters
bool UpdateClusters() const
Definition: HIJetSubtractorToolBase.h:60
IHIUEModulatorTool
Abstract interface for tools that can provide UE modulation given an HIEventShape.
Definition: IHIUEModulatorTool.h:25
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
IHISubtractorTool
Abstract interface for tools that implement constituent based subtraction.
Definition: IHISubtractorTool.h:31
HIJetSubtractorToolBase::getShape
const xAOD::HIEventShapeContainer * getShape() const
Definition: HIJetSubtractorToolBase.h:35
HIJetSubtractorToolBase::setSubtractedEtaPhi
void setSubtractedEtaPhi(float E, float &eta, float &phi, float eta0, float phi0, float sig) const
Definition: HIJetSubtractorToolBase.cxx:24
HIJetSubtractorToolBase::configureEvent
virtual StatusCode configureEvent(const xAOD::HIEventShapeContainer *shape, const HIEventShapeIndex *index, const IHIUEModulatorTool *modulator)
Definition: HIJetSubtractorToolBase.cxx:40
AsgTool.h
HIJetSubtractorToolBase::setMinEnergyForMoment
void setMinEnergyForMoment(float min_E)
Definition: HIJetSubtractorToolBase.h:57
HIJetSubtractorToolBase::setShape
void setShape(const xAOD::HIEventShapeContainer *s)
Definition: HIJetSubtractorToolBase.h:38
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
HIJetSubtractorToolBase::m_index
const HIEventShapeIndex * m_index
Definition: HIJetSubtractorToolBase.h:52