|
ATLAS Offline Software
|
Go to the documentation of this file.
28 , m_metaStore(
"MetaDataStore",
n )
29 , m_weightSvc(
"HepMCWeightSvc/HepMCWeightSvc" ,
n )
31 declareInterface<DerivationFramework::IAugmentationTool>(
this);
45 CHECK( m_metaStore.retrieve() );
46 CHECK( m_weightSvc.retrieve() );
47 CHECK( m_tagInfoMgr.retrieve() );
52 m_tmd->setStore( aux );
54 CHECK( m_metaStore->record( aux, m_metaName +
"Aux." ) );
55 CHECK( m_metaStore->record( m_tmd, m_metaName ) );
57 return StatusCode::SUCCESS;
68 if (evtStore()->contains<xAOD::EventInfo>(
"EventInfo")){
78 m_tmd->push_back( md );
81 std::map<std::string,std::size_t> weight_name_map = m_weightSvc->weightNames();
83 std::vector<std::string> orderedWeightNameVec;
84 orderedWeightNameVec.reserve( weight_name_map.size() );
85 for (
auto&
entry: weight_name_map) {
86 orderedWeightNameVec.push_back(
entry.first);
91 std::sort(orderedWeightNameVec.begin(), orderedWeightNameVec.end(),
92 [&](
const std::string&
i,
const std::string& j){return weight_name_map.at(i) < weight_name_map.at(j);});
102 md->
setHardPDF( m_tagInfoMgr->findTag(
"hardPDF") );
103 md->
setSoftPDF( m_tagInfoMgr->findTag(
"softPDF") );
107 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
TruthMetaDataContainer_v1 TruthMetaDataContainer
Declare the latest version of the truth vertex container.
#define ATH_MSG_VERBOSE(x)
TruthMetaData_v1 TruthMetaData
Typedef to implementation.
uint32_t mcChannelNumber() const
The MC generator's channel number.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
TruthMetaDataAuxContainer_v1 TruthMetaDataAuxContainer
Declare the latest version of the truth vertex auxiliary container.
Class describing the basic event information.