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  FourMomDecorationKeys
 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 >
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode decorateFourVec (const EventContext &ctx, const FourMomDecorationKeys &keys, const xAOD::EventInfo &eventInfo, const TLorentzVector &p4) const
 
StatusCode decorateFourVecs (const EventContext &ctx, const FourMomDecorationKeys &keys, const xAOD::EventInfo &eventInfo, 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"}
 
EvtInfoDecorKey m_dec_prodModeKey { this, "ProdModeDecorKey", m_evtInfoKey, "HTXS_prodMode", "" }
 
EvtInfoDecorKey m_dec_errorCodeKey { this, "ErrorCodeDecorKey", m_evtInfoKey, "HTXS_errorCore", "" }
 
EvtInfoDecorKey m_dec_stage0CatKey { this, "Stage0CatDecorKey", m_evtInfoKey, "HTXS_Stage0_Category", "" }
 
EvtInfoDecorKey m_dec_stage1CatPt25Key { this, "Stage1CatPt25Key", m_evtInfoKey, "HTXS_Stage1_Category_pTjet25", "" }
 
EvtInfoDecorKey m_dec_stage1CatPt30Key { this, "Stage1CatPt30Key", m_evtInfoKey, "HTXS_Stage1_Category_pTjet30", "" }
 
EvtInfoDecorKey m_dec_stage1IdxPt25Key { this, "Stage1IdxPt25Key", m_evtInfoKey, "HTXS_Stage1_FineIndex_pTjet25", "" }
 
EvtInfoDecorKey m_dec_stage1IdxPt30Key { this, "Stage1IdxPt30Key", m_evtInfoKey, "HTXS_Stage1_FineIndex_pTjet30", "" }
 
EvtInfoDecorKey m_dec_stage1p2_CatPt25Key { this, "Stage1p2_CatPt25Key", m_evtInfoKey, "HTXS_Stage1_2_Category_pTjet25", "" }
 
EvtInfoDecorKey m_dec_stage1p2_CatPt30Key { this, "Stage1p2_CatPt30Key", m_evtInfoKey, "HTXS_Stage1_2_Category_pTjet30", "" }
 
EvtInfoDecorKey m_dec_stage1p2_IdxPt25Key { this, "Stage1p2_IdxPt25Key", m_evtInfoKey, "HTXS_Stage1_2_FineIndex_pTjet25", "" }
 
EvtInfoDecorKey m_dec_stage1p2_IdxPt30Key { this, "Stage1p2_IdxPt30Key", m_evtInfoKey, "HTXS_Stage1_2_FineIndex_pTjet30", "" }
 
EvtInfoDecorKey m_dec_stage1p2_Fine_CatPt25Key { this, "Stage1p2_Fine_CatPt25Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_Category_pTjet25", "" }
 
EvtInfoDecorKey m_dec_stage1p2_Fine_CatPt30Key { this, "Stage1p2_Fine_CatPt30Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_Category_pTjet30", "" }
 
EvtInfoDecorKey m_dec_stage1p2_Fine_IdxPt25Key { this, "Stage1p2_Fine_IdxPt25Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_FineIndex_pTjet25", "" }
 
EvtInfoDecorKey m_dec_stage1p2_Fine_IdxPt30Key { this, "Stage1p2_Fine_IdxPt30Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_FineIndex_pTjet30", "" }
 
EvtInfoDecorKey m_dec_NJets25Key { this, "NJets25Key", m_evtInfoKey, "HTXS_Njets_pTjet25", "" }
 
EvtInfoDecorKey m_dec_NJets30Key { this, "NJets30Key", m_evtInfoKey, "HTXS_Njets_pTjet30", "" }
 
EvtInfoDecorKey m_dec_isZnunuKey { this, "IsZnunuKey", m_evtInfoKey, "HTXS_isZ2vvDecay", "" }
 
EvtInfoDecorKey m_dec_Higgs_ptKey { this, "Higgs_ptKey", m_evtInfoKey, "HTXS_Higgs_pt", "" }
 
FourMomDecorationKeys m_decp4_HiggsKeys { this, m_evtInfoKey, "HTXS_Higgs" }
 
FourMomDecorationKeys m_decp4_VKeys { this, m_evtInfoKey, "HTXS_V" }
 
FourMomDecorationKeys m_decp4_V_jets25Keys { this, m_evtInfoKey, "HTXS_V_jets25" }
 
FourMomDecorationKeys m_decp4_V_jets30Keys { this, m_evtInfoKey, "HTXS_V_jets30" }
 
FourMomDecorationKeys m_decp4_Higgs_decayKeys { this, m_evtInfoKey, "HTXS_Higgs_decay" }
 
FourMomDecorationKeys m_decp4_V_decayKeys { this, m_evtInfoKey, "HTXS_V_decay" }
 
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 62 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 FourMomDecorationKeys keys,
const xAOD::EventInfo eventInfo,
const TLorentzVector &  p4 
) const
private

Definition at line 105 of file TruthCategoriesDecorator.cxx.

108  {
109  auto floatEIDecor = [&] (const EvtInfoDecorKey& key) -> float& {
110  return SG::makeHandle<float> (key, ctx)(eventInfo);
111  };
112  floatEIDecor (keys.pt) = p4.Pt() * Gaudi::Units::GeV;
113  floatEIDecor (keys.eta) = p4.Eta();
114  floatEIDecor (keys.phi) = p4.Phi();
115  floatEIDecor (keys.m) = p4.M() * Gaudi::Units::GeV;
116  ATH_MSG_DEBUG("Decorate "<<keys.prefix<<" with pT: "<<p4.Pt()<<" [GeV], eta: "<<p4.Eta()<<", phi: "<<p4.Phi()<<", M: "<<p4.M());
117  return StatusCode::SUCCESS;
118  }

◆ decorateFourVecs()

StatusCode DerivationFramework::TruthCategoriesDecorator::decorateFourVecs ( const EventContext &  ctx,
const FourMomDecorationKeys keys,
const xAOD::EventInfo eventInfo,
const std::vector< TLorentzVector > &  p4s 
) const
private

Definition at line 121 of file TruthCategoriesDecorator.cxx.

124  {
125  auto floatVEIDecor = [&] (const EvtInfoDecorKey& key) -> std::vector<float>& {
126  return SG::makeHandle<std::vector<float> > (key, ctx)(eventInfo);
127  };
128  std::vector<float>&pt = floatVEIDecor (keys.pt);
129  std::vector<float>&eta = floatVEIDecor (keys.eta);
130  std::vector<float>&phi = floatVEIDecor (keys.phi);
131  std::vector<float>&m = floatVEIDecor (keys.m);
132  pt.reserve (p4s.size());
133  eta.reserve (p4s.size());
134  phi.reserve (p4s.size());
135  m.reserve (p4s.size());
136  for (const TLorentzVector& p4 : p4s) {
137  pt.push_back(p4.Pt() * Gaudi::Units::GeV);
138  eta.push_back(p4.Eta());
139  phi.push_back(p4.Phi());
140  m.push_back(p4.M() * Gaudi::Units::GeV);
141  ATH_MSG_DEBUG("Decorate "<<keys.prefix<<" with pT: "<<p4.Pt()<<" [GeV], eta: "<<p4.Eta()<<", phi: "<<p4.Phi()<<", M: "<<p4.M());
142  }
143  return StatusCode::SUCCESS;
144  }

◆ 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 147 of file TruthCategoriesDecorator.cxx.

147  {
148  // Retrieve the xAOD event info
150  if (!eventInfo.isValid()) {
151  ATH_MSG_FATAL("Failed to retrieve " << m_evtInfoKey.fullKey());
152  return StatusCode::FAILURE;
153  }
154 
155  auto intEIDecor = [&] (const EvtInfoDecorKey& key) -> int& {
156  return SG::makeHandle<int> (key, ctx)(*eventInfo);
157  };
158  auto floatEIDecor = [&] (const EvtInfoDecorKey& key) -> float& {
159  return SG::makeHandle<float> (key, ctx)(*eventInfo);
160  };
161 
162  int mcChannelNumber = eventInfo->mcChannelNumber();
163  if (!mcChannelNumber) mcChannelNumber = eventInfo->runNumber(); // EVNT input
164 
165  std::vector<HTXSSample>::const_iterator smp_itr =
166  std::find_if(m_htxs_samples.begin(), m_htxs_samples.end(),
167  [mcChannelNumber](const HTXSSample& smp) { return smp.dsids.count(mcChannelNumber); });
168  if (smp_itr == m_htxs_samples.end()) {
170  ATH_MSG_DEBUG("The sample " << mcChannelNumber
171  << " is not a Higgs sample and not of further interest. Decorate the prod mode information only");
172  return StatusCode::SUCCESS;
173  }
174 
175  const HTXS::HiggsProdMode prodMode = smp_itr->prod;
176  const HTXS::tH_type th_type = smp_itr->th_type;
177 
178  // Retrieve the xAOD truth
179  SG::ReadHandle<xAOD::TruthEventContainer> xTruthEventContainer{m_truthEvtKey, ctx};
180  if (!xTruthEventContainer.isValid()) {
181  ATH_MSG_FATAL("Failed to retrieve " << m_truthEvtKey.fullKey());
182  return StatusCode::FAILURE;
183  }
184  // convert xAOD -> HepMC
185  std::vector<HepMC::GenEvent> hepmc_evts = m_xAODtoHepMCTool->getHepMCEvents(xTruthEventContainer.cptr(), eventInfo.cptr());
186 
187  if (hepmc_evts.empty()) {
188  // ANGRY MESSAGE HERE
189  ATH_MSG_FATAL("The HEP MC GenEvent conversion failed");
190  return StatusCode::FAILURE;
191  } else {
192  ATH_MSG_DEBUG("Found "<<hepmc_evts.size()<<" HepMC events.");
193  }
194 
195  // classify event according to simplified template cross section
196  std::unique_ptr<HTXS::HiggsClassification> htxs{m_higgsTruthCatTool->getHiggsTruthCategoryObject(hepmc_evts[0], prodMode)};
197  ATH_MSG_DEBUG("Truth categorization done ");
198  // Decorate the enums
199  intEIDecor (m_dec_prodModeKey) = htxs->prodMode;
200  intEIDecor (m_dec_errorCodeKey) = htxs->errorCode;
201  intEIDecor (m_dec_stage0CatKey) = htxs->stage0_cat;
202 
203  // Stage-1 binning
204  intEIDecor (m_dec_stage1CatPt25Key) = htxs->stage1_cat_pTjet25GeV;
205  intEIDecor (m_dec_stage1CatPt30Key) = htxs->stage1_cat_pTjet30GeV;
207  intEIDecor (m_dec_stage1IdxPt25Key) = HTXSstage1_to_HTXSstage1FineIndex(*htxs, th_type, true);
208  intEIDecor (m_dec_stage1IdxPt30Key) = HTXSstage1_to_HTXSstage1FineIndex(*htxs, th_type, false);
209 
210  // Stage-1.2 binning
211  intEIDecor (m_dec_stage1p2_CatPt25Key) = htxs->stage1_2_cat_pTjet25GeV;
212  intEIDecor (m_dec_stage1p2_CatPt30Key) = htxs->stage1_2_cat_pTjet30GeV;
214  intEIDecor (m_dec_stage1p2_IdxPt25Key) = HTXSstage1_2_to_HTXSstage1_2_FineIndex(*htxs, th_type, true);
215  intEIDecor (m_dec_stage1p2_IdxPt30Key) = HTXSstage1_2_to_HTXSstage1_2_FineIndex(*htxs, th_type, false);
216 
217  // Stage-1.2 finer binning
218  intEIDecor (m_dec_stage1p2_Fine_CatPt25Key) = htxs->stage1_2_fine_cat_pTjet25GeV;
219  intEIDecor (m_dec_stage1p2_Fine_CatPt30Key) = htxs->stage1_2_fine_cat_pTjet30GeV;
220  intEIDecor (m_dec_stage1p2_Fine_IdxPt25Key) = HTXSstage1_2_Fine_to_HTXSstage1_2_Fine_FineIndex(*htxs, th_type, true);
221  intEIDecor (m_dec_stage1p2_Fine_IdxPt30Key) = HTXSstage1_2_Fine_to_HTXSstage1_2_Fine_FineIndex(*htxs, th_type, false);
222 
223  intEIDecor (m_dec_NJets25Key) = htxs->jets25.size();
224  intEIDecor (m_dec_NJets30Key) = htxs->jets30.size();
225 
226  intEIDecor (m_dec_isZnunuKey) = htxs->isZ2vvDecay;
227 
228  // At the very least, save the Higgs boson pT
229  if (!m_detailLevel) {
230  floatEIDecor (m_dec_Higgs_ptKey) = htxs->higgs.Pt() * Gaudi::Units::GeV;
231  }
232  if (m_detailLevel > 0) {
233  // The Higgs and the associated V (last instances prior to decay)
234  ATH_CHECK(decorateFourVec(ctx, m_decp4_HiggsKeys, *eventInfo, htxs->higgs));
235  ATH_CHECK(decorateFourVec(ctx, m_decp4_VKeys, *eventInfo, htxs->V));
236  }
237 
238  if (m_detailLevel > 1) {
239  // Jets built excluding Higgs decay products
240  ATH_CHECK(decorateFourVecs(ctx, m_decp4_V_jets25Keys, *eventInfo, htxs->jets25));
241  ATH_CHECK(decorateFourVecs(ctx, m_decp4_V_jets30Keys, *eventInfo, htxs->jets30));
242  }
243 
244  if (m_detailLevel > 2) {
245  // Everybody might not want this ... but good for validation
246  ATH_CHECK(decorateFourVec(ctx, m_decp4_Higgs_decayKeys, *eventInfo, htxs->p4decay_higgs));
247  ATH_CHECK(decorateFourVec(ctx, m_decp4_V_decayKeys, *eventInfo, htxs->p4decay_V));
248  }
250  ATH_MSG_DEBUG("production mode: " << intEIDecor(m_dec_prodModeKey) << ", errorCode: " << intEIDecor (m_dec_errorCodeKey) << ", Stage0: " << intEIDecor (m_dec_stage0CatKey)
251  << ", Stage1 -- Jet25 " << intEIDecor (m_dec_stage1CatPt25Key) << " Idx " << intEIDecor (m_dec_stage1IdxPt25Key)
252  << ", Jet30: " << intEIDecor (m_dec_stage1CatPt30Key) << " Idx "<< intEIDecor (m_dec_stage1IdxPt30Key) << ", Stage 1.2 -- Jet25: "
253  << intEIDecor (m_dec_stage1p2_CatPt25Key) << " Idx: " << intEIDecor (m_dec_stage1p2_IdxPt25Key) << " Jet30: " << intEIDecor (m_dec_stage1p2_CatPt30Key)
254  << " Idx: " << intEIDecor (m_dec_stage1p2_IdxPt30Key) << ", HTXS NJets 25" << intEIDecor (m_dec_NJets25Key)
255  << " HTXS NJets 30 " << intEIDecor (m_dec_NJets30Key) << " Z->nunu" << intEIDecor (m_dec_isZnunuKey));
256 
257  return StatusCode::SUCCESS;
258  }

◆ 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 
53 
55  // The Higgs and the associated V (last instances prior to decay)
58  // Jets built excluding Higgs decay products
61  // Everybody might not want this ... but good for validation
64 
65  // Open the TEnv configuration file
66  TEnv config{};
67  if (config.ReadFile(PathResolverFindCalibFile(m_configPath).c_str(), EEnvLevel(0))) {
68  ATH_MSG_FATAL("Failed to open TEnv file " << m_configPath);
69  return StatusCode::FAILURE;
70  }
71 
72  for (const std::string prod_mode : {"GGF", "VBF", "WH", "QQ2ZH", "GG2ZH", "TTH", "BBH", "TH", "THQB", "WHT"}) {
73  HTXSSample smp{};
74  if (prod_mode == "GGF")
75  smp.prod = HTXS::HiggsProdMode::GGF;
76  else if (prod_mode == "VBF")
77  smp.prod = HTXS::HiggsProdMode::VBF;
78  else if (prod_mode == "WH")
79  smp.prod = HTXS::HiggsProdMode::WH;
80  else if (prod_mode == "QQ2ZH")
81  smp.prod = HTXS::HiggsProdMode::QQ2ZH;
82  else if (prod_mode == "GG2ZH")
83  smp.prod = HTXS::HiggsProdMode::GG2ZH;
84  else if (prod_mode == "TTH")
85  smp.prod = HTXS::HiggsProdMode::TTH;
86  else if (prod_mode == "BBH")
87  smp.prod = HTXS::HiggsProdMode::BBH;
88  else if (prod_mode == "TH")
89  smp.prod = HTXS::HiggsProdMode::TH;
90  else if (prod_mode == "THQB") {
91  smp.th_type = HTXS::tH_type::THQB;
92  smp.prod = HTXS::HiggsProdMode::TH;
93  } else if (prod_mode == "WHT") {
94  smp.th_type = HTXS::tH_type::TWH;
95  smp.prod = HTXS::HiggsProdMode::TH;
96  }
97  std::vector<std::string> dsid_str = CxxUtils::tokenize(config.GetValue(Form("HTXS.MCsamples.%s", prod_mode.c_str()), ""), " ");
98  for (const std::string& dsid : dsid_str) { smp.dsids.insert(std::atoi(dsid.c_str())); }
99  m_htxs_samples.push_back(std::move(smp));
100  }
101  return StatusCode::SUCCESS;
102  }

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

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_errorCodeKey { this, "ErrorCodeDecorKey", m_evtInfoKey, "HTXS_errorCore", "" }
private

Definition at line 66 of file TruthCategoriesDecorator.h.

◆ m_dec_Higgs_ptKey

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_Higgs_ptKey { this, "Higgs_ptKey", m_evtInfoKey, "HTXS_Higgs_pt", "" }
private

Definition at line 130 of file TruthCategoriesDecorator.h.

◆ m_dec_isZnunuKey

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_isZnunuKey { this, "IsZnunuKey", m_evtInfoKey, "HTXS_isZ2vvDecay", "" }
private

Definition at line 104 of file TruthCategoriesDecorator.h.

◆ m_dec_NJets25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_NJets25Key { this, "NJets25Key", m_evtInfoKey, "HTXS_Njets_pTjet25", "" }
private

Definition at line 100 of file TruthCategoriesDecorator.h.

◆ m_dec_NJets30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_NJets30Key { this, "NJets30Key", m_evtInfoKey, "HTXS_Njets_pTjet30", "" }
private

Definition at line 102 of file TruthCategoriesDecorator.h.

◆ m_dec_prodModeKey

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_prodModeKey { this, "ProdModeDecorKey", m_evtInfoKey, "HTXS_prodMode", "" }
private

Definition at line 64 of file TruthCategoriesDecorator.h.

◆ m_dec_stage0CatKey

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage0CatKey { this, "Stage0CatDecorKey", m_evtInfoKey, "HTXS_Stage0_Category", "" }
private

Definition at line 68 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1CatPt25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1CatPt25Key { this, "Stage1CatPt25Key", m_evtInfoKey, "HTXS_Stage1_Category_pTjet25", "" }
private

Definition at line 71 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1CatPt30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1CatPt30Key { this, "Stage1CatPt30Key", m_evtInfoKey, "HTXS_Stage1_Category_pTjet30", "" }
private

Definition at line 73 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1IdxPt25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1IdxPt25Key { this, "Stage1IdxPt25Key", m_evtInfoKey, "HTXS_Stage1_FineIndex_pTjet25", "" }
private

Definition at line 75 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1IdxPt30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1IdxPt30Key { this, "Stage1IdxPt30Key", m_evtInfoKey, "HTXS_Stage1_FineIndex_pTjet30", "" }
private

Definition at line 77 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_CatPt25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_CatPt25Key { this, "Stage1p2_CatPt25Key", m_evtInfoKey, "HTXS_Stage1_2_Category_pTjet25", "" }
private

Definition at line 81 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_CatPt30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_CatPt30Key { this, "Stage1p2_CatPt30Key", m_evtInfoKey, "HTXS_Stage1_2_Category_pTjet30", "" }
private

Definition at line 83 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_Fine_CatPt25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_CatPt25Key { this, "Stage1p2_Fine_CatPt25Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_Category_pTjet25", "" }
private

Definition at line 91 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_Fine_CatPt30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_CatPt30Key { this, "Stage1p2_Fine_CatPt30Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_Category_pTjet30", "" }
private

Definition at line 93 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_Fine_IdxPt25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_IdxPt25Key { this, "Stage1p2_Fine_IdxPt25Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_FineIndex_pTjet25", "" }
private

Definition at line 95 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_Fine_IdxPt30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_IdxPt30Key { this, "Stage1p2_Fine_IdxPt30Key", m_evtInfoKey, "HTXS_Stage1_2_Fine_FineIndex_pTjet30", "" }
private

Definition at line 97 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_IdxPt25Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_IdxPt25Key { this, "Stage1p2_IdxPt25Key", m_evtInfoKey, "HTXS_Stage1_2_FineIndex_pTjet25", "" }
private

Definition at line 85 of file TruthCategoriesDecorator.h.

◆ m_dec_stage1p2_IdxPt30Key

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_IdxPt30Key { this, "Stage1p2_IdxPt30Key", m_evtInfoKey, "HTXS_Stage1_2_FineIndex_pTjet30", "" }
private

Definition at line 87 of file TruthCategoriesDecorator.h.

◆ m_decp4_Higgs_decayKeys

FourMomDecorationKeys DerivationFramework::TruthCategoriesDecorator::m_decp4_Higgs_decayKeys { this, m_evtInfoKey, "HTXS_Higgs_decay" }
private

Definition at line 140 of file TruthCategoriesDecorator.h.

◆ m_decp4_HiggsKeys

FourMomDecorationKeys DerivationFramework::TruthCategoriesDecorator::m_decp4_HiggsKeys { this, m_evtInfoKey, "HTXS_Higgs" }
private

Definition at line 132 of file TruthCategoriesDecorator.h.

◆ m_decp4_V_decayKeys

FourMomDecorationKeys DerivationFramework::TruthCategoriesDecorator::m_decp4_V_decayKeys { this, m_evtInfoKey, "HTXS_V_decay" }
private

Definition at line 142 of file TruthCategoriesDecorator.h.

◆ m_decp4_V_jets25Keys

FourMomDecorationKeys DerivationFramework::TruthCategoriesDecorator::m_decp4_V_jets25Keys { this, m_evtInfoKey, "HTXS_V_jets25" }
private

Definition at line 136 of file TruthCategoriesDecorator.h.

◆ m_decp4_V_jets30Keys

FourMomDecorationKeys DerivationFramework::TruthCategoriesDecorator::m_decp4_V_jets30Keys { this, m_evtInfoKey, "HTXS_V_jets30" }
private

Definition at line 138 of file TruthCategoriesDecorator.h.

◆ m_decp4_VKeys

FourMomDecorationKeys DerivationFramework::TruthCategoriesDecorator::m_decp4_VKeys { this, m_evtInfoKey, "HTXS_V" }
private

Definition at line 134 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 60 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_truthEvtKey

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

Definition at line 59 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:
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_dec_stage1CatPt30Key
EvtInfoDecorKey m_dec_stage1CatPt30Key
Definition: TruthCategoriesDecorator.h:74
DerivationFramework::TruthCategoriesDecorator::m_decp4_Higgs_decayKeys
FourMomDecorationKeys m_decp4_Higgs_decayKeys
Definition: TruthCategoriesDecorator.h:141
DerivationFramework::TruthCategoriesDecorator::m_truthEvtKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEvtKey
Definition: TruthCategoriesDecorator.h:59
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
HTXS::GG2ZH
@ GG2ZH
Definition: HiggsTemplateCrossSectionsDefs.h:29
DerivationFramework::TruthCategoriesDecorator::m_dec_Higgs_ptKey
EvtInfoDecorKey m_dec_Higgs_ptKey
Definition: TruthCategoriesDecorator.h:131
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
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
DerivationFramework::TruthCategoriesDecorator::m_dec_errorCodeKey
EvtInfoDecorKey m_dec_errorCodeKey
Definition: TruthCategoriesDecorator.h:67
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_dec_NJets25Key
EvtInfoDecorKey m_dec_NJets25Key
Definition: TruthCategoriesDecorator.h:101
DerivationFramework::TruthCategoriesDecorator::m_dec_prodModeKey
EvtInfoDecorKey m_dec_prodModeKey
Definition: TruthCategoriesDecorator.h:65
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_CatPt30Key
EvtInfoDecorKey m_dec_stage1p2_CatPt30Key
Definition: TruthCategoriesDecorator.h:84
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
DerivationFramework::TruthCategoriesDecorator::m_dec_stage0CatKey
EvtInfoDecorKey m_dec_stage0CatKey
Definition: TruthCategoriesDecorator.h:69
HTXS::Stage0::BBH
@ BBH
Definition: HiggsTemplateCrossSectionsDefs.h:46
xAOD::mcChannelNumber
mcChannelNumber
Definition: EventInfo_v1.cxx:197
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
DerivationFramework::TruthCategoriesDecorator::m_decp4_V_jets25Keys
FourMomDecorationKeys m_decp4_V_jets25Keys
Definition: TruthCategoriesDecorator.h:137
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_CatPt25Key
EvtInfoDecorKey m_dec_stage1p2_CatPt25Key
Definition: TruthCategoriesDecorator.h:82
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
HTXS::Stage0::VBF
@ VBF
Definition: HiggsTemplateCrossSectionsDefs.h:44
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
DerivationFramework::TruthCategoriesDecorator::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition: TruthCategoriesDecorator.h:60
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
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
DerivationFramework::TruthCategoriesDecorator::m_decp4_VKeys
FourMomDecorationKeys m_decp4_VKeys
Definition: TruthCategoriesDecorator.h:135
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
DerivationFramework::TruthCategoriesDecorator::decorateFourVecs
StatusCode decorateFourVecs(const EventContext &ctx, const FourMomDecorationKeys &keys, const xAOD::EventInfo &eventInfo, const std::vector< TLorentzVector > &p4s) const
Definition: TruthCategoriesDecorator.cxx:121
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
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_IdxPt25Key
EvtInfoDecorKey m_dec_stage1p2_IdxPt25Key
Definition: TruthCategoriesDecorator.h:86
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
DerivationFramework::TruthCategoriesDecorator::decorateFourVec
StatusCode decorateFourVec(const EventContext &ctx, const FourMomDecorationKeys &keys, const xAOD::EventInfo &eventInfo, const TLorentzVector &p4) const
Definition: TruthCategoriesDecorator.cxx:105
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_IdxPt30Key
EvtInfoDecorKey m_dec_stage1p2_Fine_IdxPt30Key
Definition: TruthCategoriesDecorator.h:98
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::initialize
StatusCode initialize(bool used=true)
Definition: TruthCategoriesDecorator.h:122
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:228
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
DerivationFramework::TruthCategoriesDecorator::EvtInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > EvtInfoDecorKey
Definition: TruthCategoriesDecorator.h:62
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_IdxPt25Key
EvtInfoDecorKey m_dec_stage1p2_Fine_IdxPt25Key
Definition: TruthCategoriesDecorator.h:96
DerivationFramework::TruthCategoriesDecorator::m_decp4_V_jets30Keys
FourMomDecorationKeys m_decp4_V_jets30Keys
Definition: TruthCategoriesDecorator.h:139
DerivationFramework::TruthCategoriesDecorator::m_decp4_HiggsKeys
FourMomDecorationKeys m_decp4_HiggsKeys
Definition: TruthCategoriesDecorator.h:133
HTXS::Stage0::TH
@ TH
Definition: HiggsTemplateCrossSectionsDefs.h:46
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
HTXS::THQB
@ THQB
Definition: HiggsTemplateCrossSectionsDefs.h:34
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1CatPt25Key
EvtInfoDecorKey m_dec_stage1CatPt25Key
Definition: TruthCategoriesDecorator.h:72
a
TList * a
Definition: liststreamerinfos.cxx:10
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
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
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_CatPt25Key
EvtInfoDecorKey m_dec_stage1p2_Fine_CatPt25Key
Definition: TruthCategoriesDecorator.h:92
DerivationFramework::TruthCategoriesDecorator::m_decp4_V_decayKeys
FourMomDecorationKeys m_decp4_V_decayKeys
Definition: TruthCategoriesDecorator.h:143
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
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
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_IdxPt30Key
EvtInfoDecorKey m_dec_stage1p2_IdxPt30Key
Definition: TruthCategoriesDecorator.h:88
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1IdxPt30Key
EvtInfoDecorKey m_dec_stage1IdxPt30Key
Definition: TruthCategoriesDecorator.h:78
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
DerivationFramework::TruthCategoriesDecorator::m_dec_stage1p2_Fine_CatPt30Key
EvtInfoDecorKey m_dec_stage1p2_Fine_CatPt30Key
Definition: TruthCategoriesDecorator.h:94
DerivationFramework::TruthCategoriesDecorator::m_dec_isZnunuKey
EvtInfoDecorKey m_dec_isZnunuKey
Definition: TruthCategoriesDecorator.h:105
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::m_dec_stage1IdxPt25Key
EvtInfoDecorKey m_dec_stage1IdxPt25Key
Definition: TruthCategoriesDecorator.h:76
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
HTXS::QQ2ZH
@ QQ2ZH
Definition: HiggsTemplateCrossSectionsDefs.h:29
DerivationFramework::TruthCategoriesDecorator::m_dec_NJets30Key
EvtInfoDecorKey m_dec_NJets30Key
Definition: TruthCategoriesDecorator.h:103