 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 , m_metaStore(
"MetaDataStore",
n )
30 , m_weightSvc(
"HepMCWeightSvc/HepMCWeightSvc" ,
n )
32 declareProperty(
"MetaObjectName",
m_metaName =
"TruthMetaData" );
48 CHECK( m_metaStore.retrieve() );
49 CHECK( m_weightSvc.retrieve() );
50 CHECK( m_tagInfoMgr.retrieve() );
55 m_tmd->setStore( aux );
57 CHECK( m_metaStore->record( aux, m_metaName +
"Aux." ) );
58 CHECK( m_metaStore->record( m_tmd, m_metaName ) );
60 return StatusCode::SUCCESS;
66 const EventContext& ctx = Gaudi::Hive::currentContext();
81 m_tmd->push_back( md );
84 std::map<std::string,std::size_t> weight_name_map = m_weightSvc->weightNames();
86 std::vector<std::string> orderedWeightNameVec;
87 orderedWeightNameVec.reserve( weight_name_map.size() );
88 for (
auto&
entry: weight_name_map) {
89 orderedWeightNameVec.push_back(
entry.first);
94 std::sort(orderedWeightNameVec.begin(), orderedWeightNameVec.end(),
95 [&](
const std::string&
i,
const std::string& j){return weight_name_map.at(i) < weight_name_map.at(j);});
105 md->
setHardPDF( m_tagInfoMgr->findTag(
"hardPDF") );
106 md->
setSoftPDF( m_tagInfoMgr->findTag(
"softPDF") );
110 return StatusCode::SUCCESS;
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
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.
bool isPresent() const
Is the referenced object present in SG?
Handle class for reading from StoreGate.