ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
23#include "AsgTools/AsgTool.h"
27#include "fastjet/FunctionOfPseudoJet.hh"
28#include "TH1.h"
29#include "TH2.h"
30
33public:
34
35 ConstituentSubtractorTool(const std::string & name);
36
37 // Check that the configuration is sane
38 StatusCode initialize() override final;
39
40private:
41 // Implement the correction
42 StatusCode process_impl(xAOD::IParticleContainer* cont, const EventContext& ctx) const override final;
43 StatusCode configure_decor_handle_keys() override final;
44
47
48 Gaudi::Property<float> m_maxDeltaR = {this, "MaxDeltaR",0.25,""};
49 Gaudi::Property<float> m_alpha = {this, "Alpha",0.,""};
50 Gaudi::Property<float> m_ghostArea = {this, "GhostArea",0.01,""};
51 Gaudi::Property<float> m_maxEta = {this, "MaxEta",5.5,""};
52
53 Gaudi::Property<float> m_maxRapForRhoComputation = {this, "MaxRapForRhoComputation", 2.0, ""};
54 Gaudi::Property<float> m_gridSize = {this, "GridSize", 0.5, ""}; // grid size (not area) for GridMedianBackgroundEstimator
55 Gaudi::Property<bool> m_commonBgeForRhoAndRhom = {this, "CommonBgeForRhoAndRhom",false, ""};
56 Gaudi::Property<bool> m_doRapidityRescaling = {this, "DoRapidityRescaling",false, ""};
57 Gaudi::Property<bool> m_doRapidityPhiRescaling = {this, "DoRapidityPhiRescaling",false, ""};
58 Gaudi::Property<std::string> m_rescalingFileName = {this, "RescalingFileName","", ""};
59 Gaudi::Property<std::string> m_rescalingHistogramName = {this, "RescalingHistogramName","", ""};
60
61 Gaudi::Property<bool> m_ignoreChargedPFOs = {this, "IgnoreChargedPFO",0.,"Option to disregard cPFOs in the weight calculation"};
62
63 std::unique_ptr<fastjet::FunctionOfPseudoJet<double> > m_rescaling=nullptr;
64 std::unique_ptr<TH1D> m_hist=nullptr;
65 std::unique_ptr<TH2D> m_hist2D=nullptr;
66
69 this,
70 "CSWeightKey",
71 "CSWeight",
72 "CSWeight decoration"
73 };
74
75
76};
77
78#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid from which a ReadHandle is made.
Gaudi::Property< bool > m_commonBgeForRhoAndRhom
Gaudi::Property< bool > m_ignoreChargedPFOs
Gaudi::Property< float > m_maxRapForRhoComputation
Gaudi::Property< float > m_maxEta
WriteDecorHandleKeyTriplet< float > m_csWeightKeys
Gaudi::Property< std::string > m_rescalingHistogramName
Gaudi::Property< float > m_alpha
StatusCode process_impl(xAOD::IParticleContainer *cont, const EventContext &ctx) const override final
Gaudi::Property< std::string > m_rescalingFileName
StatusCode configure_decor_handle_keys() override final
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > m_rescaling
Gaudi::Property< float > m_ghostArea
ConstituentSubtractorTool(const std::string &name)
Gaudi::Property< bool > m_doRapidityPhiRescaling
StatusCode initialize() override final
Dummy implementation of the initialisation function.
Gaudi::Property< float > m_maxDeltaR
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.
Gaudi::Property< float > m_gridSize
Gaudi::Property< bool > m_doRapidityRescaling
JetConstituentModifierBase(const std::string &name)
Property holding a SG store/key/clid from which a ReadHandle is made.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.