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
21
22#include "AsgTools/AsgTool.h"
26#include "fastjet/FunctionOfPseudoJet.hh"
27#include "TH1.h"
28#include "TH2.h"
29
32public:
33
34 ConstituentSubtractorTool(const std::string & name);
35
36 // Check that the configuration is sane
37 StatusCode initialize();
38
39private:
40 // Implement the correction
41 StatusCode process_impl(xAOD::IParticleContainer* cont) const;
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
#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
StatusCode initialize()
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_rescalingHistogramName
Gaudi::Property< float > m_alpha
Gaudi::Property< std::string > m_rescalingFileName
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > m_rescaling
Gaudi::Property< float > m_ghostArea
StatusCode process_impl(xAOD::IParticleContainer *cont) const
ConstituentSubtractorTool(const std::string &name)
Gaudi::Property< bool > m_doRapidityPhiRescaling
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.