ATLAS Offline Software
ConstituentSubtractorTool.h
Go to the documentation of this file.
1 // this file is -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
14 
15 #ifndef CALOCLUSTERCONSTITUENTSUBSTRACTOR_H
16 #define CALOCLUSTERCONSTITUENTSUBSTRACTOR_H
17 
21 
22 #include "AsgTools/AsgTool.h"
26 #include "fastjet/FunctionOfPseudoJet.hh"
27 #include "TH1.h"
28 #include "TH2.h"
29 
32 public:
33 
34  ConstituentSubtractorTool(const std::string & name);
35 
36  // Check that the configuration is sane
38 
39 private:
40  // Implement the correction
42 
45 
46  Gaudi::Property<float> m_maxDeltaR = {this, "MaxDeltaR",0.25,""};
47  Gaudi::Property<float> m_alpha = {this, "Alpha",0.,""};
48  Gaudi::Property<float> m_ghostArea = {this, "GhostArea",0.01,""};
49  Gaudi::Property<float> m_maxEta = {this, "MaxEta",5.5,""};
50 
51  Gaudi::Property<float> m_maxRapForRhoComputation = {this, "MaxRapForRhoComputation", 2.0, ""};
52  Gaudi::Property<float> m_gridSize = {this, "GridSize", 0.5, ""}; // grid size (not area) for GridMedianBackgroundEstimator
53  Gaudi::Property<bool> m_commonBgeForRhoAndRhom = {this, "CommonBgeForRhoAndRhom",false, ""};
54  Gaudi::Property<bool> m_doRapidityRescaling = {this, "DoRapidityRescaling",false, ""};
55  Gaudi::Property<bool> m_doRapidityPhiRescaling = {this, "DoRapidityPhiRescaling",false, ""};
56  Gaudi::Property<std::string> m_rescalingFileName = {this, "RescalingFileName","", ""};
57  Gaudi::Property<std::string> m_rescalingHistogramName = {this, "RescalingHistogramName","", ""};
58 
59  Gaudi::Property<bool> m_ignoreChargedPFOs = {this, "IgnoreChargedPFO",0.,"Option to disregard cPFOs in the weight calculation"};
60 
61  std::unique_ptr<fastjet::FunctionOfPseudoJet<double> > m_rescaling=nullptr;
62  std::unique_ptr<TH1D> m_hist=nullptr;
63  std::unique_ptr<TH2D> m_hist2D=nullptr;
64 
65 
66 
67 };
68 
69 #endif
ConstituentSubtractorTool::ConstituentSubtractorTool
ConstituentSubtractorTool(const std::string &name)
Definition: ConstituentSubtractorTool.cxx:26
ConstituentSubtractorTool::process_impl
StatusCode process_impl(xAOD::IParticleContainer *cont) const
Definition: ConstituentSubtractorTool.cxx:104
PropertyWrapper.h
ConstituentSubtractorTool::m_ghostArea
Gaudi::Property< float > m_ghostArea
Definition: ConstituentSubtractorTool.h:48
JetConstituentModifierBase.h
ConstituentSubtractorTool::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: ConstituentSubtractorTool.cxx:30
ConstituentSubtractorTool::m_commonBgeForRhoAndRhom
Gaudi::Property< bool > m_commonBgeForRhoAndRhom
Definition: ConstituentSubtractorTool.h:53
ConstituentSubtractorTool::m_rescalingFileName
Gaudi::Property< std::string > m_rescalingFileName
Definition: ConstituentSubtractorTool.h:56
SG::ReadHandleKey< xAOD::EventInfo >
ConstituentSubtractorTool::m_doRapidityRescaling
Gaudi::Property< bool > m_doRapidityRescaling
Definition: ConstituentSubtractorTool.h:54
ConstituentSubtractorTool::m_maxEta
Gaudi::Property< float > m_maxEta
Definition: ConstituentSubtractorTool.h:49
IJetConstituentModifier
Definition: IJetConstituentModifier.h:16
ConstituentSubtractorTool::m_maxRapForRhoComputation
Gaudi::Property< float > m_maxRapForRhoComputation
Definition: ConstituentSubtractorTool.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IParticleContainer.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
ConstituentSubtractorTool
Constituent modifier implementing the Constituent Substraction technique.
Definition: ConstituentSubtractorTool.h:30
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
JetConstituentModifierBase
Definition: JetConstituentModifierBase.h:22
ConstituentSubtractorTool::m_hist2D
std::unique_ptr< TH2D > m_hist2D
Definition: ConstituentSubtractorTool.h:63
ConstituentSubtractorTool::m_hist
std::unique_ptr< TH1D > m_hist
Definition: ConstituentSubtractorTool.h:62
ConstituentSubtractorTool::m_ignoreChargedPFOs
Gaudi::Property< bool > m_ignoreChargedPFOs
Definition: ConstituentSubtractorTool.h:59
EventInfo.h
ConstituentSubtractorTool::m_maxDeltaR
Gaudi::Property< float > m_maxDeltaR
Definition: ConstituentSubtractorTool.h:46
ConstituentSubtractorTool::m_eventinfokey
SG::ReadHandleKey< xAOD::EventInfo > m_eventinfokey
Handle to EventInfo. This is used to get the evt&run number to set the Ghost area random seeds.
Definition: ConstituentSubtractorTool.h:44
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
ConstituentSubtractorTool::m_rescaling
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > m_rescaling
Definition: ConstituentSubtractorTool.h:61
ConstituentSubtractorTool::m_gridSize
Gaudi::Property< float > m_gridSize
Definition: ConstituentSubtractorTool.h:52
CaloClusterContainer.h
ConstituentSubtractorTool::m_doRapidityPhiRescaling
Gaudi::Property< bool > m_doRapidityPhiRescaling
Definition: ConstituentSubtractorTool.h:55
ConstituentSubtractorTool::m_rescalingHistogramName
Gaudi::Property< std::string > m_rescalingHistogramName
Definition: ConstituentSubtractorTool.h:57
AsgTool.h
ConstituentSubtractorTool::m_alpha
Gaudi::Property< float > m_alpha
Definition: ConstituentSubtractorTool.h:47