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

Concrete implementation of HIJetSubtractorToolBase. Class used by HIClusterSubtraction and HIJetConstituentSubtractionTool to provide kinematics of a cluster after subtraction given an event shape. This version of the tool does not use the cell information and thus should be faster than HIJetCellSubtractorTool. More...

#include <HIJetClusterSubtractorTool.h>

Inheritance diagram for HIJetClusterSubtractorTool:
Collaboration diagram for HIJetClusterSubtractorTool:

Public Member Functions

 HIJetClusterSubtractorTool (const std::string &myname)
 Implements method defined in base First argument is reference to four vector that is updated to reflect the subtracted kinematics of the IParticle passed in the second arg Method expects cl_in to be a cluster. More...
 
virtual void subtract (xAOD::IParticle::FourMom_t &, const xAOD::IParticle *, const xAOD::HIEventShapeContainer *, const HIEventShapeIndex *, const ToolHandle< IHIUEModulatorTool > &, const xAOD::HIEventShape *eshape) const override
 Abstract method where particle itself is not modified IParticle::FourMom_t containing kinematics after subtraction is passed by reference. More...
 
virtual void subtractWithMoments (xAOD::CaloCluster *, const xAOD::HIEventShapeContainer *, const HIEventShapeIndex *index, const ToolHandle< IHIUEModulatorTool > &, const xAOD::HIEventShape *eshape) const override
 
virtual void updateUsingCluster (xAOD::HIEventShapeContainer *shape, const HIEventShapeIndex *index, const xAOD::CaloCluster *cl) const override
 Method to update the shape based on a given cluster two sets of indices are passed by reference and updated by the method sets are queried to see if the cluster has already been used, e.g. More...
 
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function. More...
 
virtual StatusCode initializeTool ()
 
float minEnergyForMoments () const
 
float minEnergySigForMoments () const
 
bool usesCells () const
 
const xAOD::HIEventShapeContainergetShape () const
 
const HIEventShapeIndexgetIndex () const
 
const IHIUEModulatorToolgetModulator () const
 
void setShape (const xAOD::HIEventShapeContainer *s)
 
void setIndex (const HIEventShapeIndex *ind)
 
void setModulator (const IHIUEModulatorTool *mod)
 
virtual StatusCode configureEvent (const xAOD::HIEventShapeContainer *shape, const HIEventShapeIndex *index, const IHIUEModulatorTool *modulator)
 
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

void setMinEnergyForMoment (float min_E)
 
void setUpdateClusters (bool up)
 
bool UpdateClusters () const
 
void setSubtractedEtaPhi (float E, float &eta, float &phi, float eta0, float phi0, float sig) const
 
void setUseCells (bool v)
 
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...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

 ASG_TOOL_CLASS (HIJetClusterSubtractorTool, IHISubtractorTool)
 
float getWeight (float eta, float phi, int sample) const
 
float getWeightEta (float eta, float phi, int sample) const
 
float getWeightPhi (float eta, float phi, int sample) const
 
void updateSlice (xAOD::HIEventShape *slice, float ET, float phi0, float area_cluster) 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

bool m_init
 
Gaudi::Property< std::string > m_inputFile { this, "InputFile", "cluster.geo.HIJING_2018.root", "File containing cluster geometric moments." }
 
Gaudi::Property< std::string > m_configDir { this, "ConfigDir", "HIJetCorrection/", "Directory containing configuration file." }
 
TH3F * m_h3W
 
TH3F * m_h3Eta
 
TH3F * m_h3Phi
 
Gaudi::Property< bool > m_useSamplings { this, "UseSamplings", true, "Boolean for samplings use" }
 
Gaudi::Property< float > m_EminMoment { this, "MinimumEnergyForMoments", 50., "> E, cluster given tower coordinates" }
 
Gaudi::Property< float > m_EsigMoment { this, "MinimumSignificanceForMoments", 0.1, "if E after subtr / E total < this cut, cluster given tower coordinates" }
 
Gaudi::Property< bool > m_updateClusters { this, "UpdateClusters", false, "If true set cluster kinematics to reflect subtraction" }
 
Gaudi::Property< bool > m_useCells { this, "UseCells", true, "Boolean switch for cells usage" }
 
const xAOD::HIEventShapeContainerm_shape
 
const HIEventShapeIndexm_index
 
const IHIUEModulatorToolm_modulator
 
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

Concrete implementation of HIJetSubtractorToolBase. Class used by HIClusterSubtraction and HIJetConstituentSubtractionTool to provide kinematics of a cluster after subtraction given an event shape. This version of the tool does not use the cell information and thus should be faster than HIJetCellSubtractorTool.

Author
Aaron Angerami anger.nosp@m.ami@.nosp@m.cern..nosp@m.ch
Date
Jan, 2015

Definition at line 31 of file HIJetClusterSubtractorTool.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

◆ HIJetClusterSubtractorTool()

HIJetClusterSubtractorTool::HIJetClusterSubtractorTool ( const std::string &  myname)

Implements method defined in base First argument is reference to four vector that is updated to reflect the subtracted kinematics of the IParticle passed in the second arg Method expects cl_in to be a cluster.

Definition at line 17 of file HIJetClusterSubtractorTool.cxx.

17  : HIJetSubtractorToolBase(myname),
18  m_init(false),
19  m_h3W(nullptr),
20  m_h3Eta(nullptr),
21  m_h3Phi(nullptr),
22  m_useSamplings(true)
23 {
24  declareProperty("UseSamplings",m_useSamplings=true);
25  setUseCells(false);
26 }

Member Function Documentation

◆ ASG_TOOL_CLASS()

HIJetClusterSubtractorTool::ASG_TOOL_CLASS ( HIJetClusterSubtractorTool  ,
IHISubtractorTool   
)
private

◆ configureEvent()

StatusCode HIJetSubtractorToolBase::configureEvent ( const xAOD::HIEventShapeContainer shape,
const HIEventShapeIndex index,
const IHIUEModulatorTool modulator 
)
virtualinherited

Definition at line 40 of file HIJetSubtractorToolBase.cxx.

41 {
42  setShape(shape);
43  setIndex(index);
44  setModulator(modulator);
45  return StatusCode::SUCCESS;
46 
47 }

◆ 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

◆ getIndex()

const HIEventShapeIndex* HIJetSubtractorToolBase::getIndex ( ) const
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 36 of file HIJetSubtractorToolBase.h.

36 {return m_index;};

◆ 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  }

◆ getModulator()

const IHIUEModulatorTool* HIJetSubtractorToolBase::getModulator ( ) const
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 37 of file HIJetSubtractorToolBase.h.

37 {return m_modulator;};

◆ 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.

◆ getShape()

const xAOD::HIEventShapeContainer* HIJetSubtractorToolBase::getShape ( ) const
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 35 of file HIJetSubtractorToolBase.h.

35 {return m_shape;};

◆ getWeight()

float HIJetClusterSubtractorTool::getWeight ( float  eta,
float  phi,
int  sample 
) const
private

Definition at line 224 of file HIJetClusterSubtractorTool.cxx.

225 {
226  return m_h3W->GetBinContent(m_h3W->FindFixBin(eta,phi,sample));
227 }

◆ getWeightEta()

float HIJetClusterSubtractorTool::getWeightEta ( float  eta,
float  phi,
int  sample 
) const
private

Definition at line 228 of file HIJetClusterSubtractorTool.cxx.

229 {
230  return m_h3Eta->GetBinContent(m_h3Eta->FindFixBin(eta,phi,sample));
231 }

◆ getWeightPhi()

float HIJetClusterSubtractorTool::getWeightPhi ( float  eta,
float  phi,
int  sample 
) const
private

Definition at line 232 of file HIJetClusterSubtractorTool.cxx.

233 {
234  return m_h3Phi->GetBinContent(m_h3Phi->FindFixBin(eta,phi,sample));
235 }

◆ initialize()

StatusCode HIJetClusterSubtractorTool::initialize ( )
overridevirtual

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 217 of file HIJetClusterSubtractorTool.cxx.

218 {
219  return initializeTool();
220 
221 }

◆ initializeTool()

StatusCode HIJetClusterSubtractorTool::initializeTool ( )
virtual

Definition at line 171 of file HIJetClusterSubtractorTool.cxx.

172 {
173  if(m_useSamplings)
174  {
175  std::string local_path=static_cast<std::string>(m_configDir)+m_inputFile;
176  std::string full_path=PathResolverFindCalibFile(local_path);
177  ATH_MSG_INFO("Reading input file "<< m_inputFile << " from " << full_path);
178  TFile* f=TFile::Open(full_path.c_str());
179  if(f==nullptr)
180  {
181  ATH_MSG_FATAL("Cannot read config file " << full_path );
182  return StatusCode::FAILURE;
183  }
184 
185  m_h3W=(TH3F*)f->GetObjectChecked("h3_w","TH3F");
186  if(m_h3W==nullptr)
187  {
188  ATH_MSG_FATAL("Cannot find TH3F m_h3W in config file " << full_path );
189  return StatusCode::FAILURE;
190  }
191 
192  m_h3Eta=(TH3F*)f->GetObjectChecked("h3_eta","TH3F");
193  if(m_h3Eta==nullptr)
194  {
195  ATH_MSG_FATAL("Cannot find TH3F m_h3Eta in config file " << full_path );
196  return StatusCode::FAILURE;
197  }
198 
199  m_h3Phi=(TH3F*)f->GetObjectChecked("h3_phi","TH3F");
200  if(m_h3Phi==nullptr)
201  {
202  ATH_MSG_FATAL("Cannot find TH3F m_h3Phi in config file " << full_path );
203  return StatusCode::FAILURE;
204  }
205  m_h3W->SetDirectory(0);
206  m_h3Eta->SetDirectory(0);
207  m_h3Phi->SetDirectory(0);
208 
209  f->Close();
210  }
211  m_init=true;
212  return StatusCode::SUCCESS;
213 
214 }

◆ 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.

◆ minEnergyForMoments()

float HIJetSubtractorToolBase::minEnergyForMoments ( ) const
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 30 of file HIJetSubtractorToolBase.h.

30 {return m_EminMoment;};

◆ minEnergySigForMoments()

float HIJetSubtractorToolBase::minEnergySigForMoments ( ) const
inlineinherited

Definition at line 31 of file HIJetSubtractorToolBase.h.

31 {return m_EsigMoment;};

◆ 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

◆ 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  }

◆ setIndex()

void HIJetSubtractorToolBase::setIndex ( const HIEventShapeIndex ind)
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 39 of file HIJetSubtractorToolBase.h.

39 {m_index=ind;};

◆ setMinEnergyForMoment()

void HIJetSubtractorToolBase::setMinEnergyForMoment ( float  min_E)
inlineprotectedinherited

Definition at line 57 of file HIJetSubtractorToolBase.h.

57 { m_EminMoment=min_E; };

◆ setModulator()

void HIJetSubtractorToolBase::setModulator ( const IHIUEModulatorTool mod)
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 40 of file HIJetSubtractorToolBase.h.

40 {m_modulator=mod;};

◆ setShape()

void HIJetSubtractorToolBase::setShape ( const xAOD::HIEventShapeContainer s)
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 38 of file HIJetSubtractorToolBase.h.

38 {m_shape=s;};

◆ setSubtractedEtaPhi()

void HIJetSubtractorToolBase::setSubtractedEtaPhi ( float  E,
float &  eta,
float &  phi,
float  eta0,
float  phi0,
float  sig 
) const
protectedinherited

Definition at line 24 of file HIJetSubtractorToolBase.cxx.

25 {
28  {
29  eta=eta0;
30  phi=phi0;
31  }
32  else if( E < minEnergyForMoments() || ( (sig > 0) && sig < minEnergySigForMoments() ) )
33  {
34  eta=eta0;
35  phi=phi0;
36  }
37 
38 }

◆ setUpdateClusters()

void HIJetSubtractorToolBase::setUpdateClusters ( bool  up)
inlineprotectedinherited

Definition at line 58 of file HIJetSubtractorToolBase.h.

58 { m_updateClusters=up; };

◆ setUseCells()

void HIJetSubtractorToolBase::setUseCells ( bool  v)
inlineprotectedinherited

Definition at line 64 of file HIJetSubtractorToolBase.h.

64 {m_useCells=v;};

◆ subtract()

void HIJetClusterSubtractorTool::subtract ( xAOD::IParticle::FourMom_t ,
const xAOD::IParticle ,
const xAOD::HIEventShapeContainer ,
const HIEventShapeIndex ,
const ToolHandle< IHIUEModulatorTool > &  ,
const xAOD::HIEventShape shape 
) const
overridevirtual

Abstract method where particle itself is not modified IParticle::FourMom_t containing kinematics after subtraction is passed by reference.

Implements IHISubtractorTool.

Definition at line 28 of file HIJetClusterSubtractorTool.cxx.

29 {
30 
31  const xAOD::CaloCluster* cl=static_cast<const xAOD::CaloCluster*>(cl_in);
32  float E_unsubtr=cl->e(HIJetRec::unsubtractedClusterState());
33  float eta_unsubtr=cl->eta(HIJetRec::unsubtractedClusterState());
34  float phi_unsubtr=cl->phi(HIJetRec::unsubtractedClusterState());
35 
36  float E_subtr=0;
37  float E_eta_subtr=0;
38  float E_phi_subtr=0;
39  const float eta0=cl->eta0();
40  const float phi0=cl->phi0();
41  float mod=1;
42  if(modulator) mod=modulator->getModulation(phi0, eshape);
43 
44  float energy=E_unsubtr;
45  float eta=eta0;
46  float phi=phi0;
47 
48  static const SG::ConstAccessor<float> HIEtaPhiWeightAcc("HIEtaPhiWeight");
49  if(HIEtaPhiWeightAcc.isAvailable(*cl))
50  {
51  float DF_weight=HIEtaPhiWeightAcc(*cl);
52  if(DF_weight!=0.) mod/=DF_weight;
53  }
54 
55  if(shape==nullptr)
56  {
57  ATH_MSG_ERROR("No HIEventShape supplied, cannot do subtraction");
58  return;
59  }
60 
61  if(m_useSamplings)
62  {
63  if(index==nullptr)
64  {
65  ATH_MSG_ERROR("No HIEventShapeIndex supplied, cannot do subtraction");
66  return;
67  }
68 
69  for(unsigned int sample=0; sample<24; sample++)
70  {
72  if(!cl->hasSampling(s)) continue;
73 
74  float nCells=index->getShape(eta0,sample,shape)->nCells();
75  float rho=0;
76  if(nCells!=0.) rho=index->getShape(eta0,sample,shape)->rho()/nCells;
77  rho*=mod*std::cosh(eta0);
78 
79  E_subtr+=rho*getWeight(eta0,phi0,sample);
80  E_eta_subtr+=rho*getWeightEta(eta0,phi0,sample);
81  E_phi_subtr+=rho*getWeightPhi(eta0,phi0,sample);
82  }
83 
84  energy=E_unsubtr-E_subtr;
85  if(energy!=0.)
86  {
87  eta=eta_unsubtr+(eta_unsubtr*E_subtr-E_eta_subtr)/energy;
88  phi=phi_unsubtr+(phi_unsubtr*E_subtr-E_phi_subtr)/energy;
89  }
91  }
92  else
93  {
94  unsigned int es_bin=HI::TowerBins::findBinEta(eta0);
95 
96  float area=shape->at(es_bin)->area();
97  float rho=(area==0.) ? 0. : shape->at(es_bin)->et()/area;
98 
99  rho*=mod*std::cosh(eta0);
100  E_subtr=rho*HI::TowerBins::getBinArea();
101  energy=E_unsubtr-E_subtr;
102  eta=eta_unsubtr;
103  phi=phi_unsubtr;
104 
105  ATH_MSG_VERBOSE("Subtracting"
106  << std::setw(8) << eta0
107  << std::setw(8) << phi0
108  << std::setw(10) << std::setprecision(3) << modulator->getModulation(phi0, eshape)
109  << std::setw(10) << std::setprecision(3) << mod
110  << std::setw(10) << std::setprecision(3) << modulator->getModulation(phi0, eshape)/mod
111  << std::setw(10) << std::setprecision(3) << area
112  << std::setw(10) << std::setprecision(3) << rho*area
113  << std::setw(10) << std::setprecision(3) << E_unsubtr*1e-3
114  << std::setw(10) << std::setprecision(3) << E_subtr*1e-3
115  << std::setw(10) << std::setprecision(3) << E_unsubtr*1e-3/std::cosh(eta0)
116  << std::setw(10) << std::setprecision(3) << E_subtr*1e-3/std::cosh(eta0));
117 
118 
119 
120 
121  }
122  float ET=energy/std::cosh(eta);
123  subtr_mom.SetPxPyPzE(ET*std::cos(phi),ET*std::sin(phi),ET*std::sinh(eta),energy);
124 }

◆ subtractWithMoments()

void HIJetClusterSubtractorTool::subtractWithMoments ( xAOD::CaloCluster cl,
const xAOD::HIEventShapeContainer shape,
const HIEventShapeIndex index,
const ToolHandle< IHIUEModulatorTool > &  modulator,
const xAOD::HIEventShape eshape 
) const
overridevirtual

Implements IHISubtractorTool.

Definition at line 164 of file HIJetClusterSubtractorTool.cxx.

165 {
166  xAOD::IParticle::FourMom_t subtr_mom;
167  subtract(subtr_mom, cl, shape, index, modulator, eshape);
169 }

◆ 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.

◆ UpdateClusters()

bool HIJetSubtractorToolBase::UpdateClusters ( ) const
inlineprotectedinherited

Definition at line 60 of file HIJetSubtractorToolBase.h.

60 { return m_updateClusters; };

◆ updateSlice()

void HIJetClusterSubtractorTool::updateSlice ( xAOD::HIEventShape slice,
float  ET,
float  phi0,
float  area_cluster 
) const
private

Definition at line 237 of file HIJetClusterSubtractorTool.cxx.

238 {
239  if(area_cluster==0.)
240  {
241  area_cluster=1.;
242 
243  if(ET==0.)
244  {
245  ATH_MSG_INFO("Provided cluster area was 0, check if the input file " << m_inputFile << " from " << PathResolverFindCalibFile(static_cast<std::string>(m_configDir)+m_inputFile) << " was generated with the currently used geometry. See ATLHI-472");
246  }
247  else
248  {
249  ATH_MSG_ERROR("Provided cluster area was 0, the HIEventShape will be incorrect! Check if the input file " << m_inputFile << " from " << PathResolverFindCalibFile(static_cast<std::string>(m_configDir)+m_inputFile) << " was generated with the currently used geometry. See ATLHI-472");
250  }
251  }
252 
253  float area_slice=slice->area();
254  float area_sf=1.;
255 
256  if(area_slice!=0.) area_sf-=area_cluster/area_slice;
257  slice->setNCells( std::floor(area_sf*slice->nCells()) );
258  slice->setEt(slice->et()-ET);
259  slice->setArea(area_slice-area_cluster);
260 
261  slice->setRho(slice->rho() - ET/area_cluster);
262 
263 
264  for(unsigned int ih=0; ih<slice->etCos().size(); ih++)
265  {
266  float ih_f=ih+1;
267  float tmp_cos = slice->etCos().at(ih);
268  slice->etCos()[ih] = tmp_cos + cos(ih_f*phi0)*ET;
269 
270  float tmp_sin = slice->etSin().at(ih);
271  slice->etSin()[ih] = tmp_sin + sin(ih_f*phi0)*ET;
272  }
273 }

◆ updateUsingCluster()

void HIJetClusterSubtractorTool::updateUsingCluster ( xAOD::HIEventShapeContainer shape,
const HIEventShapeIndex index,
const xAOD::CaloCluster cl 
) const
overridevirtual

Method to update the shape based on a given cluster two sets of indices are passed by reference and updated by the method sets are queried to see if the cluster has already been used, e.g.

by another jet seed checking/updating sets prevents double counting eta-bin set used to determine eta-averaged flow

Implements IHISubtractorTool.

Definition at line 126 of file HIJetClusterSubtractorTool.cxx.

127 {
128 
129  float eta0=cl->eta0();
130  float phi0=cl->phi0();
131 
132  if(m_useSamplings)
133  {
134  for(unsigned int sample=0; sample<24; sample++)
135  {
137  if(!cl->hasSampling(s)) continue;
138  float esamp=cl->eSample(s);
139  float ET=esamp/std::cosh(eta0);
140  xAOD::HIEventShape* slice=shape->at(index->getIndex(eta0,sample));
141  float area_cluster=getWeight(eta0,phi0,sample);
142  //update members
143  updateSlice(slice,ET,phi0,area_cluster);
144  }
145  }
146  else
147  {
148  unsigned int es_bin=HI::TowerBins::findBinEta(eta0);
149  xAOD::HIEventShape* slice=shape->at(es_bin);
150  constexpr float area_cluster=HI::TowerBins::getBinArea();
151  float ET=cl->e(HIJetRec::unsubtractedClusterState())/std::cosh(eta0);
152  static const SG::ConstAccessor<float> HIEtaPhiWeightAcc("HIEtaPhiWeight");
153  if(HIEtaPhiWeightAcc.isAvailable(*cl))
154  {
155  float HI_weight=HIEtaPhiWeightAcc(*cl);
156  ET*=HI_weight;
157  }
158  //update members
159  updateSlice(slice,ET,phi0,area_cluster);
160  }
161 }

◆ 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  }

◆ usesCells()

bool HIJetSubtractorToolBase::usesCells ( ) const
inlinevirtualinherited

Implements IHISubtractorTool.

Definition at line 32 of file HIJetSubtractorToolBase.h.

32 {return m_useCells;};

Member Data Documentation

◆ m_configDir

Gaudi::Property< std::string > HIJetClusterSubtractorTool::m_configDir { this, "ConfigDir", "HIJetCorrection/", "Directory containing configuration file." }
private

Definition at line 62 of file HIJetClusterSubtractorTool.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_EminMoment

Gaudi::Property< float > HIJetSubtractorToolBase::m_EminMoment { this, "MinimumEnergyForMoments", 50., "> E, cluster given tower coordinates" }
privateinherited

Definition at line 46 of file HIJetSubtractorToolBase.h.

◆ m_EsigMoment

Gaudi::Property< float > HIJetSubtractorToolBase::m_EsigMoment { this, "MinimumSignificanceForMoments", 0.1, "if E after subtr / E total < this cut, cluster given tower coordinates" }
privateinherited

Definition at line 47 of file HIJetSubtractorToolBase.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_h3Eta

TH3F* HIJetClusterSubtractorTool::m_h3Eta
private

Definition at line 65 of file HIJetClusterSubtractorTool.h.

◆ m_h3Phi

TH3F* HIJetClusterSubtractorTool::m_h3Phi
private

Definition at line 66 of file HIJetClusterSubtractorTool.h.

◆ m_h3W

TH3F* HIJetClusterSubtractorTool::m_h3W
private

Definition at line 64 of file HIJetClusterSubtractorTool.h.

◆ m_index

const HIEventShapeIndex* HIJetSubtractorToolBase::m_index
privateinherited

Definition at line 52 of file HIJetSubtractorToolBase.h.

◆ m_init

bool HIJetClusterSubtractorTool::m_init
private

Definition at line 53 of file HIJetClusterSubtractorTool.h.

◆ m_inputFile

Gaudi::Property< std::string > HIJetClusterSubtractorTool::m_inputFile { this, "InputFile", "cluster.geo.HIJING_2018.root", "File containing cluster geometric moments." }
private

Definition at line 60 of file HIJetClusterSubtractorTool.h.

◆ m_modulator

const IHIUEModulatorTool* HIJetSubtractorToolBase::m_modulator
privateinherited

Definition at line 53 of file HIJetSubtractorToolBase.h.

◆ m_shape

const xAOD::HIEventShapeContainer* HIJetSubtractorToolBase::m_shape
privateinherited

Definition at line 51 of file HIJetSubtractorToolBase.h.

◆ m_updateClusters

Gaudi::Property< bool > HIJetSubtractorToolBase::m_updateClusters { this, "UpdateClusters", false, "If true set cluster kinematics to reflect subtraction" }
privateinherited

Definition at line 48 of file HIJetSubtractorToolBase.h.

◆ m_useCells

Gaudi::Property< bool > HIJetSubtractorToolBase::m_useCells { this, "UseCells", true, "Boolean switch for cells usage" }
privateinherited

Definition at line 49 of file HIJetSubtractorToolBase.h.

◆ m_useSamplings

Gaudi::Property< bool > HIJetClusterSubtractorTool::m_useSamplings { this, "UseSamplings", true, "Boolean for samplings use" }
private

Definition at line 68 of file HIJetClusterSubtractorTool.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:
HIJetSubtractorToolBase::minEnergyForMoments
float minEnergyForMoments() const
Definition: HIJetSubtractorToolBase.h:30
xAOD::HIEventShape_v2::et
float et() const
Transverse energy reconstructed on the slice.
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
HIJetClusterSubtractorTool::m_h3W
TH3F * m_h3W
Definition: HIJetClusterSubtractorTool.h:64
HIJetSubtractorToolBase::m_modulator
const IHIUEModulatorTool * m_modulator
Definition: HIJetSubtractorToolBase.h:53
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
HIJetClusterSubtractorTool::getWeightEta
float getWeightEta(float eta, float phi, int sample) const
Definition: HIJetClusterSubtractorTool.cxx:228
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
index
Definition: index.py:1
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
HI::TowerBins::findBinEta
unsigned int findBinEta(float eta)
Definition: HIEventDefs.h:46
HIJetSubtractorToolBase::HIJetSubtractorToolBase
HIJetSubtractorToolBase(const std::string &myname)
Definition: HIJetSubtractorToolBase.cxx:9
InDetAccessor::phi0
@ phi0
Definition: InDetAccessor.h:33
HIJetRec::inTowerBoundary
bool inTowerBoundary(float eta0, float phi0, float eta, float phi)
Definition: HIJetRecDefs.h:29
HIJetSubtractorToolBase::m_EsigMoment
Gaudi::Property< float > m_EsigMoment
Definition: HIJetSubtractorToolBase.h:47
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::HIEventShape_v2::area
float area() const
obtain the area of the eta slice
HIJetSubtractorToolBase::m_useCells
Gaudi::Property< bool > m_useCells
Definition: HIJetSubtractorToolBase.h:49
HIJetSubtractorToolBase::setUseCells
void setUseCells(bool v)
Definition: HIJetSubtractorToolBase.h:64
SG::ConstAccessor< float >
HIJetClusterSubtractorTool::updateSlice
void updateSlice(xAOD::HIEventShape *slice, float ET, float phi0, float area_cluster) const
Definition: HIJetClusterSubtractorTool.cxx:237
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
HIJetSubtractorToolBase::setIndex
void setIndex(const HIEventShapeIndex *ind)
Definition: HIJetSubtractorToolBase.h:39
Phi_mpi_pi
__HOSTDEV__ double Phi_mpi_pi(double)
Definition: GeoRegion.cxx:7
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
HI::TowerBins::getBinArea
constexpr float getBinArea()
Definition: HIEventDefs.h:34
HIJetClusterSubtractorTool::m_h3Eta
TH3F * m_h3Eta
Definition: HIJetClusterSubtractorTool.h:65
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:69
HIJetSubtractorToolBase::m_EminMoment
Gaudi::Property< float > m_EminMoment
Definition: HIJetSubtractorToolBase.h:46
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
HIJetClusterSubtractorTool::m_init
bool m_init
Definition: HIJetClusterSubtractorTool.h:53
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
xAOD::HIEventShape_v2
Interface class for the HI reconstruction EDM.
Definition: HIEventShape_v2.h:32
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
HIJetSubtractorToolBase::m_shape
const xAOD::HIEventShapeContainer * m_shape
Definition: HIJetSubtractorToolBase.h:51
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
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
HIJetRec::subtractedClusterState
constexpr xAOD::CaloCluster::State subtractedClusterState()
Definition: HIJetRecDefs.h:26
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:113
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
xAOD::nCells
setRawEt setRawPhi nCells
Definition: TrigCaloCluster_v1.cxx:33
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
HIJetSubtractorToolBase::setModulator
void setModulator(const IHIUEModulatorTool *mod)
Definition: HIJetSubtractorToolBase.h:40
HIJetClusterSubtractorTool::m_useSamplings
Gaudi::Property< bool > m_useSamplings
Definition: HIJetClusterSubtractorTool.h:68
CalibCoolCompareRT.up
up
Definition: CalibCoolCompareRT.py:109
python.BuildSignatureFlags.sig
sig
Definition: BuildSignatureFlags.py:218
python.xAODType.dummy
dummy
Definition: xAODType.py:4
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
hist_file_dump.f
f
Definition: hist_file_dump.py:135
HIJetClusterSubtractorTool::getWeightPhi
float getWeightPhi(float eta, float phi, int sample) const
Definition: HIJetClusterSubtractorTool.cxx:232
HIJetSubtractorToolBase::m_updateClusters
Gaudi::Property< bool > m_updateClusters
Definition: HIJetSubtractorToolBase.h:48
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
HIJetClusterSubtractorTool::m_inputFile
Gaudi::Property< std::string > m_inputFile
Definition: HIJetClusterSubtractorTool.h:60
HIJetSubtractorToolBase::minEnergySigForMoments
float minEnergySigForMoments() const
Definition: HIJetSubtractorToolBase.h:31
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
python.PyAthena.v
v
Definition: PyAthena.py:154
a
TList * a
Definition: liststreamerinfos.cxx:10
h
HIJetClusterSubtractorTool::m_h3Phi
TH3F * m_h3Phi
Definition: HIJetClusterSubtractorTool.h:66
HIJetClusterSubtractorTool::initializeTool
virtual StatusCode initializeTool()
Definition: HIJetClusterSubtractorTool.cxx:171
HIJetRec::unsubtractedClusterState
constexpr xAOD::CaloCluster::State unsubtractedClusterState()
Definition: HIJetRecDefs.h:25
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
HIJetClusterSubtractorTool::getWeight
float getWeight(float eta, float phi, int sample) const
Definition: HIJetClusterSubtractorTool.cxx:224
HIJetClusterSubtractorTool::m_configDir
Gaudi::Property< std::string > m_configDir
Definition: HIJetClusterSubtractorTool.h:62
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
HIJetSubtractorToolBase::setSubtractedEtaPhi
void setSubtractedEtaPhi(float E, float &eta, float &phi, float eta0, float phi0, float sig) const
Definition: HIJetSubtractorToolBase.cxx:24
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
HIJetClusterSubtractorTool::subtract
virtual void subtract(xAOD::IParticle::FourMom_t &, const xAOD::IParticle *, const xAOD::HIEventShapeContainer *, const HIEventShapeIndex *, const ToolHandle< IHIUEModulatorTool > &, const xAOD::HIEventShape *eshape) const override
Abstract method where particle itself is not modified IParticle::FourMom_t containing kinematics afte...
Definition: HIJetClusterSubtractorTool.cxx:28
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
area
double area(double R)
Definition: ConvertStaveServices.cxx:42
SG::DataProxy
Definition: DataProxy.h:45
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
HIJetRec::setClusterP4
void setClusterP4(const xAOD::CaloCluster::FourMom_t &p, xAOD::CaloCluster *cl, xAOD::CaloCluster::State s)
Definition: HIJetRecDefs.h:36
HIJetSubtractorToolBase::setShape
void setShape(const xAOD::HIEventShapeContainer *s)
Definition: HIJetSubtractorToolBase.h:38
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
fitman.rho
rho
Definition: fitman.py:532
fitman.k
k
Definition: fitman.py:528
HIJetSubtractorToolBase::m_index
const HIEventShapeIndex * m_index
Definition: HIJetSubtractorToolBase.h:52