|
ATLAS Offline Software
|
Go to the documentation of this file.
13 m_eventInfoName(
"EventInfo"),
27 return StatusCode::SUCCESS;
40 ATH_MSG_DEBUG (
" In WeightsAgregator::evaluate(), having tool to deal with called " << wtool->name());
54 if(
sc.isFailure() || !evtInfo) {
66 ToolHandleArray< IWeightTool >::const_iterator itPriv =
m_toolArray.begin(), itPrivEnd =
m_toolArray.end();
67 for ( ; itPriv != itPrivEnd; ++itPriv ) {
70 weight *= (*itPriv)->getWeight();
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
virtual double evaluate(const xAOD::IParticle *part) const override
returns: the value that was calculated from the xAOD::IParticle (composite built event object for ins...
Class providing the definition of the 4-vector interface.
@ IS_SIMULATION
true: simulation, false: data
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::string m_eventInfoName
Name of the xAOD::EventInfo object.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
Usual initialize method of the framework.
WeightsAgregator(const std::string &name)
Create a proper constructor for Athena.
Class describing the basic event information.
bool eventType(EventType type) const
Check for one particular bitmask value.
ToolHandleArray< IWeightTool > m_toolArray
Array of ingredient weight tools.