ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
ConstituentSubtractorTool Class Reference

Constituent modifier implementing the Constituent Substraction technique. More...

#include <ConstituentSubtractorTool.h>

Inheritance diagram for ConstituentSubtractorTool:
Collaboration diagram for ConstituentSubtractorTool:

Public Member Functions

 ConstituentSubtractorTool (const std::string &name)
 
StatusCode initialize ()
 Dummy implementation of the initialisation function. More...
 
StatusCode process (xAOD::IParticleContainer *cont) const override final
 
virtual void print () const
 Print the state of the tool. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

StatusCode setEtaPhi (xAOD::IParticle *obj, float eta, float phi) const
 
StatusCode setEnergyPt (xAOD::IParticle *obj, float e, float pt, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const
 
StatusCode setP4 (xAOD::IParticle *obj, const xAOD::JetFourMom_t &p4, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Protected Attributes

unsigned int m_inputType =xAOD::Type::Other
 
bool m_applyToChargedPFO =true
 
bool m_applyToNeutralPFO =true
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode process_impl (xAOD::IParticleContainer *cont) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_eventinfokey {"EventInfo"}
 Handle to EventInfo. This is used to get the evt&run number to set the Ghost area random seeds. More...
 
Gaudi::Property< float > m_maxDeltaR = {this, "MaxDeltaR",0.25,""}
 
Gaudi::Property< float > m_alpha = {this, "Alpha",0.,""}
 
Gaudi::Property< float > m_ghostArea = {this, "GhostArea",0.01,""}
 
Gaudi::Property< float > m_maxEta = {this, "MaxEta",5.5,""}
 
Gaudi::Property< float > m_maxRapForRhoComputation = {this, "MaxRapForRhoComputation", 2.0, ""}
 
Gaudi::Property< float > m_gridSize = {this, "GridSize", 0.5, ""}
 
Gaudi::Property< bool > m_commonBgeForRhoAndRhom = {this, "CommonBgeForRhoAndRhom",false, ""}
 
Gaudi::Property< bool > m_doRapidityRescaling = {this, "DoRapidityRescaling",false, ""}
 
Gaudi::Property< bool > m_doRapidityPhiRescaling = {this, "DoRapidityPhiRescaling",false, ""}
 
Gaudi::Property< std::string > m_rescalingFileName = {this, "RescalingFileName","", ""}
 
Gaudi::Property< std::string > m_rescalingHistogramName = {this, "RescalingHistogramName","", ""}
 
Gaudi::Property< bool > m_ignoreChargedPFOs = {this, "IgnoreChargedPFO",0.,"Option to disregard cPFOs in the weight calculation"}
 
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > m_rescaling =nullptr
 
std::unique_ptr< TH1D > m_hist =nullptr
 
std::unique_ptr< TH2D > m_hist2D =nullptr
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Constituent modifier implementing the Constituent Substraction technique.

Author
P-A Delsart, T.J. Khoo, others ??

Definition at line 30 of file ConstituentSubtractorTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ConstituentSubtractorTool()

ConstituentSubtractorTool::ConstituentSubtractorTool ( const std::string &  name)

Definition at line 26 of file ConstituentSubtractorTool.cxx.

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void *  ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119  {
120 
121 #ifdef XAOD_STANDALONE
122  // In case we use @c xAOD::TEvent, we have a direct function call
123  // for this.
124  return evtStore()->event()->getKey( ptr );
125 #else
126  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127  return ( proxy == nullptr ? 0 : proxy->sgkey() );
128 #endif // XAOD_STANDALONE
129  }

◆ getName()

const std::string & asg::AsgTool::getName ( const void *  ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106  {
107 
108 #ifdef XAOD_STANDALONE
109  // In case we use @c xAOD::TEvent, we have a direct function call
110  // for this.
111  return evtStore()->event()->getName( ptr );
112 #else
113  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114  static const std::string dummy = "";
115  return ( proxy == nullptr ? dummy : proxy->name() );
116 #endif // XAOD_STANDALONE
117  }

◆ getProperty()

template<class T >
const T* asg::AsgTool::getProperty ( const std::string &  name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode ConstituentSubtractorTool::initialize ( )
virtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 30 of file ConstituentSubtractorTool.cxx.

30  {
31 
34  ATH_MSG_ERROR("Incompatible configuration: setting both IgnoreChargedPFO and ApplyToChargedPFO to true"
35  << "will set all cPFOs to zero");
36  return StatusCode::FAILURE;
37  }
38  if(!m_applyToNeutralPFO) {
39  ATH_MSG_ERROR("Incompatible configuration: ApplyToNeutralPFO=False -- what kind of pileup do you wish to suppress?");
40  return StatusCode::FAILURE;
41  }
42  }
44 
45 
47  ATH_MSG_ERROR("Incompatible configuration: You set both, DoRapidityRescaling and DoRapidityPhiRescaling, to true. Use maximally only one of them.");
48  return StatusCode::FAILURE;
49  }
50 
52  ATH_MSG_ERROR("Incompatible configuration: You have chosen a background rescaling, but you have not specified the path to the file with rescaling histograms or the name of the histogram. Specify properties FileRescaling and HistogramRescaling.");
53  return StatusCode::FAILURE;
54  }
55 
57  std::string fullPathToFile=PathResolverFindCalibFile(m_rescalingFileName); // returns "" if file not found
58  if (fullPathToFile.empty()){
59  ATH_MSG_ERROR("Incompatible configuration: The provided file for rescaling was not found using PathResolver.");
60  return StatusCode::FAILURE;
61  }
62  std::unique_ptr<TFile> file(TFile::Open(fullPathToFile.data(), "READ"));
63  if (file->IsZombie()){
64  ATH_MSG_ERROR("Incompatible configuration: The file for rescaling has been tried to open, but it was found it is zombie.");
65  return StatusCode::FAILURE;
66  }
67  std::unique_ptr<TObject> object(file->Get(m_rescalingHistogramName.value().data()));
68  if (!object){
69  ATH_MSG_ERROR("Incompatible configuration: The provided histogram name was not found in the root file.");
70  return StatusCode::FAILURE;
71  }
72 
74  if (object->InheritsFrom(TH1D::Class())){
75  m_hist.reset(static_cast<TH1D*>(object->Clone("hist_cloned")));
76  m_hist->SetDirectory(nullptr);
77  m_rescaling.reset(static_cast<fastjet::FunctionOfPseudoJet<double>*>(new contrib::BackgroundRescalingYFromRoot<TH1D>(m_hist.get())));
78  }
79  else{
80  ATH_MSG_ERROR("Incompatible configuration: You want to do rapidity rescaling, but the provided histogram name is not a TH1D.");
81  return StatusCode::FAILURE;
82  }
83  }
85  if (object->InheritsFrom(TH2D::Class())){
86  m_hist2D.reset(static_cast<TH2D*>(object->Clone("hist_cloned")));
87  m_hist2D->SetDirectory(nullptr);
88  m_rescaling.reset(static_cast<fastjet::FunctionOfPseudoJet<double>*>(new contrib::BackgroundRescalingYPhiFromRoot<TH2D>(m_hist2D.get())));
89  }
90  else{
91  ATH_MSG_ERROR("Incompatible configuration: You want to do rapidity-phi rescaling, but the provided histogram name is not a TH2D.");
92  return StatusCode::FAILURE;
93  }
94  }
95  }
96 
97 
98  return StatusCode::SUCCESS;
99 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101  {
102 
103  return MSG::name( msg().level() );
104  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

◆ process()

StatusCode JetConstituentModifierBase::process ( xAOD::IParticleContainer cont) const
finaloverridevirtualinherited

Implements IJetConstituentModifier.

Definition at line 23 of file JetConstituentModifierBase.cxx.

24 {
25  // Test that we are operating on the type of object that
26  // we will be writing out.
27  // By implication, any supporting containers should not
28  // be the ones passed to this method...
29  if(!cont->empty() && cont->front()->type() != m_inputType) {
30  ATH_MSG_ERROR("Object type mismatch! This tool expects " << m_inputType
31  << ", but received " << cont->front()->type());
32  return StatusCode::FAILURE;
33  }
34 
35  ATH_CHECK(process_impl(cont));
36 
37  return StatusCode::SUCCESS;
38 }

◆ process_impl()

StatusCode ConstituentSubtractorTool::process_impl ( xAOD::IParticleContainer cont) const
privatevirtual

Reimplemented from JetConstituentModifierBase.

Definition at line 104 of file ConstituentSubtractorTool.cxx.

104  {
105 
106  contrib::ConstituentSubtractor subtractor;
107 
108  // free parameter for the maximal allowed distance sqrt((y_i-y_k)^2+(phi_i-phi_k)^2) between particle i and ghost k
109  subtractor.set_max_standardDeltaR(m_maxDeltaR);
110 
111  // free parameter for the distance measure (the exponent of particle pt). The larger the parameter alpha, the more are favoured the lower pt particles in the subtraction process
112  subtractor.set_alpha(m_alpha);
113 
114  // free parameter for the density of ghosts. The smaller, the better - but also the computation is slower.
115  subtractor.set_ghost_area(m_ghostArea);
116 
117  // This is added to fix ATR-23552. It has no effect on the performance. Once the bug is fixed in fastjet-contrib, it can be removed.
118  subtractor.set_use_nearby_hard(-1,-1);
119 
120  // prepare PseudoJet input
121  std::vector<PseudoJet> inputs_to_correct, inputs_to_not_correct;
122  inputs_to_correct.reserve(cont->size());
123  inputs_to_not_correct.reserve(cont->size());
124  size_t i =0; // Corresponds to the index in the input container
125  // We don't use part->index() because it might be a view container
126  // combining more than one owning container
127 
128  // Minimal and maximum rapidities needed for the workaround for the bug in fastjet-contrib ConstituentSubtractor, see ATLASG-1417
129  double minRap=1000;
130  double maxRap=-1000;
131 
132  for(xAOD::IParticle * part: *cont){
133  // Only use positive E
134  bool accept = part->e() > -1*FLT_MIN;
135  // For PFlow we would only want to apply the correction to neutral PFOs,
136  // because charged hadron subtraction handles the charged PFOs.
137  // However, we might still want to use the cPFOs for the min pt calculation
140  xAOD::PFO* pfo = static_cast<xAOD::PFO*>(part);
141  accept &= fabs(pfo->charge())<FLT_MIN;
142  }
144  xAOD::FlowElement* fe = static_cast<xAOD::FlowElement*>(part);
145  accept &= !(fe->isCharged());
146  }
147  }
149  xAOD::TrackCaloCluster* tcc = static_cast<xAOD::TrackCaloCluster*>(part);
150  accept &= (tcc->taste()!= 0)*(tcc->pt()>-1.*FLT_MIN);
151  }
152  // Reject object if outside maximum eta range
153  accept &= fabs(part->eta()) <= m_maxEta;
154 
155  PseudoJet pj( part->p4() );
156  pj.set_user_index( i );
157  if(accept) {
158  ATH_MSG_VERBOSE("Using " << part->type() << " with pt " << part->pt());
159  inputs_to_correct.push_back(pj);
160  // Minimal and maximum rapidities needed for the workaround for the bug in fastjet-contrib ConstituentSubtractor, see ATLASG-1417
161  if (pj.rap()<minRap) minRap = pj.rap();
162  if (pj.rap()>maxRap) maxRap = pj.rap();
163  } else {
164  ATH_MSG_VERBOSE("Will not correct " << part->type() << " with pt " << part->pt());
165  inputs_to_not_correct.push_back(pj);
166  }
167 
168  ++i;
169  }
170 
171  // create what we need for the background estimation
172  //----------------------------------------------------------
173  // maximal rapidity is used (not pseudo-rapidity). Since the inputs are massless, it does not matter
174  GridMedianBackgroundEstimator bge_rho(m_maxRapForRhoComputation, m_gridSize);
175  bge_rho.set_rescaling_class(m_rescaling.get());
176  bge_rho.set_particles(inputs_to_correct);
177  subtractor.set_background_estimator(&bge_rho);
178 
179  // for massless input particles it does not make any difference (rho_m is always zero)
180 
181  ATH_MSG_DEBUG("Subtracting event density from constituents");
182  std::vector<PseudoJet> corrected_event=subtractor.subtract_event(inputs_to_correct,m_maxEta);
183 
184  // Define a vector holding the corrected four-momenta for all output constituents
185  // This is defaulted to zero, because fastjet will only return non-zero pseudojets
186  std::vector<xAOD::JetFourMom_t> corrected_p4s(cont->size(),xAOD::JetFourMom_t(0.,0.,0.,0.));
187  // Set the corrected four-vectors
188  for(PseudoJet & pj : corrected_event) {
189  ATH_MSG_VERBOSE("Setting four-mom for constituent " << pj.user_index() << ", pt = " << pj.pt());
190  corrected_p4s[pj.user_index()].SetCoordinates(pj.pt(),pj.eta(),pj.phi(),pj.m());
191  }
192  for(PseudoJet & pj : inputs_to_not_correct) {
193  ATH_MSG_VERBOSE("Setting four-mom for constituent " << pj.user_index() << ", pt = " << pj.pt());
194  corrected_p4s[pj.user_index()].SetCoordinates(pj.pt(),pj.eta(),pj.phi(),pj.m());
195  }
196  for(PseudoJet & pj : inputs_to_not_correct) {
197  ATH_MSG_VERBOSE("Setting four-mom for constituent " << pj.user_index() << ", pt = " << pj.pt());
198  corrected_p4s[pj.user_index()].SetCoordinates(pj.pt(),pj.eta(),pj.phi(),pj.m());
199  }
200 
201  // Set every constituent's four-vector in the output container
202  i = 0; // Again, we need to track the input container index, not the owning container index
203  const static SG::AuxElement::Accessor<float> weightAcc("CSWeight"); // Handle for PU weighting here
204  for(xAOD::IParticle * part: *cont){
205  ATH_MSG_VERBOSE("Now on constituent " << i);
206  ATH_MSG_VERBOSE("Initial pt: " << part->pt() << ", subtracted pt: " << corrected_p4s[i].Pt());
207  ATH_MSG_VERBOSE("Initial eta: " << part->eta() << ", subtracted pt: " << corrected_p4s[i].Eta());
208  ATH_MSG_VERBOSE("Initial phi: " << part->phi() << ", subtracted pt: " << corrected_p4s[i].Phi());
209  ATH_CHECK( setP4(part,corrected_p4s[i], &weightAcc) );
210  ++i;
211  }
212 
213 
214 
215  return StatusCode::SUCCESS;
216 }

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setEnergyPt()

StatusCode JetConstituentModifierBase::setEnergyPt ( xAOD::IParticle obj,
float  e,
float  pt,
const SG::AuxElement::Accessor< float > *  weightAcc = nullptr 
) const
protectedinherited

Definition at line 61 of file JetConstituentModifierBase.cxx.

63 {
64  switch(m_inputType) {
66  {
67  xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
68  // Clusters get pt via the energy
69  // This currently leaves the mass unaltered.
70  if(weightAcc) (*weightAcc)(*clus) = clus->calE() > 0. ? e / clus->calE() : 0.;
71  clus->setCalE(e);
72  }
73  break;
75  {
76  xAOD::PFO* pfo = static_cast<xAOD::PFO*>(obj);
77  if( (m_applyToChargedPFO && pfo->isCharged()) ||
78  (m_applyToNeutralPFO && !pfo->isCharged()) ) {
79  if(weightAcc) (*weightAcc)(*pfo) = pfo->pt() > 0. ? pt / pfo->pt() : 0.;
80  // KTJ: Temporary fix
81  // Defeats the purpose, but we need to use this to reset the 4-vec cache
82  pfo->setP4(pt, pfo->eta(), pfo->phi());
83  }
84  }
85  break;
87  {
88  xAOD::FlowElement* pfo = static_cast<xAOD::FlowElement*>(obj);
89  if( (m_applyToChargedPFO && pfo->isCharged()) ||
90  (m_applyToNeutralPFO && !pfo->isCharged()) ) {
91  if(weightAcc) (*weightAcc)(*pfo) = pfo->pt() > 0. ? pt / pfo->pt() : 0.;
92  pfo->setP4(pt, pfo->eta(), pfo->phi(), 0.);
93  }
94  }
95  break;
97  {
99  if( tcc->taste() != 0) {
100  if(weightAcc) (*weightAcc)(*tcc) = tcc->pt() > 0. ? pt / tcc->pt() : 0.;
101  tcc->setParameters(pt, tcc->eta(), tcc->phi(), tcc->m(), xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
102  }
103  }
104  break;
105  default:
106  // Should not get here, because type-checking should happen in process()
107  ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
108  return StatusCode::FAILURE;
109  }
110  return StatusCode::SUCCESS;
111 }

◆ setEtaPhi()

StatusCode JetConstituentModifierBase::setEtaPhi ( xAOD::IParticle obj,
float  eta,
float  phi 
) const
protectedinherited

Definition at line 41 of file JetConstituentModifierBase.cxx.

42 {
43  switch(m_inputType) {
44  // The main (only?) application is origin-correcting LC topoclusters
45  // By convention we leave the raw p4 unmodified
47  {
48  xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
49  clus->setCalEta(eta);
50  clus->setCalPhi(phi);
51  }
52  break;
53  default:
54  // Should not get here, because type-checking should happen in process()
55  ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
56  return StatusCode::FAILURE;
57  }
58  return StatusCode::SUCCESS;
59 }

◆ setP4()

StatusCode JetConstituentModifierBase::setP4 ( xAOD::IParticle obj,
const xAOD::JetFourMom_t p4,
const SG::AuxElement::Accessor< float > *  weightAcc = nullptr 
) const
protectedinherited

Definition at line 113 of file JetConstituentModifierBase.cxx.

114  {
115  switch(m_inputType) {
117  {
118  xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
119  // This currently leaves the mass unaltered
120  if(weightAcc) (*weightAcc)(*clus) = clus->calE() > 0. ? p4.e() / clus->calE() : 0.;
121  clus->setCalE(p4.e());
122  clus->setCalEta(p4.eta());
123  clus->setCalPhi(p4.phi());
124  }
125  break;
127  {
128  xAOD::PFO* pfo = static_cast<xAOD::PFO*>(obj);
129  // The PFO setter defaults to m=0
130  if( (m_applyToChargedPFO && pfo->isCharged()) ||
131  (m_applyToNeutralPFO && !pfo->isCharged()) ) {
132  if(weightAcc) (*weightAcc)(*pfo) = pfo->pt() > 0. ? p4.pt() / pfo->pt() : 0.;
133  pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
134  }
135  }
136  break;
138  {
139  xAOD::FlowElement* pfo = static_cast<xAOD::FlowElement*>(obj);
140  if( (m_applyToChargedPFO && pfo->isCharged()) ||
141  (m_applyToNeutralPFO && !pfo->isCharged()) ) {
142  if(weightAcc) (*weightAcc)(*pfo) = pfo->pt() > 0. ? p4.pt() / pfo->pt() : 0.;
143  pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
144  }
145  }
146  break;
148  {
149  xAOD::TrackCaloCluster* tcc = static_cast<xAOD::TrackCaloCluster*>(obj);
150  if( tcc->taste() != 0) {
151  if(weightAcc) (*weightAcc)(*tcc) = tcc->pt() > 0. ? p4.pt() / tcc->pt() : 0.;
152  tcc->setParameters(p4.pt(), p4.eta(), p4.phi(), p4.mass(), xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
153  }
154  break;
155  }
156 
157  default:
158  // Should not get here, because type-checking should happen in process()
159  ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
160  return StatusCode::FAILURE;
161  }
162  return StatusCode::SUCCESS;
163 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_alpha

Gaudi::Property<float> ConstituentSubtractorTool::m_alpha = {this, "Alpha",0.,""}
private

Definition at line 47 of file ConstituentSubtractorTool.h.

◆ m_applyToChargedPFO

bool JetConstituentModifierBase::m_applyToChargedPFO =true
protectedinherited

Definition at line 62 of file JetConstituentModifierBase.h.

◆ m_applyToNeutralPFO

bool JetConstituentModifierBase::m_applyToNeutralPFO =true
protectedinherited

Definition at line 63 of file JetConstituentModifierBase.h.

◆ m_commonBgeForRhoAndRhom

Gaudi::Property<bool> ConstituentSubtractorTool::m_commonBgeForRhoAndRhom = {this, "CommonBgeForRhoAndRhom",false, ""}
private

Definition at line 53 of file ConstituentSubtractorTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doRapidityPhiRescaling

Gaudi::Property<bool> ConstituentSubtractorTool::m_doRapidityPhiRescaling = {this, "DoRapidityPhiRescaling",false, ""}
private

Definition at line 55 of file ConstituentSubtractorTool.h.

◆ m_doRapidityRescaling

Gaudi::Property<bool> ConstituentSubtractorTool::m_doRapidityRescaling = {this, "DoRapidityRescaling",false, ""}
private

Definition at line 54 of file ConstituentSubtractorTool.h.

◆ m_eventinfokey

SG::ReadHandleKey<xAOD::EventInfo> ConstituentSubtractorTool::m_eventinfokey {"EventInfo"}
private

Handle to EventInfo. This is used to get the evt&run number to set the Ghost area random seeds.

Definition at line 44 of file ConstituentSubtractorTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_ghostArea

Gaudi::Property<float> ConstituentSubtractorTool::m_ghostArea = {this, "GhostArea",0.01,""}
private

Definition at line 48 of file ConstituentSubtractorTool.h.

◆ m_gridSize

Gaudi::Property<float> ConstituentSubtractorTool::m_gridSize = {this, "GridSize", 0.5, ""}
private

Definition at line 52 of file ConstituentSubtractorTool.h.

◆ m_hist

std::unique_ptr<TH1D> ConstituentSubtractorTool::m_hist =nullptr
private

Definition at line 62 of file ConstituentSubtractorTool.h.

◆ m_hist2D

std::unique_ptr<TH2D> ConstituentSubtractorTool::m_hist2D =nullptr
private

Definition at line 63 of file ConstituentSubtractorTool.h.

◆ m_ignoreChargedPFOs

Gaudi::Property<bool> ConstituentSubtractorTool::m_ignoreChargedPFOs = {this, "IgnoreChargedPFO",0.,"Option to disregard cPFOs in the weight calculation"}
private

Definition at line 59 of file ConstituentSubtractorTool.h.

◆ m_inputType

unsigned int JetConstituentModifierBase::m_inputType =xAOD::Type::Other
protectedinherited

Definition at line 60 of file JetConstituentModifierBase.h.

◆ m_maxDeltaR

Gaudi::Property<float> ConstituentSubtractorTool::m_maxDeltaR = {this, "MaxDeltaR",0.25,""}
private

Definition at line 46 of file ConstituentSubtractorTool.h.

◆ m_maxEta

Gaudi::Property<float> ConstituentSubtractorTool::m_maxEta = {this, "MaxEta",5.5,""}
private

Definition at line 49 of file ConstituentSubtractorTool.h.

◆ m_maxRapForRhoComputation

Gaudi::Property<float> ConstituentSubtractorTool::m_maxRapForRhoComputation = {this, "MaxRapForRhoComputation", 2.0, ""}
private

Definition at line 51 of file ConstituentSubtractorTool.h.

◆ m_rescaling

std::unique_ptr<fastjet::FunctionOfPseudoJet<double> > ConstituentSubtractorTool::m_rescaling =nullptr
private

Definition at line 61 of file ConstituentSubtractorTool.h.

◆ m_rescalingFileName

Gaudi::Property<std::string> ConstituentSubtractorTool::m_rescalingFileName = {this, "RescalingFileName","", ""}
private

Definition at line 56 of file ConstituentSubtractorTool.h.

◆ m_rescalingHistogramName

Gaudi::Property<std::string> ConstituentSubtractorTool::m_rescalingHistogramName = {this, "RescalingHistogramName","", ""}
private

Definition at line 57 of file ConstituentSubtractorTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
JetConstituentModifierBase::m_applyToNeutralPFO
bool m_applyToNeutralPFO
Definition: JetConstituentModifierBase.h:63
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
xAOD::PFO_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition: PFO_v1.cxx:52
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ConstituentSubtractorTool::m_ghostArea
Gaudi::Property< float > m_ghostArea
Definition: ConstituentSubtractorTool.h:48
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
JetConstituentModifierBase::JetConstituentModifierBase
JetConstituentModifierBase(const std::string &name)
Definition: JetConstituentModifierBase.cxx:14
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
xAOD::CaloCluster_v1::calE
flt_t calE() const
Geet Energy in signal state CALIBRATED.
xAOD::TrackCaloCluster_v1
Class describing a TrackCaloCluster.
Definition: TrackCaloCluster_v1.h:25
CutsMETMaker::accept
StatusCode accept(const xAOD::Muon *mu)
Definition: CutsMETMaker.cxx:18
JetConstituentModifierBase::process_impl
virtual StatusCode process_impl(xAOD::IParticleContainer *) const
Definition: JetConstituentModifierBase.h:33
test_pyathena.pt
pt
Definition: test_pyathena.py:11
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::CaloCluster_v1::setCalEta
void setCalEta(flt_t)
Set for signal state CALIBRATED.
Definition: CaloCluster_v1.cxx:311
ConstituentSubtractorTool::m_rescalingFileName
Gaudi::Property< std::string > m_rescalingFileName
Definition: ConstituentSubtractorTool.h:56
xAOD::FlowElement_v1::pt
virtual double pt() const override
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
JetConstituentModifierBase::m_applyToChargedPFO
bool m_applyToChargedPFO
Definition: JetConstituentModifierBase.h:62
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::TrackCaloCluster
TrackCaloCluster_v1 TrackCaloCluster
Reference the current persistent version:
Definition: TrackCaloCluster.h:12
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
xAOD::TrackCaloCluster_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
ConstituentSubtractorTool::m_doRapidityRescaling
Gaudi::Property< bool > m_doRapidityRescaling
Definition: ConstituentSubtractorTool.h:54
xAOD::FlowElement_v1::isCharged
bool isCharged() const
Definition: FlowElement_v1.cxx:56
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
xAOD::CaloCluster_v1::setCalPhi
void setCalPhi(flt_t)
Set for signal state CALIBRATED.
Definition: CaloCluster_v1.cxx:316
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ConstituentSubtractorTool::m_maxEta
Gaudi::Property< float > m_maxEta
Definition: ConstituentSubtractorTool.h:49
lumiFormat.i
int i
Definition: lumiFormat.py:85
ConstituentSubtractorTool::m_maxRapForRhoComputation
Gaudi::Property< float > m_maxRapForRhoComputation
Definition: ConstituentSubtractorTool.h:51
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::FlowElement
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Definition: FlowElement.h:16
xAOD::PFO_v1::charge
float charge() const
get charge of PFO
DataVector::front
const T * front() const
Access the first element in the collection as an rvalue.
file
TFile * file
Definition: tile_monitor.h:29
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
xAODType::ParticleFlow
@ ParticleFlow
The object is a particle-flow object.
Definition: ObjectType.h:41
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
JetConstituentModifierBase::setP4
StatusCode setP4(xAOD::IParticle *obj, const xAOD::JetFourMom_t &p4, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const
Definition: JetConstituentModifierBase.cxx:113
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
xAOD::PFO_v1::isCharged
bool isCharged() const
is a charged PFO
Definition: PFO_v1.cxx:251
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
xAOD::JetFourMom_t
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Definition: JetTypes.h:17
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
xAOD::PFO_v1
Class describing a particle flow object.
Definition: PFO_v1.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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
xAOD::TrackCaloCluster_v1::taste
virtual int taste() const
The taste of the particle.
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
JetConstituentModifierBase::m_inputType
unsigned int m_inputType
Definition: JetConstituentModifierBase.h:60
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ConstituentSubtractorTool::m_maxDeltaR
Gaudi::Property< float > m_maxDeltaR
Definition: ConstituentSubtractorTool.h:46
xAOD::TrackCaloCluster_v1::Taste
Taste
Type of TrackCaloCluster - Charged - Neutral - Combined.
Definition: TrackCaloCluster_v1.h:30
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
ConstituentSubtractorTool::m_rescaling
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > m_rescaling
Definition: ConstituentSubtractorTool.h:61
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
ConstituentSubtractorTool::m_gridSize
Gaudi::Property< float > m_gridSize
Definition: ConstituentSubtractorTool.h:52
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
pickleTool.object
object
Definition: pickleTool.py:30
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
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.PyAthena.obj
obj
Definition: PyAthena.py:132
SG::DataProxy
Definition: DataProxy.h:44
ConstituentSubtractorTool::m_alpha
Gaudi::Property< float > m_alpha
Definition: ConstituentSubtractorTool.h:47
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
DataVector::empty
bool empty() const noexcept
Returns true if the collection is empty.
fitman.k
k
Definition: fitman.py:528
xAOD::FlowElement_v1
A detector object made of other lower level object(s)
Definition: FlowElement_v1.h:25