27 return StatusCode::SUCCESS;
40 ATH_MSG_DEBUG (
" In WeightsAgregator::evaluate(), having tool to deal with called " << wtool->name());
42 weight *= obstool->evaluate(part);
45 ATH_MSG_DEBUG (
"Got weight in WeightsAgregator::evaluate() = " << weight <<
".");
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();
77 ATH_MSG_DEBUG (
" " << name() <<
" returning weight= " << weight <<
".");
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
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...
virtual StatusCode initialize() override
Usual initialize method of the framework.
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
ToolHandleArray< IWeightTool > m_toolArray
Array of ingredient weight tools.
WeightsAgregator(const std::string &name)
Create a proper constructor for Athena.
std::string m_eventInfoName
Name of the xAOD::EventInfo object.
bool eventType(EventType type) const
Check for one particular bitmask value.
@ IS_SIMULATION
true: simulation, false: data
Class providing the definition of the 4-vector interface.
EventInfo_v1 EventInfo
Definition of the latest event info version.