ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
DerivationFramework::TruthCategoriesDecorator Class Reference

#include <TruthCategoriesDecorator.h>

Inheritance diagram for DerivationFramework::TruthCategoriesDecorator:
Collaboration diagram for DerivationFramework::TruthCategoriesDecorator:

Classes

struct  FourMomDecoration
 Set of DecorHandleKeys to write the four momenta needed for the HTXS categorization. More...
 
struct  HTXSSample
 

Public Member Functions

 TruthCategoriesDecorator (const std::string &n, ISvcLocator *p)
 
virtual ~TruthCategoriesDecorator ()=default
 
StatusCode initialize ()
 
StatusCode execute (const EventContext &ctx) const
 
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

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

using EvtInfoDecorKey = SG::WriteDecorHandleKey< xAOD::EventInfo >
 
using P4DecorMap = std::map< std::string, FourMomDecoration >
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode decorateFourVec (const EventContext &ctx, const std::string &prefix, const TLorentzVector &p4) const
 
StatusCode decorateFourVecs (const EventContext &ctx, const std::string &prefix, const std::vector< TLorentzVector > &p4s) 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

ToolHandle< IxAODtoHepMCToolm_xAODtoHepMCTool {this, "HepMCTool", "xAODtoHepMCTool"}
 
ToolHandle< IHiggsTruthCategoryToolm_higgsTruthCatTool {this, "CategoryTool", "HiggsTruthCategoryTool"}
 
Gaudi::Property< std::string > m_configPath {this, "ConfigPath", "DerivationFrameworkHiggs/HiggsMCsamples.cfg"}
 
std::vector< HTXSSamplem_htxs_samples {}
 
Gaudi::Property< int > m_detailLevel {this, "DetailLevel", 3}
 
SG::ReadHandleKey< xAOD::TruthEventContainerm_truthEvtKey {this, "TruthEvtKey", "TruthEvents"}
 
SG::ReadHandleKey< xAOD::EventInfom_evtInfoKey {this, "EvtKey", "EventInfo"}
 
SG::WriteDecorHandleKeyArray< xAOD::EventInfom_STXSDecors {this, "ToolDecorations", {}, "List of all keys decorated by the alg"}
 
P4DecorMap m_p4_decors {}
 
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

Definition at line 28 of file TruthCategoriesDecorator.h.

Member Typedef Documentation

◆ EvtInfoDecorKey

Definition at line 66 of file TruthCategoriesDecorator.h.

◆ P4DecorMap

Definition at line 88 of file TruthCategoriesDecorator.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TruthCategoriesDecorator()

DerivationFramework::TruthCategoriesDecorator::TruthCategoriesDecorator ( const std::string &  n,
ISvcLocator *  p 
)

Definition at line 22 of file TruthCategoriesDecorator.cxx.

◆ ~TruthCategoriesDecorator()

virtual DerivationFramework::TruthCategoriesDecorator::~TruthCategoriesDecorator ( )
virtualdefault

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 }

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

◆ decorateFourVec()

StatusCode DerivationFramework::TruthCategoriesDecorator::decorateFourVec ( const EventContext &  ctx,
const std::string &  prefix,
const TLorentzVector &  p4 
) const
private

Definition at line 125 of file TruthCategoriesDecorator.cxx.

126  {
127  P4DecorMap::const_iterator itr = m_p4_decors.find(prefix);
128  if (itr == m_p4_decors.end()) {
129  ATH_MSG_FATAL("decorateFourVec() -- Key " << prefix << " is unknown");
130  return StatusCode::FAILURE;
131  }
133  FloatDecorator dec_pt{itr->second.pt, ctx};
134  FloatDecorator dec_eta{itr->second.eta, ctx};
135  FloatDecorator dec_phi{itr->second.phi, ctx};
136  FloatDecorator dec_m{itr->second.m, ctx};
137  const xAOD::EventInfo* eventInfo = dec_pt.cptr();
138  dec_pt(*eventInfo) = p4.Pt() * Gaudi::Units::GeV;
139  dec_eta(*eventInfo) = p4.Eta();
140  dec_phi(*eventInfo) = p4.Phi();
141  dec_m(*eventInfo) = p4.M() * Gaudi::Units::GeV;
142  ATH_MSG_DEBUG("Decorate "<<prefix<<" with pT: "<<p4.Pt()<<" [GeV], eta: "<<p4.Eta()<<", phi: "<<p4.Phi()<<", M: "<<p4.M());
143  return StatusCode::SUCCESS;
144  }

◆ decorateFourVecs()

StatusCode DerivationFramework::TruthCategoriesDecorator::decorateFourVecs ( const EventContext &  ctx,
const std::string &  prefix,
const std::vector< TLorentzVector > &  p4s 
) const
private

Definition at line 147 of file TruthCategoriesDecorator.cxx.

148  {
149  P4DecorMap::const_iterator itr = m_p4_decors.find(prefix);
150  if (itr == m_p4_decors.end()) {
151  ATH_MSG_FATAL("decorateFourVecs() -- Key " << prefix << " is unknown");
152  return StatusCode::FAILURE;
153  }
155  FloatDecorator dec_pt{itr->second.pt, ctx};
156  FloatDecorator dec_eta{itr->second.eta, ctx};
157  FloatDecorator dec_phi{itr->second.phi, ctx};
158  FloatDecorator dec_m{itr->second.m, ctx};
159  const xAOD::EventInfo* eventInfo = dec_pt.cptr();
160 
161  std::vector<float>&pt = dec_pt(*eventInfo) ;
162  std::vector<float>&eta = dec_eta(*eventInfo);
163  std::vector<float>&phi = dec_phi(*eventInfo) ;
164  std::vector<float>&mass = dec_m(*eventInfo) ;
165  for (const TLorentzVector& p4 : p4s) {
166  pt.push_back(p4.Pt() * Gaudi::Units::GeV);
167  eta.push_back(p4.Eta());
168  phi.push_back(p4.Phi());
169  mass.push_back(p4.M() * Gaudi::Units::GeV);
170  ATH_MSG_DEBUG("Decorate "<<prefix<<" with pT: "<<p4.Pt()<<" [GeV], eta: "<<p4.Eta()<<", phi: "<<p4.Phi()<<", M: "<<p4.M());
171  }
172  return StatusCode::SUCCESS;
173  }

◆ 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 DerivationFramework::TruthCategoriesDecorator::execute ( const EventContext &  ctx) const

Last argument switches between 25 GeV (true) and 30 GeV jets (false)

Last argument switches between 25 (true) / 30 (false) GeV jets.

Summary of the HTXS categorization. Used mainly in the testing algorithm

Definition at line 175 of file TruthCategoriesDecorator.cxx.

175  {
178  // Retrieve the xAOD event info
180  if (!eventInfo.isValid()) {
181  ATH_MSG_FATAL("Failed to retrieve " << m_evtInfoKey.fullKey());
182  return StatusCode::FAILURE;
183  }
184 
185  int mcChannelNumber = eventInfo->mcChannelNumber();
186  if (!mcChannelNumber) mcChannelNumber = eventInfo->runNumber(); // EVNT input
187 
188  static const IntDecorator dec_prodMode{"HTXS_prodMode"};
189  std::vector<HTXSSample>::const_iterator smp_itr =
190  std::find_if(m_htxs_samples.begin(), m_htxs_samples.end(),
191  [mcChannelNumber](const HTXSSample& smp) { return smp.dsids.count(mcChannelNumber); });
192  if (smp_itr == m_htxs_samples.end()) {
193  dec_prodMode(*eventInfo) = HTXS::HiggsProdMode::UNKNOWN;
194  ATH_MSG_DEBUG("The sample " << mcChannelNumber
195  << " is not a Higgs sample and not of further interest. Decorate the prod mode information only");
196  return StatusCode::SUCCESS;
197  }
198 
199  const HTXS::HiggsProdMode prodMode = smp_itr->prod;
200  const HTXS::tH_type th_type = smp_itr->th_type;
201 
202  // Retrieve the xAOD truth
203  SG::ReadHandle<xAOD::TruthEventContainer> xTruthEventContainer{m_truthEvtKey, ctx};
204  if (!xTruthEventContainer.isValid()) {
205  ATH_MSG_FATAL("Failed to retrieve " << m_truthEvtKey.fullKey());
206  return StatusCode::FAILURE;
207  }
208  // convert xAOD -> HepMC
209  std::vector<HepMC::GenEvent> hepmc_evts = m_xAODtoHepMCTool->getHepMCEvents(xTruthEventContainer.cptr(), eventInfo.cptr());
210 
211  if (hepmc_evts.empty()) {
212  // ANGRY MESSAGE HERE
213  ATH_MSG_FATAL("The HEP MC GenEvent conversion failed");
214  return StatusCode::FAILURE;
215  } else {
216  ATH_MSG_DEBUG("Found "<<hepmc_evts.size()<<" HepMC events.");
217  }
218 
219  // classify event according to simplified template cross section
220  std::unique_ptr<HTXS::HiggsClassification> htxs{m_higgsTruthCatTool->getHiggsTruthCategoryObject(hepmc_evts[0], prodMode)};
221  ATH_MSG_DEBUG("Truth categorization done ");
222  // Decorate the enums
223  static const IntDecorator dec_errorCode{"HTXS_errorCode"};
224  static const IntDecorator dec_stage0Cat{"HTXS_Stage0_Category"};
225 
226  dec_prodMode(*eventInfo) = htxs->prodMode;
227  dec_errorCode(*eventInfo) = htxs->errorCode;
228  dec_stage0Cat(*eventInfo) = htxs->stage0_cat;
229 
230  // Stage-1 binning
231  static const IntDecorator dec_stage1CatPt25{"HTXS_Stage1_Category_pTjet25"};
232  static const IntDecorator dec_stage1CatPt30{"HTXS_Stage1_Category_pTjet30"};
233  static const IntDecorator dec_stage1IdxPt25{"HTXS_Stage1_FineIndex_pTjet25"};
234  static const IntDecorator dec_stage1IdxPt30{"HTXS_Stage1_FineIndex_pTjet30"};
235 
236  dec_stage1CatPt25(*eventInfo) = htxs->stage1_cat_pTjet25GeV;
237  dec_stage1CatPt30(*eventInfo) = htxs->stage1_cat_pTjet30GeV;
239  dec_stage1IdxPt25(*eventInfo) = HTXSstage1_to_HTXSstage1FineIndex(*htxs, th_type, true);
240  dec_stage1IdxPt30(*eventInfo) = HTXSstage1_to_HTXSstage1FineIndex(*htxs, th_type, false);
241 
242  // Stage-1.2 binning
243  static const IntDecorator dec_stage1p2_CatPt25{"HTXS_Stage1_2_Category_pTjet25"};
244  static const IntDecorator dec_stage1p2_CatPt30{"HTXS_Stage1_2_Category_pTjet30"};
245  static const IntDecorator dec_stage1p2_IdxPt25{"HTXS_Stage1_2_FineIndex_pTjet25"};
246  static const IntDecorator dec_stage1p2_IdxPt30{"HTXS_Stage1_2_FineIndex_pTjet30"};
247 
248  dec_stage1p2_CatPt25(*eventInfo) = htxs->stage1_2_cat_pTjet25GeV;
249  dec_stage1p2_CatPt30(*eventInfo) = htxs->stage1_2_cat_pTjet30GeV;
251  dec_stage1p2_IdxPt25(*eventInfo) = HTXSstage1_2_to_HTXSstage1_2_FineIndex(*htxs, th_type, true);
252  dec_stage1p2_IdxPt30(*eventInfo) = HTXSstage1_2_to_HTXSstage1_2_FineIndex(*htxs, th_type, false);
253 
254  // Stage-1.2 finer binning
255  static const IntDecorator dec_stage1p2_Fine_CatPt25{"HTXS_Stage1_2_Fine_Category_pTjet25"};
256  static const IntDecorator dec_stage1p2_Fine_CatPt30{"HTXS_Stage1_2_Fine_Category_pTjet30"};
257  static const IntDecorator dec_stage1p2_Fine_IdxPt25{"HTXS_Stage1_2_Fine_FineIndex_pTjet25"};
258  static const IntDecorator dec_stage1p2_Fine_IdxPt30{"HTXS_Stage1_2_Fine_FineIndex_pTjet30"};
259 
260  dec_stage1p2_Fine_CatPt25(*eventInfo) = htxs->stage1_2_fine_cat_pTjet25GeV;
261  dec_stage1p2_Fine_CatPt30(*eventInfo) = htxs->stage1_2_fine_cat_pTjet30GeV;
262  dec_stage1p2_Fine_IdxPt25(*eventInfo) = HTXSstage1_2_Fine_to_HTXSstage1_2_Fine_FineIndex(*htxs, th_type, true);
263  dec_stage1p2_Fine_IdxPt30(*eventInfo) = HTXSstage1_2_Fine_to_HTXSstage1_2_Fine_FineIndex(*htxs, th_type, false);
264 
265  static const IntDecorator dec_NJets25{"HTXS_Njets_pTjet25"};
266  static const IntDecorator dec_NJets30{"HTXS_Njets_pTjet30"};
267  dec_NJets25(*eventInfo) = htxs->jets25.size();
268  dec_NJets30(*eventInfo) = htxs->jets30.size();
269 
270  static const IntDecorator dec_isZnunu{"HTXS_isZ2vvDecay"};
271  dec_isZnunu(*eventInfo) = htxs->isZ2vvDecay;
272 
273  // At the very least, save the Higgs boson pT
274  if (!m_detailLevel) {
275  static const FloatDecorator dec_higgsPt{"HTXS_Higgs_pt"};
276  dec_higgsPt(*eventInfo) = htxs->higgs.Pt() * Gaudi::Units::GeV;
277  }
278  if (m_detailLevel > 0) {
279  // The Higgs and the associated V (last instances prior to decay)
280  ATH_CHECK(decorateFourVec(ctx, "HTXS_Higgs", htxs->higgs));
281  ATH_CHECK(decorateFourVec(ctx, "HTXS_V", htxs->V));
282  }
283 
284  if (m_detailLevel > 1) {
285  // Jets built excluding Higgs decay products
286  ATH_CHECK(decorateFourVecs(ctx, "HTXS_V_jets25", htxs->jets25));
287  ATH_CHECK(decorateFourVecs(ctx, "HTXS_V_jets30", htxs->jets30));
288  }
289 
290  if (m_detailLevel > 2) {
291  // Everybody might not want this ... but good for validation
292  ATH_CHECK(decorateFourVec(ctx, "HTXS_Higgs_decay", htxs->p4decay_higgs));
293  ATH_CHECK(decorateFourVec(ctx, "HTXS_V_decay", htxs->p4decay_V));
294  }
296  ATH_MSG_DEBUG("production mode: " << dec_prodMode(*eventInfo) << ", errorCode: " << dec_errorCode(*eventInfo) << ", Stage0: " << dec_stage0Cat(*eventInfo)
297  << ", " << dec_stage1CatPt25(*eventInfo) << ", Stage1 -- Jet25 " << dec_stage1CatPt25(*eventInfo) << " Idx " << dec_stage1IdxPt25(*eventInfo)
298  << ", Jet30: " << dec_stage1CatPt30(*eventInfo) << " Idx "<< dec_stage1IdxPt30(*eventInfo) << ", Stage 1.2 -- Jet25: "
299  << dec_stage1p2_CatPt25(*eventInfo) << " Idx: " << dec_stage1p2_IdxPt25(*eventInfo) << " Jet30: " << dec_stage1p2_CatPt30(*eventInfo)
300  << " Idx: " << dec_stage1p2_IdxPt30(*eventInfo) << ", HTXS NJets 25" << dec_NJets25(*eventInfo)
301  << " HTXS NJets 30 " << dec_NJets30(*eventInfo) << " Z->nunu" << dec_isZnunu(*eventInfo));
302 
303  return StatusCode::SUCCESS;
304  }

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

◆ initialize()

StatusCode DerivationFramework::TruthCategoriesDecorator::initialize ( )

Declare everything that's written by the algorithm

Definition at line 24 of file TruthCategoriesDecorator.cxx.

24  {
25  ATH_MSG_DEBUG("Initialize ");
26 
27  // FOR xAOD->HEPMC :: xAODtoHepMC tool
28  ATH_CHECK(m_xAODtoHepMCTool.retrieve());
29  ATH_CHECK(m_higgsTruthCatTool.retrieve());
30 
31  ATH_CHECK(m_truthEvtKey.initialize());
33 
34  std::set<std::string> decor_keys{
35  "HTXS_prodMode",
36  "HTXS_errorCode",
37  "HTXS_Stage0_Category",
38  // Stage 1 binning
39  "HTXS_Stage1_Category_pTjet25",
40  "HTXS_Stage1_Category_pTjet30",
41  "HTXS_Stage1_FineIndex_pTjet30",
42  "HTXS_Stage1_FineIndex_pTjet25",
43  // Stage 1.2 binning
44  "HTXS_Stage1_2_Category_pTjet25",
45  "HTXS_Stage1_2_Category_pTjet30",
46  "HTXS_Stage1_2_FineIndex_pTjet30",
47  "HTXS_Stage1_2_FineIndex_pTjet25",
48  // stage 1.2. finer binning
49  "HTXS_Stage1_2_Fine_Category_pTjet25",
50  "HTXS_Stage1_2_Fine_Category_pTjet30",
51  "HTXS_Stage1_2_Fine_FineIndex_pTjet30",
52  "HTXS_Stage1_2_Fine_FineIndex_pTjet25",
53 
54  "HTXS_Njets_pTjet25",
55  "HTXS_Njets_pTjet30",
56  "HTXS_isZ2vvDecay",
57  };
58 
59  if (!m_detailLevel) decor_keys.insert("HTXS_Higgs_pt");
60  // The Higgs and the associated V (last instances prior to decay)
61  if (m_detailLevel > 0) {
62  m_p4_decors.insert(std::make_pair("HTXS_Higgs", FourMomDecoration{m_evtInfoKey, "HTXS_Higgs"}));
63  m_p4_decors.insert(std::make_pair("HTXS_V", FourMomDecoration{m_evtInfoKey, "HTXS_V"}));
64  }
65  // Jets built excluding Higgs decay products
66  if (m_detailLevel > 1) {
67  m_p4_decors.insert(std::make_pair("HTXS_V_jets25", FourMomDecoration{m_evtInfoKey, "HTXS_V_jets25"}));
68  m_p4_decors.insert(std::make_pair("HTXS_V_jets30", FourMomDecoration{m_evtInfoKey, "HTXS_V_jets30"}));
69  }
70  // Everybody might not want this ... but good for validation
71  if (m_detailLevel > 2) {
72  m_p4_decors.insert(std::make_pair("HTXS_Higgs_decay", FourMomDecoration{m_evtInfoKey, "HTXS_Higgs_decay"}));
73  m_p4_decors.insert(std::make_pair("HTXS_V_decay", FourMomDecoration{m_evtInfoKey, "HTXS_V_decay"}));
74  }
75 
76  for (const std::string& key : decor_keys) m_STXSDecors.emplace_back(m_evtInfoKey.key() + "." + key);
77  for (auto& p4_pair : m_p4_decors) {
78  std::vector<EvtInfoDecorKey> keys = p4_pair.second.vect();
79  for (EvtInfoDecorKey key : keys) m_STXSDecors.push_back(key);
80  ATH_CHECK(p4_pair.second.initialize());
81 
82  }
84  ATH_CHECK(m_STXSDecors.initialize());
85  // Open the TEnv configuration file
86  TEnv config{};
87  if (config.ReadFile(PathResolverFindCalibFile(m_configPath).c_str(), EEnvLevel(0))) {
88  ATH_MSG_FATAL("Failed to open TEnv file " << m_configPath);
89  return StatusCode::FAILURE;
90  }
91 
92  for (const std::string prod_mode : {"GGF", "VBF", "WH", "QQ2ZH", "GG2ZH", "TTH", "BBH", "TH", "THQB", "WHT"}) {
93  HTXSSample smp{};
94  if (prod_mode == "GGF")
95  smp.prod = HTXS::HiggsProdMode::GGF;
96  else if (prod_mode == "VBF")
97  smp.prod = HTXS::HiggsProdMode::VBF;
98  else if (prod_mode == "WH")
99  smp.prod = HTXS::HiggsProdMode::WH;
100  else if (prod_mode == "QQ2ZH")
101  smp.prod = HTXS::HiggsProdMode::QQ2ZH;
102  else if (prod_mode == "GG2ZH")
103  smp.prod = HTXS::HiggsProdMode::GG2ZH;
104  else if (prod_mode == "TTH")
105  smp.prod = HTXS::HiggsProdMode::TTH;
106  else if (prod_mode == "BBH")
107  smp.prod = HTXS::HiggsProdMode::BBH;
108  else if (prod_mode == "TH")
109  smp.prod = HTXS::HiggsProdMode::TH;
110  else if (prod_mode == "THQB") {
111  smp.th_type = HTXS::tH_type::THQB;
112  smp.prod = HTXS::HiggsProdMode::TH;
113  } else if (prod_mode == "WHT") {
114  smp.th_type = HTXS::tH_type::TWH;
115  smp.prod = HTXS::HiggsProdMode::TH;
116  }
117  std::vector<std::string> dsid_str = CxxUtils::tokenize(config.GetValue(Form("HTXS.MCsamples.%s", prod_mode.c_str()), ""), " ");
118  for (const std::string& dsid : dsid_str) { smp.dsids.insert(std::atoi(dsid.c_str())); }
119  m_htxs_samples.push_back(std::move(smp));
120  }
121  return StatusCode::SUCCESS;
122  }

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

Gaudi::Property<std::string> DerivationFramework::TruthCategoriesDecorator::m_configPath {this, "ConfigPath", "DerivationFrameworkHiggs/HiggsMCsamples.cfg"}
private

Definition at line 40 of file TruthCategoriesDecorator.h.

◆ m_detailLevel

Gaudi::Property<int> DerivationFramework::TruthCategoriesDecorator::m_detailLevel {this, "DetailLevel", 3}
private

Definition at line 57 of file TruthCategoriesDecorator.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_evtInfoKey

SG::ReadHandleKey<xAOD::EventInfo> DerivationFramework::TruthCategoriesDecorator::m_evtInfoKey {this, "EvtKey", "EventInfo"}
private

Definition at line 64 of file TruthCategoriesDecorator.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_higgsTruthCatTool

ToolHandle<IHiggsTruthCategoryTool> DerivationFramework::TruthCategoriesDecorator::m_higgsTruthCatTool {this, "CategoryTool", "HiggsTruthCategoryTool"}
private

Definition at line 37 of file TruthCategoriesDecorator.h.

◆ m_htxs_samples

std::vector<HTXSSample> DerivationFramework::TruthCategoriesDecorator::m_htxs_samples {}
private

Definition at line 50 of file TruthCategoriesDecorator.h.

◆ m_p4_decors

P4DecorMap DerivationFramework::TruthCategoriesDecorator::m_p4_decors {}
private

Definition at line 89 of file TruthCategoriesDecorator.h.

◆ m_STXSDecors

SG::WriteDecorHandleKeyArray<xAOD::EventInfo> DerivationFramework::TruthCategoriesDecorator::m_STXSDecors {this, "ToolDecorations", {}, "List of all keys decorated by the alg"}
private

Definition at line 67 of file TruthCategoriesDecorator.h.

◆ m_truthEvtKey

SG::ReadHandleKey<xAOD::TruthEventContainer> DerivationFramework::TruthCategoriesDecorator::m_truthEvtKey {this, "TruthEvtKey", "TruthEvents"}
private

Definition at line 63 of file TruthCategoriesDecorator.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.

◆ m_xAODtoHepMCTool

ToolHandle<IxAODtoHepMCTool> DerivationFramework::TruthCategoriesDecorator::m_xAODtoHepMCTool {this, "HepMCTool", "xAODtoHepMCTool"}
private

Definition at line 36 of file TruthCategoriesDecorator.h.


The documentation for this class was generated from the following files:
CP::IntDecorator
SG::AuxElement::Decorator< int > IntDecorator
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:30
DerivationFramework::TruthCategoriesDecorator::m_detailLevel
Gaudi::Property< int > m_detailLevel
Definition: TruthCategoriesDecorator.h:57
python.StoreID.UNKNOWN
int UNKNOWN
Definition: StoreID.py:16
DerivationFramework::TruthCategoriesDecorator::m_STXSDecors
SG::WriteDecorHandleKeyArray< xAOD::EventInfo > m_STXSDecors
Definition: TruthCategoriesDecorator.h:67
DerivationFramework::TruthCategoriesDecorator::m_truthEvtKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEvtKey
Definition: TruthCategoriesDecorator.h:63
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
HTXS::GG2ZH
@ GG2ZH
Definition: HiggsTemplateCrossSectionsDefs.h:29
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CxxUtils::tokenize
std::vector< std::string > tokenize(const std::string &the_str, std::string_view delimiters)
Splits the string into smaller substrings.
Definition: Control/CxxUtils/Root/StringUtils.cxx:15
HTXS::GGF
@ GGF
Definition: HiggsTemplateCrossSectionsDefs.h:29
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
test_pyathena.pt
pt
Definition: test_pyathena.py:11
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
DerivationFramework::TruthCategoriesDecorator::m_configPath
Gaudi::Property< std::string > m_configPath
Definition: TruthCategoriesDecorator.h:40
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
HTXS::Stage0::BBH
@ BBH
Definition: HiggsTemplateCrossSectionsDefs.h:46
xAOD::mcChannelNumber
mcChannelNumber
Definition: EventInfo_v1.cxx:197
dqt_zlumi_pandas.mass
mass
Definition: dqt_zlumi_pandas.py:170
CP::FloatDecorator
SG::AuxElement::Decorator< float > FloatDecorator
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:22
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
HTXS::Stage0::VBF
@ VBF
Definition: HiggsTemplateCrossSectionsDefs.h:44
AthCommonDataStore
Definition: AthCommonDataStore.h:52
DerivationFramework::TruthCategoriesDecorator::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition: TruthCategoriesDecorator.h:64
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
DerivationFramework::TruthCategoriesDecorator::m_htxs_samples
std::vector< HTXSSample > m_htxs_samples
Definition: TruthCategoriesDecorator.h:50
SG::Decorator
Helper class to provide type-safe access to aux data.
Definition: Decorator.h:58
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
HTXS::TWH
@ TWH
Definition: HiggsTemplateCrossSectionsDefs.h:34
beamspotman.n
n
Definition: beamspotman.py:731
Generate_dsid_ranseed.dsid
dsid
Definition: Generate_dsid_ranseed.py:6
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
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:99
DerivationFramework::TruthCategoriesDecorator::m_p4_decors
P4DecorMap m_p4_decors
Definition: TruthCategoriesDecorator.h:89
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
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
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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
HTXS::HiggsProdMode
HiggsProdMode
Higgs production modes, corresponding to input sample.
Definition: HiggsTemplateCrossSectionsDefs.h:27
DerivationFramework::TruthCategoriesDecorator::m_higgsTruthCatTool
ToolHandle< IHiggsTruthCategoryTool > m_higgsTruthCatTool
Definition: TruthCategoriesDecorator.h:37
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
DerivationFramework::TruthCategoriesDecorator::m_xAODtoHepMCTool
ToolHandle< IxAODtoHepMCTool > m_xAODtoHepMCTool
Definition: TruthCategoriesDecorator.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
DerivationFramework::TruthCategoriesDecorator::EvtInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > EvtInfoDecorKey
Definition: TruthCategoriesDecorator.h:66
HTXS::Stage0::TH
@ TH
Definition: HiggsTemplateCrossSectionsDefs.h:46
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
HTXS::THQB
@ THQB
Definition: HiggsTemplateCrossSectionsDefs.h:34
DerivationFramework::TruthCategoriesDecorator::decorateFourVec
StatusCode decorateFourVec(const EventContext &ctx, const std::string &prefix, const TLorentzVector &p4) const
Definition: TruthCategoriesDecorator.cxx:125
a
TList * a
Definition: liststreamerinfos.cxx:10
h
HTXS::tH_type
tH_type
Additional identifier flag for TH production modes.
Definition: HiggsTemplateCrossSectionsDefs.h:34
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
HTXS::Stage0::TTH
@ TTH
Definition: HiggsTemplateCrossSectionsDefs.h:46
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
HTXS::WH
@ WH
Definition: HiggsTemplateCrossSectionsDefs.h:29
fitman.k
k
Definition: fitman.py:528
DerivationFramework::TruthCategoriesDecorator::decorateFourVecs
StatusCode decorateFourVecs(const EventContext &ctx, const std::string &prefix, const std::vector< TLorentzVector > &p4s) const
Definition: TruthCategoriesDecorator.cxx:147
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
HTXS::QQ2ZH
@ QQ2ZH
Definition: HiggsTemplateCrossSectionsDefs.h:29