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

#include <JetPFlowSelectionAlg.h>

Inheritance diagram for JetPFlowSelectionAlg:
Collaboration diagram for JetPFlowSelectionAlg:

Public Member Functions

 JetPFlowSelectionAlg (const std::string &n, ISvcLocator *l)
 
StatusCode initialize () override
 Athena algorithm's Hooks. More...
 
StatusCode execute (const EventContext &ctx) const override
 
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 > &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

virtual ::StatusCode finalize ()
 finalize this algorithm More...
 
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

bool checkElectronLinks (const std::vector< ElementLink< xAOD::ElectronContainer > > &FE_ElectronLinks) const
 
bool checkMuonLinks (const std::vector< ElementLink< xAOD::MuonContainer > > &FE_MuonLinks) 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

Gaudi::Property< std::string > m_electronID {this,"electronID","LHMedium","Select electron ID"}
 
Gaudi::Property< bool > m_removeNeutralElectronFE {this,"removeNeutralElectronFE",false,"Remove neutral FE matched to electrons"}
 
Gaudi::Property< std::string > m_muonID {this,"muonID","Medium","Select muon ID"}
 
Gaudi::Property< bool > m_removeNeutralMuonFE {this,"removeNeutralMuonFE",false,"Remove neutral FE matched to muons"}
 
SG::ReadHandleKey< xAOD::FlowElementContainerm_ChargedPFlowContainerKey = {this, "ChargedPFlowInputContainer", "", "The input Charged PFlow Objects"}
 
SG::ReadHandleKey< xAOD::FlowElementContainerm_NeutralPFlowContainerKey = {this, "NeutralPFlowInputContainer", "", "The input Neutral PFlow Objects"}
 
SG::ReadHandleKey< xAOD::ElectronContainerm_electronContainerKey = {this, "ElectronInputContainer", "", "The input electron container"}
 
SG::WriteHandleKey< xAOD::FlowElementContainerm_outputChargedPFlowHandleKey = {this, "ChargedPFlowOutputContainer", "GlobalPFlowChargedParticleFlowObjects", "The output filtered Charged PFlow Objects"}
 
SG::WriteHandleKey< xAOD::FlowElementContainerm_outputNeutralPFlowHandleKey = {this, "NeutralPFlowOutputContainer", "GlobalPFlowNeutralParticleFlowObjects", "The output filtered Neutral PFlow Objects"}
 
SG::ReadDecorHandleKey< xAOD::FlowElementContainerm_chargedFEElectronsReadDecorKey {this, "ChargedFEElectronsReadDecorKey", "JetETMissChargedParticleFlowObjects.FE_ElectronLinks", "Key for links from charged FE to electrons"}
 
SG::ReadDecorHandleKey< xAOD::FlowElementContainerm_chargedFEMuonsReadDecorKey {this, "ChargedFEMuonsReadDecorKey", "JetETMissChargedParticleFlowObjects.FE_MuonLinks", "Key for links from charged FE to muons"}
 
SG::ReadDecorHandleKey< xAOD::FlowElementContainerm_neutralFEElectronsReadDecorKey {this, "NeutralFEElectronsReadDecorKey", "JetETMissNeutralParticleFlowObjects.FE_ElectronLinks", "Key for links from neutral FE to electrons"}
 
SG::ReadDecorHandleKey< xAOD::FlowElementContainerm_neutralFEMuonsReadDecorKey {this, "NeutralFEMuonsReadDecorKey","JetETMissNeutralParticleFlowObjects.FE_MuonLinks", "Key for links from neutral FE to muons"}
 
SG::ReadDecorHandleKey< xAOD::FlowElementContainerm_neutralFEMuons_efrac_match_DecorKey {this,"FlowElementContainer_FE_efrac_matched_muon","JetETMissNeutralParticleFlowObjects.FE_efrac_matched_muon","ReadDecorHandleKey for the fraction of neutral FlowElements cluster energy used to match to Muons"}
 
SG::ReadDecorHandleKey< xAOD::FlowElementContainerm_chargedFE_energy_match_muonReadHandleKey {this,"FlowElementContainer_ChargedFE_energy_matched_muon","JetETMissChargedParticleFlowObjects.FE_efrac_matched_muon","ReadHandleKey for the fraction of neutral FlowElements cluster energy used to match to Muons"}
 
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 creates a filtered collection of PFlow Objects not matched to electrons/muons.

Definition at line 24 of file JetPFlowSelectionAlg.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

◆ JetPFlowSelectionAlg()

JetPFlowSelectionAlg::JetPFlowSelectionAlg ( const std::string &  n,
ISvcLocator *  l 
)
inline

Definition at line 28 of file JetPFlowSelectionAlg.h.

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
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 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ checkElectronLinks()

bool JetPFlowSelectionAlg::checkElectronLinks ( const std::vector< ElementLink< xAOD::ElectronContainer > > &  FE_ElectronLinks) const
private

Definition at line 270 of file JetPFlowSelectionAlg.cxx.

270  {
271 
272  // Links to electrons
273  for (const ElementLink<xAOD::ElectronContainer>& ElectronLink: FE_ElectronLinks){
274  if (!ElectronLink.isValid()){
275  ATH_MSG_WARNING("JetPFlowSelectionAlg encountered an invalid electron element link. Skipping. ");
276  continue;
277  }
278 
280  bool passElectronID = false;
281  bool gotID = electron->passSelection(passElectronID, m_electronID);
282  if (!gotID) {
283  ATH_MSG_WARNING("Could not get Electron ID");
284  continue;
285  }
286 
287  if( electron->pt() > 10000 && passElectronID){
288  return true;
289  }
290  }
291 
292  return false;
293 }

◆ checkMuonLinks()

bool JetPFlowSelectionAlg::checkMuonLinks ( const std::vector< ElementLink< xAOD::MuonContainer > > &  FE_MuonLinks) const
private

Definition at line 295 of file JetPFlowSelectionAlg.cxx.

295  {
296 
297  // Links to muons
298  for (const ElementLink<xAOD::MuonContainer>& MuonLink: FE_MuonLinks){
299  if (!MuonLink.isValid()){
300  ATH_MSG_WARNING("JetPFlowSelectionAlg encountered an invalid muon element link. Skipping. ");
301  continue;
302  }
303 
304  //Details of medium muons are here:
305  //https://twiki.cern.ch/twiki/bin/view/Atlas/MuonSelectionTool
306  const xAOD::Muon* muon = *MuonLink;
307  xAOD::Muon::Quality quality = xAOD::Muon::VeryLoose;
308 
309  if (m_muonID == "Loose") quality = xAOD::Muon::Loose;
310  else if (m_muonID == "Medium") quality = xAOD::Muon::Medium;
311  else if (m_muonID == "Tight") quality = xAOD::Muon::Tight;
312 
313  if ( muon->quality() <= quality && muon->muonType() == xAOD::Muon::Combined ){
314  return true;
315  }
316  }
317 
318  return false;
319 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< 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 > &  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; }

◆ execute()

StatusCode JetPFlowSelectionAlg::execute ( const EventContext &  ctx) const
override

Definition at line 38 of file JetPFlowSelectionAlg.cxx.

38  {
39  ATH_MSG_DEBUG(" execute() ... ");
40 
42  if (! ChargedPFlowObjects.isValid()){
43  ATH_MSG_ERROR("Can't retrieve input container "<< m_ChargedPFlowContainerKey);
44  return StatusCode::FAILURE;
45  }
46 
48  if (! NeutralPFlowObjects.isValid()){
49  ATH_MSG_ERROR("Can't retrieve input container "<< m_NeutralPFlowContainerKey);
50  return StatusCode::FAILURE;
51  }
52 
54  if (!chargedFE_ElectronLinks.isValid()){
55  ATH_MSG_ERROR("Can't retrieve input decoration " << chargedFE_ElectronLinks.key());
56  return StatusCode::FAILURE;
57  }
58 
60  if (!chargedFE_MuonLinks.isValid()){
61  ATH_MSG_ERROR("Can't retrieve input decoration "<< chargedFE_MuonLinks.key());
62  return StatusCode::FAILURE;
63  }
64 
66  if (!neutralFE_ElectronLinks.isValid()){
67  ATH_MSG_ERROR("Can't retrieve input decoration "<< neutralFE_ElectronLinks.key());
68  return StatusCode::FAILURE;
69  }
70 
72  if (!neutralFE_MuonLinks.isValid()){
73  ATH_MSG_ERROR("Can't retrieve input decoration "<< neutralFE_MuonLinks.key());
74  return StatusCode::FAILURE;
75  }
76 
77  auto selectedChargedPFlowObjects = std::make_unique<xAOD::FlowElementContainer>(); // SG::VIEW_ELEMENTS
78  auto selectedChargedPFlowObjectsAux = std::make_unique<xAOD::FlowElementAuxContainer>();
79  selectedChargedPFlowObjects->setStore(selectedChargedPFlowObjectsAux.get());
80 
81  auto selectedNeutralPFlowObjects = std::make_unique<xAOD::FlowElementContainer>();
82  auto selectedNeutralPFlowObjectsAux = std::make_unique<xAOD::FlowElementAuxContainer>();
83  selectedNeutralPFlowObjects->setStore(selectedNeutralPFlowObjectsAux.get());
84 
85  // To store the charged FE objects matched to an electron/muon
86  std::vector< const xAOD::FlowElement* > ChargedPFlowObjects_matched;
87 
88  // Loop over Charged FE objects
89  for ( const xAOD::FlowElement* fe : *ChargedPFlowObjects ) {
90 
91  // Select FE object if not matched to an electron or muon via links
92  if ( !checkElectronLinks(chargedFE_ElectronLinks(*fe)) && !checkMuonLinks(chargedFE_MuonLinks(*fe)) ){
93  xAOD::FlowElement* selectedFE = new xAOD::FlowElement();
94  selectedChargedPFlowObjects->push_back(selectedFE);
95  *selectedFE = *fe; // copies auxdata
96  }
97  else { // Use the matched object to put back its energy later
98  ChargedPFlowObjects_matched.push_back(fe);
99  }
100 
101  } // End loop over Charged FE Objects
102 
103 
104  // Loop over Neutral FE objects
105  for ( const xAOD::FlowElement* fe : *NeutralPFlowObjects ) {
106 
107  //if links to an electron, then we veto entire neutral FE
109  if (checkElectronLinks(neutralFE_ElectronLinks(*fe))) continue;
110  }
111 
112  xAOD::FlowElement* selectedFE = new xAOD::FlowElement();
113  selectedNeutralPFlowObjects->push_back(selectedFE);
114  *selectedFE = *fe;
115 
116  //if links to a muon, then we need to subtract off the muon energy in
117  //this calorimeter cluster
118  if (m_removeNeutralMuonFE && checkMuonLinks(neutralFE_MuonLinks(*fe))){
120  double totalMuonCaloEnergy = 0.0;
121  for (auto energy : clusterMuonEnergyFracs(*fe) ) totalMuonCaloEnergy += energy;
122  TLorentzVector newP4;
123  newP4.SetPxPyPzE(fe->p4().Px(),fe->p4().Py(),fe->p4().Pz(),fe->e() - totalMuonCaloEnergy);
124  selectedFE->setP4(newP4);
125  }
126 
127 
128  } // End loop over Neutral FE Objects
129 
130  // Add the energy from removed charged FE clusters to neutral FE object
131  // if shared clusters exist, create the new neutral FE object otherwise
132  for ( const xAOD::FlowElement* chargedFE : ChargedPFlowObjects_matched ){
133 
134  // Get charged FE topoclusters and weights
135  std::vector<std::pair<const xAOD::IParticle*,float> > theOtherPairs_charged = chargedFE->otherObjectsAndWeights();
136  std::vector<ElementLink<xAOD::IParticleContainer>> theOtherLinks_charged = chargedFE->otherObjectLinks();
137 
138  // Loop over charged FE topoclusters
139  for (unsigned int iCluster = 0; iCluster < chargedFE->nOtherObjects(); ++iCluster){
140 
141  bool thisCluster_matched = false;
142 
143  std::pair<const xAOD::IParticle*,float> theOtherPair_charged = theOtherPairs_charged[iCluster];
144  const xAOD::IParticle* theCluster_charged = theOtherPair_charged.first;
145  float theClusterWeight_charged = theOtherPair_charged.second;
146 
147  // Loop over neutral FE objects
148  for ( xAOD::FlowElement* neutralFE : *selectedNeutralPFlowObjects ) {
149  if (thisCluster_matched) continue;
150 
151  // Loop over neutral FE topoclusters
152  std::vector<std::pair<const xAOD::IParticle*,float> > theOtherPairs_neutral = neutralFE->otherObjectsAndWeights();
153  for (auto& [theCluster_neutral, theClusterWeight_neutral] : theOtherPairs_neutral){
154 
155  // If topoclusters are matched, add the energy to the neutral FE object
156  if (theCluster_charged == theCluster_neutral){
157 
158  // Add the energy to the neutral FE object
159  float newEnergy = neutralFE->e() + theClusterWeight_charged;
160  neutralFE->setP4(newEnergy/cosh(neutralFE->eta()),
161  neutralFE->eta(),
162  neutralFE->phi(),
163  neutralFE->m());
164 
165  ATH_MSG_DEBUG("Updated neutral FlowElement with E, pt, eta and phi: "
166  << neutralFE->e() << ", " << neutralFE->pt() << ", "
167  << neutralFE->eta() << " and " << neutralFE->phi());
168 
169  thisCluster_matched = true;
170  }
171 
172  } // End loop over neutral FE clusters
173  } // End loop over neutral FE objects
174 
175  // If a topocluster is left unmatched, create a neutral FE object.
176  // Ignore topoclusters with nullptr
177  if ( !thisCluster_matched && theCluster_charged ){
178 
179  //check if charged cluster belongs to an electron, before we put it back as neutral
180  bool belongsToElectron = false;
182 
183  //get container index of charged cluster and compare to indices of electron topoclusters
184  unsigned int chargedClusterIndex = theCluster_charged->index();
185 
187  if (!electronReadHandle.isValid()){
188  ATH_MSG_ERROR("Can't retrieve electron container "<< m_electronContainerKey.key());
189  return StatusCode::FAILURE;
190  }
191 
192  for (auto thisElectron : *electronReadHandle){
193  const std::vector<const xAOD::CaloCluster*> electronTopoClusters = xAOD::EgammaHelpers::getAssociatedTopoClusters(thisElectron->caloCluster());
194  for (auto thisElectronTopoCluster : electronTopoClusters){
195  if (thisElectronTopoCluster->index() == chargedClusterIndex){
196  belongsToElectron = true;
197  break;
198  }
199  }
200  }
201  }
202 
203  if (belongsToElectron) continue;
204 
205  bool belongsToMuon = false;
206  double muonCaloEnergy = 0.0;
207  if (m_removeNeutralMuonFE){
209  std::vector<double> muonCaloEnergies = chargedFE_energy_match_muonReadHandle(*chargedFE);
210  muonCaloEnergy = muonCaloEnergies[iCluster];
211  }
212 
213  if (belongsToMuon) continue;
214 
215  xAOD::FlowElement* newFE = new xAOD::FlowElement();
216  selectedNeutralPFlowObjects->push_back(newFE);
217 
218  newFE->setP4((theClusterWeight_charged - muonCaloEnergy) / cosh(theCluster_charged->eta()), // using energy from charged FE weight, not cluster->e()
219  theCluster_charged->eta(),
220  theCluster_charged->phi(),
221  theCluster_charged->m());
222  newFE->setCharge(0);
223  newFE->setSignalType(xAOD::FlowElement::SignalType::NeutralPFlow);
224 
225  ATH_MSG_DEBUG("Created neutral FlowElement with E, pt, eta and phi: "
226  << newFE->e() << ", " << newFE->pt() << ", "
227  << newFE->eta() << " and " << newFE->phi());
228 
229  std::vector<ElementLink<xAOD::IParticleContainer>> theClusters;
231  theIParticleLink.resetWithKeyAndIndex(theOtherLinks_charged[iCluster].persKey(), theOtherLinks_charged[iCluster].persIndex());
232 
233  theClusters.push_back(theIParticleLink);
234  newFE->setOtherObjectLinks(theClusters);
235 
236  //Add Standard data to these new FlowElements
238  const xAOD::CaloCluster* castCluster_charged = dynamic_cast<const xAOD::CaloCluster*>(theCluster_charged);
239  FEFiller.addStandardMoments(*newFE,*castCluster_charged);
240  FEFiller.addStandardSamplingEnergies(*newFE,*castCluster_charged);
241 
242  float layerEnergy_TileBar0 = castCluster_charged->eSample(xAOD::CaloCluster::CaloSample::TileBar0);
243  float layerEnergy_TileExt0 = castCluster_charged->eSample(xAOD::CaloCluster::CaloSample::TileExt0);
244  const static SG::AuxElement::Accessor<float> accFloatTIle0E("LAYERENERGY_TILE0");
245  accFloatTIle0E(*newFE) = layerEnergy_TileBar0 + layerEnergy_TileExt0;
246 
247  const static SG::AuxElement::Accessor<float> accFloatTiming("TIMING");
248  accFloatTiming(*newFE) = castCluster_charged->time();
249  }
250 
251  } // End loop over topoclusters of removed charged FE objects
252  } // End loop over removed charged FE objects
253 
254 
255  auto handle_ChargedPFlow_out = SG::makeHandle(m_outputChargedPFlowHandleKey, ctx);
256  if (!handle_ChargedPFlow_out.record(std::move(selectedChargedPFlowObjects), std::move(selectedChargedPFlowObjectsAux)) ){
257  ATH_MSG_ERROR("Can't record output PFlow container "<< m_outputChargedPFlowHandleKey);
258  return StatusCode::FAILURE;
259  }
260 
261  auto handle_NeutralPFlow_out = SG::makeHandle(m_outputNeutralPFlowHandleKey, ctx);
262  if (!handle_NeutralPFlow_out.record(std::move(selectedNeutralPFlowObjects), std::move(selectedNeutralPFlowObjectsAux)) ){
263  ATH_MSG_ERROR("Can't record output PFlow container "<< m_outputNeutralPFlowHandleKey);
264  return StatusCode::FAILURE;
265  }
266 
267  return StatusCode::SUCCESS;
268 }

◆ 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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

StatusCode EL::AnaReentrantAlgorithm::finalize ( )
protectedinherited

finalize this algorithm

This gets called after event processing has finished. The last event may no longer be in memory, and the code should not try to access it.

Definition at line 102 of file AnaReentrantAlgorithm.cxx.

104  {
105  return StatusCode::SUCCESS;
106  }

◆ initialize()

StatusCode JetPFlowSelectionAlg::initialize ( )
override

Athena algorithm's Hooks.

Definition at line 17 of file JetPFlowSelectionAlg.cxx.

17  {
18  ATH_MSG_DEBUG("Initializing " );
19 
24  }
33 
34 
35  return StatusCode::SUCCESS;
36 }

◆ 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 AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

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

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

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

SG::ReadDecorHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_chargedFE_energy_match_muonReadHandleKey {this,"FlowElementContainer_ChargedFE_energy_matched_muon","JetETMissChargedParticleFlowObjects.FE_efrac_matched_muon","ReadHandleKey for the fraction of neutral FlowElements cluster energy used to match to Muons"}
private

Definition at line 64 of file JetPFlowSelectionAlg.h.

◆ m_chargedFEElectronsReadDecorKey

SG::ReadDecorHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_chargedFEElectronsReadDecorKey {this, "ChargedFEElectronsReadDecorKey", "JetETMissChargedParticleFlowObjects.FE_ElectronLinks", "Key for links from charged FE to electrons"}
private

Definition at line 54 of file JetPFlowSelectionAlg.h.

◆ m_chargedFEMuonsReadDecorKey

SG::ReadDecorHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_chargedFEMuonsReadDecorKey {this, "ChargedFEMuonsReadDecorKey", "JetETMissChargedParticleFlowObjects.FE_MuonLinks", "Key for links from charged FE to muons"}
private

Definition at line 55 of file JetPFlowSelectionAlg.h.

◆ m_ChargedPFlowContainerKey

SG::ReadHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_ChargedPFlowContainerKey = {this, "ChargedPFlowInputContainer", "", "The input Charged PFlow Objects"}
private

Definition at line 46 of file JetPFlowSelectionAlg.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_electronContainerKey

SG::ReadHandleKey<xAOD::ElectronContainer> JetPFlowSelectionAlg::m_electronContainerKey = {this, "ElectronInputContainer", "", "The input electron container"}
private

Definition at line 48 of file JetPFlowSelectionAlg.h.

◆ m_electronID

Gaudi::Property<std::string> JetPFlowSelectionAlg::m_electronID {this,"electronID","LHMedium","Select electron ID"}
private

Definition at line 40 of file JetPFlowSelectionAlg.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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_muonID

Gaudi::Property<std::string> JetPFlowSelectionAlg::m_muonID {this,"muonID","Medium","Select muon ID"}
private

Definition at line 43 of file JetPFlowSelectionAlg.h.

◆ m_neutralFEElectronsReadDecorKey

SG::ReadDecorHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_neutralFEElectronsReadDecorKey {this, "NeutralFEElectronsReadDecorKey", "JetETMissNeutralParticleFlowObjects.FE_ElectronLinks", "Key for links from neutral FE to electrons"}
private

Definition at line 57 of file JetPFlowSelectionAlg.h.

◆ m_neutralFEMuons_efrac_match_DecorKey

SG::ReadDecorHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_neutralFEMuons_efrac_match_DecorKey {this,"FlowElementContainer_FE_efrac_matched_muon","JetETMissNeutralParticleFlowObjects.FE_efrac_matched_muon","ReadDecorHandleKey for the fraction of neutral FlowElements cluster energy used to match to Muons"}
private

Definition at line 62 of file JetPFlowSelectionAlg.h.

◆ m_neutralFEMuonsReadDecorKey

SG::ReadDecorHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_neutralFEMuonsReadDecorKey {this, "NeutralFEMuonsReadDecorKey","JetETMissNeutralParticleFlowObjects.FE_MuonLinks", "Key for links from neutral FE to muons"}
private

Definition at line 59 of file JetPFlowSelectionAlg.h.

◆ m_NeutralPFlowContainerKey

SG::ReadHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_NeutralPFlowContainerKey = {this, "NeutralPFlowInputContainer", "", "The input Neutral PFlow Objects"}
private

Definition at line 47 of file JetPFlowSelectionAlg.h.

◆ m_outputChargedPFlowHandleKey

SG::WriteHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_outputChargedPFlowHandleKey = {this, "ChargedPFlowOutputContainer", "GlobalPFlowChargedParticleFlowObjects", "The output filtered Charged PFlow Objects"}
private

Definition at line 51 of file JetPFlowSelectionAlg.h.

◆ m_outputNeutralPFlowHandleKey

SG::WriteHandleKey<xAOD::FlowElementContainer> JetPFlowSelectionAlg::m_outputNeutralPFlowHandleKey = {this, "NeutralPFlowOutputContainer", "GlobalPFlowNeutralParticleFlowObjects", "The output filtered Neutral PFlow Objects"}
private

Definition at line 52 of file JetPFlowSelectionAlg.h.

◆ m_removeNeutralElectronFE

Gaudi::Property<bool> JetPFlowSelectionAlg::m_removeNeutralElectronFE {this,"removeNeutralElectronFE",false,"Remove neutral FE matched to electrons"}
private

Definition at line 41 of file JetPFlowSelectionAlg.h.

◆ m_removeNeutralMuonFE

Gaudi::Property<bool> JetPFlowSelectionAlg::m_removeNeutralMuonFE {this,"removeNeutralMuonFE",false,"Remove neutral FE matched to muons"}
private

Definition at line 44 of file JetPFlowSelectionAlg.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:
LikeEnum::Loose
@ Loose
Definition: LikelihoodEnums.h:12
xAOD::CaloCluster_v1::time
flt_t time() const
Access cluster time.
FEHelpers::FillNeutralFlowElements::addStandardSamplingEnergies
void addStandardSamplingEnergies(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition: FEHelpers.cxx:246
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
MuonLink
ElementLink< xAOD::MuonContainer > MuonLink
Definition: BPhysHelper.cxx:21
JetPFlowSelectionAlg::m_chargedFE_energy_match_muonReadHandleKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_chargedFE_energy_match_muonReadHandleKey
Definition: JetPFlowSelectionAlg.h:64
xAOD::EgammaHelpers::getAssociatedTopoClusters
std::vector< const xAOD::CaloCluster * > getAssociatedTopoClusters(const xAOD::CaloCluster *cluster)
Return a vector of all the topo clusters associated with the egamma cluster.
Definition: EgammaxAODHelpers.cxx:65
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LikeEnum::VeryLoose
@ VeryLoose
Definition: LikelihoodEnums.h:11
FEHelpers::FillNeutralFlowElements::addStandardMoments
void addStandardMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition: FEHelpers.cxx:213
JetPFlowSelectionAlg::m_chargedFEElectronsReadDecorKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_chargedFEElectronsReadDecorKey
Definition: JetPFlowSelectionAlg.h:54
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
ElectronLink
ElementLink< xAOD::ElectronContainer > ElectronLink
Definition: BPhysHelper.cxx:23
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CaloCell_ID_FCS::TileExt0
@ TileExt0
Definition: FastCaloSim_CaloCell_ID.h:37
xAOD::FlowElement_v1::setSignalType
void setSignalType(signal_t t)
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
JetPFlowSelectionAlg::m_electronContainerKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainerKey
Definition: JetPFlowSelectionAlg.h:48
JetPFlowSelectionAlg::m_outputNeutralPFlowHandleKey
SG::WriteHandleKey< xAOD::FlowElementContainer > m_outputNeutralPFlowHandleKey
Definition: JetPFlowSelectionAlg.h:52
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
JetPFlowSelectionAlg::m_removeNeutralMuonFE
Gaudi::Property< bool > m_removeNeutralMuonFE
Definition: JetPFlowSelectionAlg.h:44
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
JetPFlowSelectionAlg::m_ChargedPFlowContainerKey
SG::ReadHandleKey< xAOD::FlowElementContainer > m_ChargedPFlowContainerKey
Definition: JetPFlowSelectionAlg.h:46
xAOD::FlowElement_v1::phi
virtual double phi() const override
The azimuthal angle ( ) of the particle.
xAOD::FlowElement_v1::pt
virtual double pt() const override
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
xAOD::FlowElement_v1::setOtherObjectLinks
void setOtherObjectLinks(const std::vector< ElementLink< IParticleContainer >> &elV)
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:40
JetPFlowSelectionAlg::m_chargedFEMuonsReadDecorKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_chargedFEMuonsReadDecorKey
Definition: JetPFlowSelectionAlg.h:55
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
JetPFlowSelectionAlg::m_outputChargedPFlowHandleKey
SG::WriteHandleKey< xAOD::FlowElementContainer > m_outputChargedPFlowHandleKey
Definition: JetPFlowSelectionAlg.h:51
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
xAOD::FlowElement_v1::setCharge
void setCharge(float c)
JetPFlowSelectionAlg::m_NeutralPFlowContainerKey
SG::ReadHandleKey< xAOD::FlowElementContainer > m_NeutralPFlowContainerKey
Definition: JetPFlowSelectionAlg.h:47
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
FEHelpers::FillNeutralFlowElements
Definition: Event/xAOD/xAODPFlow/xAODPFlow/FEHelpers.h:27
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
AthCommonDataStore
Definition: AthCommonDataStore.h:52
JetPFlowSelectionAlg::m_removeNeutralElectronFE
Gaudi::Property< bool > m_removeNeutralElectronFE
Definition: JetPFlowSelectionAlg.h:41
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition: StoreGate/StoreGate/ReadDecorHandle.h:94
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
CaloCell_ID_FCS::TileBar0
@ TileBar0
Definition: FastCaloSim_CaloCell_ID.h:31
beamspotman.n
n
Definition: beamspotman.py:731
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
xAOD::FlowElement
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Definition: FlowElement.h:16
JetPFlowSelectionAlg::checkMuonLinks
bool checkMuonLinks(const std::vector< ElementLink< xAOD::MuonContainer > > &FE_MuonLinks) const
Definition: JetPFlowSelectionAlg.cxx:295
JetPFlowSelectionAlg::m_muonID
Gaudi::Property< std::string > m_muonID
Definition: JetPFlowSelectionAlg.h:43
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
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
SG::AuxElement::index
size_t index() const
Return the index of this element within its container.
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
JetPFlowSelectionAlg::checkElectronLinks
bool checkElectronLinks(const std::vector< ElementLink< xAOD::ElectronContainer > > &FE_ElectronLinks) const
Definition: JetPFlowSelectionAlg.cxx:270
JetPFlowSelectionAlg::m_neutralFEMuonsReadDecorKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_neutralFEMuonsReadDecorKey
Definition: JetPFlowSelectionAlg.h:59
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
LikeEnum::Tight
@ Tight
Definition: LikelihoodEnums.h:15
JetPFlowSelectionAlg::m_neutralFEMuons_efrac_match_DecorKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_neutralFEMuons_efrac_match_DecorKey
Definition: JetPFlowSelectionAlg.h:62
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAOD::FlowElement_v1::e
virtual double e() const override
The total energy of the particle.
Definition: FlowElement_v1.cxx:25
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
JetPFlowSelectionAlg::m_neutralFEElectronsReadDecorKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_neutralFEElectronsReadDecorKey
Definition: JetPFlowSelectionAlg.h:57
xAOD::Electron_v1
Definition: Electron_v1.h:34
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
xAOD::FlowElement_v1::eta
virtual double eta() const override
The pseudorapidity ( ) of the particle.
xAOD::CaloCluster_v1::eSample
float eSample(const CaloSample sampling) const
Definition: CaloCluster_v1.cxx:521
a
TList * a
Definition: liststreamerinfos.cxx:10
h
LikeEnum::Medium
@ Medium
Definition: LikelihoodEnums.h:14
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAOD::IParticle::eta
virtual double eta() const =0
The pseudorapidity ( ) of the particle.
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
xAOD::FlowElement_v1::setP4
void setP4(float pt, float eta, float phi, float m)
Definition: FlowElement_v1.cxx:39
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
xAOD::IParticle::phi
virtual double phi() const =0
The azimuthal angle ( ) of the particle.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
JetPFlowSelectionAlg::m_electronID
Gaudi::Property< std::string > m_electronID
Definition: JetPFlowSelectionAlg.h:40
xAOD::IParticle::e
virtual double e() const =0
The total energy of the particle.
fitman.k
k
Definition: fitman.py:528
xAOD::IParticle::m
virtual double m() const =0
The invariant mass of the particle.
ServiceHandle< ICondSvc >
xAOD::FlowElement_v1
A detector object made of other lower level object(s)
Definition: FlowElement_v1.h:25