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

#include <egammaForwardBuilder.h>

Inheritance diagram for egammaForwardBuilder:
Collaboration diagram for egammaForwardBuilder:

Public Member Functions

 egammaForwardBuilder (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor. More...
 
 ~egammaForwardBuilder ()=default
 Destructor. More...
 
virtual StatusCode initialize () override final
 Initialize method. More...
 
virtual StatusCode finalize () override final
 Finalize method. More...
 
virtual StatusCode execute (const EventContext &ctx) const override final
 Execute method. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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 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, V, H > &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 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

ToolHandleArray< IAsgForwardElectronIsEMSelectorm_forwardElectronIsEMSelectors
 Handle to the selectors. More...
 
Gaudi::Property< std::vector< std::string > > m_forwardElectronIsEMSelectorResultNames
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode RetrieveEMTrackMatchBuilder ()
 
StatusCode ExecObjectQualityTool (const EventContext &ctx, xAOD::Egamma *eg) const
 
std::pair< unsigned int, float > getnPVmu (const EventContext &ctx) const
 
void setAllTrackCaloMatchValues (xAOD::Electron *el, const std::array< xAOD::EgammaParameters::TrackCaloMatchType, 4 > &match_parameters, const std::array< double, 4 > &match_values) const
 Convinience wrapper to set track match values in all samplings. More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< IegammaOQFlagsBuilderm_objectQualityTool
 Tool to perform object quality. More...
 
ToolHandle< IEMTrackMatchBuilderm_trackMatchBuilder
 Tool to perform track-cluster matching. More...
 
Gaudi::Property< bool > m_doEnergyCal
 Private member flag to do energy calibration. More...
 
SG::ReadHandleKey< xAOD::VertexContainerm_pVtxKey
 Input primary vertices for fwd energy calibration. More...
 
SG::ReadHandleKey< xAOD::EventInfom_eiKey
 Input EventInfo for fwd energy calibration. More...
 
ServiceHandle< IegammaMVASvcm_MVACalibSvc
 Handle to the MVA calibration service. More...
 
SG::ReadHandleKey< xAOD::CaloClusterContainerm_topoClusterKey
 Input topo cluster type. More...
 
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloDetDescrMgrKey
 Calorimeter description. More...
 
SG::WriteHandleKey< xAOD::ElectronContainerm_electronOutputKey
 Output electron container. More...
 
SG::WriteHandleKey< xAOD::CaloClusterContainerm_outClusterContainerKey
 Output cluster container. More...
 
SG::WriteHandleKey< CaloClusterCellLinkContainerm_outClusterContainerCellLinkKey
 Output cluster container cell links: name taken from containter name. More...
 
Gaudi::Property< bool > m_doTrackMatching
 Private member flag to do the track matching. More...
 
Gaudi::Property< bool > m_doCookieCutting
 Private member flag to do cookie cutting. More...
 
Gaudi::Property< int > m_maxDelEtaCells
 Size of maximum search window in eta. More...
 
Gaudi::Property< int > m_maxDelPhiCells
 Size of maximum search window in phi. More...
 
Gaudi::Property< float > m_maxDelR
 Size of cone to cookie cut on FCal. More...
 
Gaudi::Accumulators::Counter m_AllClusters {}
 
Gaudi::Accumulators::Counter m_MatchedClusters {}
 
egammaClusterCookieCut::CookieCutPars m_CookieCutPars {}
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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

Algorithm which makes a egammaObjectCollection for forward electrons. egammaForwardBuilder, is dedicated to the reconstruction and identification of electrons in the forward region of ATLAS (2.5<|eta|<4.9). In contrast to the softe and egamma builders the algorithm can use only the information from the calorimeters, as the tracking system is limited to |eta|<2.5, and the topological clusters (instead of SW clusters). The pre-selection and ID are done in the same algorithm. The variables used to discriminant between electron and hadrons are defined as the topo cluster moments or combination of them. This is done separately in two eta bins: the EMEC IW and the FCal using a cut based technic. The forward electron AUTHOR is 8.

Definition at line 59 of file egammaForwardBuilder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ egammaForwardBuilder()

egammaForwardBuilder::egammaForwardBuilder ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Constructor.

Definition at line 28 of file egammaForwardBuilder.cxx.

30  : AthReentrantAlgorithm(name, pSvcLocator)
31 {}

◆ ~egammaForwardBuilder()

egammaForwardBuilder::~egammaForwardBuilder ( )
default

Destructor.

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ ExecObjectQualityTool()

StatusCode egammaForwardBuilder::ExecObjectQualityTool ( const EventContext &  ctx,
xAOD::Egamma eg 
) const
private

Definition at line 286 of file egammaForwardBuilder.cxx.

289  {
290  // Protection in case tool is not available return success as algorithm can run without it.
291  if (!m_objectQualityTool.isEnabled()) { return StatusCode::SUCCESS; }
292 
293  return m_objectQualityTool->execute(ctx,*eg);
294 }

◆ execute()

StatusCode egammaForwardBuilder::execute ( const EventContext &  ctx) const
finaloverridevirtual

Execute method.

Definition at line 97 of file egammaForwardBuilder.cxx.

98 {
99  // Create an egamma container and register it.
101  ATH_CHECK(xaodFrwd.record(
102  std::make_unique<xAOD::ElectronContainer>(),
103  std::make_unique<xAOD::ElectronAuxContainer>())
104  );
105 
106  // Create the relevant cluster output and register it.
109  ctx
110  );
111 
113  SG::WriteHandle<CaloClusterCellLinkContainer> outClusterContainerCellLink(
115  ctx
116  );
117 
118  ATH_CHECK(outClusterContainerCellLink.record(
119  std::make_unique<CaloClusterCellLinkContainer>())
120  );
121 
122  // Topo cluster container.
124 
125  // Check is only used for serial running, remove when MT scheduler used.
126  ATH_CHECK(inputClusters.isValid());
127 
128  // Calorimeter description.
129  SG::ReadCondHandle<CaloDetDescrManager> caloDetDescrMgrHandle{
131  };
132  ATH_CHECK(caloDetDescrMgrHandle.isValid());
133  const CaloDetDescrManager* calodetdescrmgr = *caloDetDescrMgrHandle;
134 
135  static const SG::AuxElement::Accessor<
136  std::vector<ElementLink<xAOD::CaloClusterContainer>>
137  > caloClusterLinks("constituentClusterLinks");
138 
139  // Prepare to create clusters.
140  EgammaRecContainer egammaRecsFwd;
141  size_t origClusterIndex = 0;
142 
144  if (m_doEnergyCal) {
145  std::pair<float,float> nPVmu = this->getnPVmu(ctx);
146  gei.nPV = nPVmu.first;
147  gei.acmu = nPVmu.second;
148  ATH_MSG_DEBUG("Retrieved nPV = " << gei.nPV << " and mu = " << gei.acmu);
149  }
150 
151  // Loop over input cluster container and create egRecs to store the electrons.
152  ATH_MSG_VERBOSE("Will run on " << inputClusters->size() << " input clusters, doing cookie cut ? " << m_doCookieCutting);
153  for (const xAOD::CaloCluster* cluster : *inputClusters) {
154 
155  // Create links back to the original clusters.
156  std::vector<ElementLink<xAOD::CaloClusterContainer>> constituentLinks;
157 
158  // The constituent links should contain a CaloCal cluster. When not running
159  // in ITk mode this is the default for the forward clusters used by egamma
160  // so no sister link is needed to get the CaloCal. When running in ITk mode
161  // the clusters used are CaloTopoClusters so need to access the sister
162  // cluster to maintain consistency.
163  if (m_doTrackMatching) {
165  cluster->getSisterClusterLink();
166 
167  if (sisterCluster) {
168  constituentLinks.push_back(sisterCluster);
169  } else {
170  ATH_MSG_WARNING("No sister Link available");
171  }
172  } else {
173  constituentLinks.emplace_back(*inputClusters, origClusterIndex, ctx);
174  }
175 
176  const DataLink<CaloCellContainer>& cellCont =
177  cluster->getCellLinks()->getCellContainerLink();
178 
179  // Create the new cluster.
180  std::unique_ptr<xAOD::CaloCluster> newCluster =
182  egammaClusterCookieCut::cookieCut(*cluster, *calodetdescrmgr,
183  cellCont, m_CookieCutPars) :
184  std::make_unique<xAOD::CaloCluster>(*cluster);
185 
186  if (!newCluster || newCluster->size() == 0) {
187  ATH_MSG_DEBUG("Could not build a new cluster, or has 0 cell");
188  continue;
189  }
190 
191  if (m_doEnergyCal &&
192  m_MVACalibSvc->execute(*newCluster, xAOD::EgammaParameters::forwardelectron, gei).isFailure())
193  { ATH_MSG_ERROR("Problem executing MVA cluster tool for fwd electron"); }
194 
195  caloClusterLinks(*newCluster) = constituentLinks;
196  outClusterContainer->push_back(std::move(newCluster));
197 
198  size_t index = outClusterContainer->size() - 1;
199  const ElementLink<xAOD::CaloClusterContainer> clusterLink(*outClusterContainer, index, ctx);
200  const std::vector<ElementLink<xAOD::CaloClusterContainer>> clusterLinkVector{clusterLink};
201 
202  // Now create the egamma Rec
203  egammaRecsFwd.push_back(std::make_unique<egammaRec>(clusterLinkVector));
204 
205  ++origClusterIndex;
206  }
207 
208  // Add track-cluster matching information if requested.
209  if (m_doTrackMatching) {
210  ATH_CHECK(m_trackMatchBuilder->executeRec(ctx, &egammaRecsFwd));
211  }
212 
213  auto buff_AllClusters = m_AllClusters.buffer();
214  auto buff_MatchedClusters = m_MatchedClusters.buffer();
215 
216  //Loop over the egamma Rec creating electrons
217  for (const egammaRec* egRec : egammaRecsFwd) {
218  if (!egRec) {
219  return StatusCode::FAILURE;
220  }
221 
222  ++buff_AllClusters;
223 
224  if (m_doTrackMatching && egRec->getNumberOfTrackParticles() == 0) {
225  // Later we may want to use these for so called forward photons.
226  ATH_MSG_DEBUG("EgammaRec without track particle");
227  continue;
228  }
229 
230  //common part
231  xAOD::Electron* el = xaodFrwd->push_back(std::make_unique<xAOD::Electron>());
233  el->setCaloClusterLinks(egRec->caloClusterElementLinks());
234 
235  // from here one, we need both track matching and
236  // having tracks .
237  if (m_doTrackMatching) {
238 
239  ++buff_MatchedClusters;
240  el->setTrackParticleLinks(egRec->trackParticleElementLinks());
241 
242  const xAOD::TrackParticle* trackParticle = el->trackParticle();
243  if (trackParticle) {
244  el->setCharge(trackParticle->charge());
245  } else {
246  ATH_MSG_WARNING("Forward electron without track particle, whereas"
247  " corresponding egammaRec has at least one");
248  }
249 
250  // Set DeltaEta, DeltaPhi, DeltaPhiRescaled.
251  el->setTrackCaloMatchValues(
252  egRec->deltaEta(),
253  egRec->deltaPhi(),
254  egRec->deltaPhiRescaled(),
255  egRec->deltaPhiLast()
256  );
257  }
258 
261 
262  // Apply the Forward Electron selectors.
263  for (size_t i = 0; i < m_forwardElectronIsEMSelectors.size(); ++i) {
266 
267  // Save the bool result.
268  const asg::AcceptData accept = selector->accept(ctx, el);
269  el->setPassSelection(static_cast<bool>(accept), name);
270 
271  // Save the isem.
272  el->setSelectionisEM(accept.getCutResultInverted(), "isEM" + name);
273  }
274 
275  }//end of loop over egammaRecs
276 
278  ctx,
279  outClusterContainer,
280  outClusterContainerCellLink);
281 
282  return StatusCode::SUCCESS;
283 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ finalize()

StatusCode egammaForwardBuilder::finalize ( )
finaloverridevirtual

Finalize method.

Definition at line 86 of file egammaForwardBuilder.cxx.

87 {
88 
89  ATH_MSG_INFO("====> Forward Egamma Statistics =============");
90  ATH_MSG_INFO(" All Clusters " << m_AllClusters);
91  ATH_MSG_INFO(" Matched Clusters " << m_MatchedClusters);
92  ATH_MSG_INFO("=============================================");
93 
94  return StatusCode::SUCCESS;
95 }

◆ getnPVmu()

std::pair< unsigned int, float > egammaForwardBuilder::getnPVmu ( const EventContext &  ctx) const
private

Definition at line 317 of file egammaForwardBuilder.cxx.

318  {
319  unsigned int npv(0);
320  float mu(0);
321 
323  if (!vtxCont.isValid()) {
324  ATH_MSG_WARNING("Cannot find " << m_pVtxKey.key()
325  << " container, returning nPV = 0");
326  } else {
327  for (const auto *vtx : *vtxCont) {
328  if (vtx->vertexType() == xAOD::VxType::PriVtx ||
329  vtx->vertexType() == xAOD::VxType::PileUp) { ++npv; }
330  }
331  }
332 
334  if (!eiCont.isValid()) {
335  ATH_MSG_WARNING("Cannot find " << m_eiKey.key() << " returning mu = 0");
336  } else {
337  mu = eiCont.get()->actualInteractionsPerCrossing();
338  }
339 
340  return std::make_pair(npv,mu);
341 }

◆ initialize()

StatusCode egammaForwardBuilder::initialize ( )
finaloverridevirtual

Initialize method.

Definition at line 33 of file egammaForwardBuilder.cxx.

34 {
35  m_CookieCutPars.maxDelEta = m_maxDelEtaCells * cellEtaSize * 0.5;
36  m_CookieCutPars.maxDelPhi = m_maxDelPhiCells * cellPhiSize * 0.5;
37  m_CookieCutPars.maxDelR2 = m_maxDelR * m_maxDelR; // Square now to avoid a slow sqrt later.
38 
39  // The data handle keys.
44  if (m_outClusterContainerCellLinkKey.key().empty()) {
46  }
48 
49  // Retrieve object quality tool.
50  if (!m_objectQualityTool.empty()) {
51  ATH_CHECK(m_objectQualityTool.retrieve());
52  }
53 
54  else {
55  m_objectQualityTool.disable();
56  }
57 
59 
60  if (
63  ) {
65  "Number of selectors doesn't match number of given fwd-electron selector names"
66  );
67 
68  return StatusCode::FAILURE;
69  }
70 
71  // Retrieve track match builder.
73 
74  // Retrive MVA energy calibration
75  if (m_doEnergyCal) {
76  ATH_CHECK(m_pVtxKey.initialize());
78  ATH_CHECK(m_MVACalibSvc.retrieve());
79  }
80 
81  ATH_MSG_DEBUG("Initialization completed successfully");
82 
83  return StatusCode::SUCCESS;
84 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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.

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ RetrieveEMTrackMatchBuilder()

StatusCode egammaForwardBuilder::RetrieveEMTrackMatchBuilder ( )
private

Definition at line 297 of file egammaForwardBuilder.cxx.

298 {
299  if (!m_doTrackMatching) {
300  m_trackMatchBuilder.disable();
301  return StatusCode::SUCCESS;
302  }
303 
304  if (m_trackMatchBuilder.empty()) {
305  ATH_MSG_ERROR("EMTrackMatchBuilder is empty, but track matching is enabled");
306  return StatusCode::FAILURE;
307  }
308 
309  if (m_trackMatchBuilder.retrieve().isFailure()) {
310  ATH_MSG_ERROR("Unable to retrieve " << m_trackMatchBuilder);
311  return StatusCode::FAILURE;
312  }
313 
314  return StatusCode::SUCCESS;
315 }

◆ setAllTrackCaloMatchValues()

void egammaForwardBuilder::setAllTrackCaloMatchValues ( xAOD::Electron el,
const std::array< xAOD::EgammaParameters::TrackCaloMatchType, 4 > &  match_parameters,
const std::array< double, 4 > &  match_values 
) const
private

Convinience wrapper to set track match values in all samplings.

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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_AllClusters

Gaudi::Accumulators::Counter egammaForwardBuilder::m_AllClusters {}
mutableprivate

Definition at line 213 of file egammaForwardBuilder.h.

◆ m_caloDetDescrMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> egammaForwardBuilder::m_caloDetDescrMgrKey
private
Initial value:
{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}

Calorimeter description.

Definition at line 144 of file egammaForwardBuilder.h.

◆ m_CookieCutPars

egammaClusterCookieCut::CookieCutPars egammaForwardBuilder::m_CookieCutPars {}
private

Definition at line 216 of file egammaForwardBuilder.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doCookieCutting

Gaudi::Property<bool> egammaForwardBuilder::m_doCookieCutting
private
Initial value:
{
this,
"doCookieCutting",
false,
"Boolean to do cookie cutting"
}

Private member flag to do cookie cutting.

Definition at line 182 of file egammaForwardBuilder.h.

◆ m_doEnergyCal

Gaudi::Property<bool> egammaForwardBuilder::m_doEnergyCal
private
Initial value:
{
this,
"doEnergyCal",
false,
"Boolean to do energy calibration"
}

Private member flag to do energy calibration.

Definition at line 107 of file egammaForwardBuilder.h.

◆ m_doTrackMatching

Gaudi::Property<bool> egammaForwardBuilder::m_doTrackMatching
private
Initial value:
{
this,
"doTrackMatching",
false,
"Boolean to do track matching"
}

Private member flag to do the track matching.

Definition at line 174 of file egammaForwardBuilder.h.

◆ m_eiKey

SG::ReadHandleKey<xAOD::EventInfo> egammaForwardBuilder::m_eiKey
private
Initial value:
{
this,
"EventInfoKey",
"",
"Name of the EventInfo object" }

Input EventInfo for fwd energy calibration.

Definition at line 122 of file egammaForwardBuilder.h.

◆ m_electronOutputKey

SG::WriteHandleKey<xAOD::ElectronContainer> egammaForwardBuilder::m_electronOutputKey
private
Initial value:
{
this,
"ElectronOutputName",
"",
"Name of Electron Container to be created"
}

Output electron container.

Definition at line 152 of file egammaForwardBuilder.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_forwardElectronIsEMSelectorResultNames

Gaudi::Property<std::vector<std::string> > egammaForwardBuilder::m_forwardElectronIsEMSelectorResultNames
protected
Initial value:
{
this,
"forwardelectronIsEMselectorResultNames",
{},
"The selector result names"
}

Definition at line 227 of file egammaForwardBuilder.h.

◆ m_forwardElectronIsEMSelectors

ToolHandleArray<IAsgForwardElectronIsEMSelector> egammaForwardBuilder::m_forwardElectronIsEMSelectors
protected
Initial value:
{
this,
"forwardelectronIsEMselectors",
{},
"The selectors that we need to apply to the FwdElectron object"
}

Handle to the selectors.

Definition at line 220 of file egammaForwardBuilder.h.

◆ m_MatchedClusters

Gaudi::Accumulators::Counter egammaForwardBuilder::m_MatchedClusters {}
mutableprivate

Definition at line 214 of file egammaForwardBuilder.h.

◆ m_maxDelEtaCells

Gaudi::Property<int> egammaForwardBuilder::m_maxDelEtaCells
private
Initial value:
{
this,
"MaxWindowDelEtaCells",
3,
"Size of maximum search window in eta"
}

Size of maximum search window in eta.

Definition at line 190 of file egammaForwardBuilder.h.

◆ m_maxDelPhiCells

Gaudi::Property<int> egammaForwardBuilder::m_maxDelPhiCells
private
Initial value:
{
this,
"MaxWindowDelPhiCells",
3,
"Size of maximum search window in phi"
}

Size of maximum search window in phi.

Definition at line 198 of file egammaForwardBuilder.h.

◆ m_maxDelR

Gaudi::Property<float> egammaForwardBuilder::m_maxDelR
private
Initial value:
{
this,
"MaxWindowDelR",
0.3,
"Cone size to collect cells around hottest-cell FCAL"
}

Size of cone to cookie cut on FCal.

Definition at line 206 of file egammaForwardBuilder.h.

◆ m_MVACalibSvc

ServiceHandle<IegammaMVASvc> egammaForwardBuilder::m_MVACalibSvc
private
Initial value:
{
this,
"MVACalibSvc",
"egammaMVASvc",
"calibration service" }

Handle to the MVA calibration service.

Definition at line 129 of file egammaForwardBuilder.h.

◆ m_objectQualityTool

ToolHandle<IegammaOQFlagsBuilder> egammaForwardBuilder::m_objectQualityTool
private
Initial value:
{
this,
"ObjectQualityTool",
"",
"Name of the object quality tool (empty tool name ignored)"
}

Tool to perform object quality.

Definition at line 91 of file egammaForwardBuilder.h.

◆ m_outClusterContainerCellLinkKey

SG::WriteHandleKey<CaloClusterCellLinkContainer> egammaForwardBuilder::m_outClusterContainerCellLinkKey
private
Initial value:
{
this,
"ClusterContainerLinks", "",
"Key of the output cluster container cell links; Taken from associated container"}

Output cluster container cell links: name taken from containter name.

Definition at line 168 of file egammaForwardBuilder.h.

◆ m_outClusterContainerKey

SG::WriteHandleKey<xAOD::CaloClusterContainer> egammaForwardBuilder::m_outClusterContainerKey
private
Initial value:
{
this,
"ClusterContainerName",
""
"Name of the output EM cluster container"
}

Output cluster container.

Definition at line 160 of file egammaForwardBuilder.h.

◆ m_pVtxKey

SG::ReadHandleKey<xAOD::VertexContainer> egammaForwardBuilder::m_pVtxKey
private
Initial value:
{
this,
"PrimaryVerticesContainerKey",
"",
"Name of the primary vertex container" }

Input primary vertices for fwd energy calibration.

Definition at line 115 of file egammaForwardBuilder.h.

◆ m_topoClusterKey

SG::ReadHandleKey<xAOD::CaloClusterContainer> egammaForwardBuilder::m_topoClusterKey
private
Initial value:
{
this,
"TopoClusterName",
"",
"Name of the input cluster collection"
}

Input topo cluster type.

Definition at line 136 of file egammaForwardBuilder.h.

◆ m_trackMatchBuilder

ToolHandle<IEMTrackMatchBuilder> egammaForwardBuilder::m_trackMatchBuilder
private
Initial value:
{
this,
"TrackMatchBuilderTool",
"EMTrackMatchBuilder",
"Tool that matches tracks to egammaRecs (Fwd)"
}

Tool to perform track-cluster matching.

Definition at line 99 of file egammaForwardBuilder.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
egammaForwardBuilder::m_eiKey
SG::ReadHandleKey< xAOD::EventInfo > m_eiKey
Input EventInfo for fwd energy calibration.
Definition: egammaForwardBuilder.h:122
CaloClusterStoreHelper::finalizeClusters
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
Definition: CaloClusterStoreHelper.cxx:64
egammaForwardBuilder::m_CookieCutPars
egammaClusterCookieCut::CookieCutPars m_CookieCutPars
Definition: egammaForwardBuilder.h:216
egammaMVACalib::GlobalEventInfo::nPV
int nPV
Definition: GlobalEventInfo.h:10
SG::ReadCondHandle
Definition: ReadCondHandle.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
CaloClusterStoreHelper::AddContainerWriteHandle
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
Definition: CaloClusterStoreHelper.cxx:53
ParticleTest.eg
eg
Definition: ParticleTest.py:29
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
xAOD::TrackParticle_v1::charge
float charge() const
Returns the charge.
Definition: TrackParticle_v1.cxx:143
egammaClusterCookieCut::CookieCutPars::maxDelR2
double maxDelR2
Definition: egammaClusterCookieCut.h:14
egammaMVACalib::GlobalEventInfo::acmu
float acmu
Definition: GlobalEventInfo.h:11
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
index
Definition: index.py:1
egammaForwardBuilder::m_forwardElectronIsEMSelectors
ToolHandleArray< IAsgForwardElectronIsEMSelector > m_forwardElectronIsEMSelectors
Handle to the selectors.
Definition: egammaForwardBuilder.h:220
egammaClusterCookieCut::CookieCutPars::maxDelEta
double maxDelEta
Definition: egammaClusterCookieCut.h:12
CutsMETMaker::accept
StatusCode accept(const xAOD::Muon *mu)
Definition: CutsMETMaker.cxx:18
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
egammaForwardBuilder::m_AllClusters
Gaudi::Accumulators::Counter m_AllClusters
Definition: egammaForwardBuilder.h:213
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
egammaForwardBuilder::m_doCookieCutting
Gaudi::Property< bool > m_doCookieCutting
Private member flag to do cookie cutting.
Definition: egammaForwardBuilder.h:182
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
egammaForwardBuilder::RetrieveEMTrackMatchBuilder
StatusCode RetrieveEMTrackMatchBuilder()
Definition: egammaForwardBuilder.cxx:297
egammaForwardBuilder::ExecObjectQualityTool
StatusCode ExecObjectQualityTool(const EventContext &ctx, xAOD::Egamma *eg) const
Definition: egammaForwardBuilder.cxx:286
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
xAOD::EgammaParameters::AuthorFwdElectron
const uint16_t AuthorFwdElectron
Electron reconstructed by the Forward cluster-based algorithm.
Definition: EgammaDefs.h:30
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
egammaForwardBuilder::m_forwardElectronIsEMSelectorResultNames
Gaudi::Property< std::vector< std::string > > m_forwardElectronIsEMSelectorResultNames
Definition: egammaForwardBuilder.h:227
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
egammaForwardBuilder::m_maxDelR
Gaudi::Property< float > m_maxDelR
Size of cone to cookie cut on FCal.
Definition: egammaForwardBuilder.h:206
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
egammaForwardBuilder::m_outClusterContainerCellLinkKey
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outClusterContainerCellLinkKey
Output cluster container cell links: name taken from containter name.
Definition: egammaForwardBuilder.h:168
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:62
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
egammaForwardBuilder::m_doEnergyCal
Gaudi::Property< bool > m_doEnergyCal
Private member flag to do energy calibration.
Definition: egammaForwardBuilder.h:107
egammaClusterCookieCut::cookieCut
std::unique_ptr< xAOD::CaloCluster > cookieCut(const xAOD::CaloCluster &cluster, const CaloDetDescrManager &mgr, const DataLink< CaloCellContainer > &cellCont, const egammaClusterCookieCut::CookieCutPars &pars)
Definition: egammaClusterCookieCut.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
egammaForwardBuilder::m_doTrackMatching
Gaudi::Property< bool > m_doTrackMatching
Private member flag to do the track matching.
Definition: egammaForwardBuilder.h:174
egammaClusterCookieCut::CookieCutPars::maxDelPhi
double maxDelPhi
Definition: egammaClusterCookieCut.h:13
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:572
egammaForwardBuilder::m_maxDelPhiCells
Gaudi::Property< int > m_maxDelPhiCells
Size of maximum search window in phi.
Definition: egammaForwardBuilder.h:198
xAOD::CaloCluster_v1::size
size_t size() const
size method (forwarded from CaloClusterCellLink obj)
Definition: CaloCluster_v1.cxx:920
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
python.getProblemFolderFromLogs.el
dictionary el
Definition: getProblemFolderFromLogs.py:48
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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
DataVector
Derived DataVector<T>.
Definition: DataVector.h:795
egammaForwardBuilder::m_outClusterContainerKey
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outClusterContainerKey
Output cluster container.
Definition: egammaForwardBuilder.h:160
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
EMFourMomBuilder::calculate
void calculate(xAOD::Electron &electron)
Definition: EMFourMomBuilder.cxx:69
xAOD::VxType::PileUp
@ PileUp
Pile-up vertex.
Definition: TrackingPrimitives.h:574
egammaForwardBuilder::m_trackMatchBuilder
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track-cluster matching.
Definition: egammaForwardBuilder.h:99
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::Electron_v1
Definition: Electron_v1.h:34
egammaForwardBuilder::getnPVmu
std::pair< unsigned int, float > getnPVmu(const EventContext &ctx) const
Definition: egammaForwardBuilder.cxx:317
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
a
TList * a
Definition: liststreamerinfos.cxx:10
python.selector.AtlRunQuerySelectorLhcOlc.selector
selector
Definition: AtlRunQuerySelectorLhcOlc.py:610
h
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:469
egammaMVACalib::GlobalEventInfo
A structure holding some global event information.
Definition: GlobalEventInfo.h:9
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAOD::EgammaParameters::forwardelectron
@ forwardelectron
Definition: EgammaEnums.h:21
egammaForwardBuilder::m_topoClusterKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_topoClusterKey
Input topo cluster type.
Definition: egammaForwardBuilder.h:136
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
egammaRec
Definition: egammaRec.h:31
egammaForwardBuilder::m_pVtxKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pVtxKey
Input primary vertices for fwd energy calibration.
Definition: egammaForwardBuilder.h:115
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
egammaForwardBuilder::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Calorimeter description.
Definition: egammaForwardBuilder.h:144
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:44
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
egammaForwardBuilder::m_MVACalibSvc
ServiceHandle< IegammaMVASvc > m_MVACalibSvc
Handle to the MVA calibration service.
Definition: egammaForwardBuilder.h:129
asg::AcceptData
Definition: AcceptData.h:30
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:51
egammaForwardBuilder::m_MatchedClusters
Gaudi::Accumulators::Counter m_MatchedClusters
Definition: egammaForwardBuilder.h:214
egammaForwardBuilder::m_objectQualityTool
ToolHandle< IegammaOQFlagsBuilder > m_objectQualityTool
Tool to perform object quality.
Definition: egammaForwardBuilder.h:91
egammaForwardBuilder::m_maxDelEtaCells
Gaudi::Property< int > m_maxDelEtaCells
Size of maximum search window in eta.
Definition: egammaForwardBuilder.h:190
fitman.k
k
Definition: fitman.py:528
egammaForwardBuilder::m_electronOutputKey
SG::WriteHandleKey< xAOD::ElectronContainer > m_electronOutputKey
Output electron container.
Definition: egammaForwardBuilder.h:152
ServiceHandle< ICondSvc >