ATLAS Offline Software
IWeightTool.h
Go to the documentation of this file.
1 // Interface for a per-event weight computation
3 // The getWeight() function computes and returns the weight
4 //
5 // Author: Olivier Arnaez <olivier.arnaez@cern.ch>
7 // $Id: IWeightTool.h $
8 #ifndef PATINTERFACES_IWEIGHTTOOL_H
9 #define PATINTERFACES_IWEIGHTTOOL_H
10 
11 // System include(s):
12 
13 // Framework include(s):
14 #include "AsgTools/IAsgTool.h"
15 
16 // Forward declaration
17 
18 
21 class IWeightTool : virtual public asg::IAsgTool {
22 
25 
26  public:
27 
29  virtual ~IWeightTool(){};
30 
32  virtual double getWeight() const = 0;
33 
34 
35  }; // class IWeightTool
36 
37 
38 #endif // PATINTERFACES_IWEIGHTTOOL_H
IWeightTool::getWeight
virtual double getWeight() const =0
returns: the value that was calculated from the usual Athena storegate
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition: IAsgTool.h:41
IWeightTool::~IWeightTool
virtual ~IWeightTool()
Declare the interface that this class provides.
Definition: IWeightTool.h:29
IWeightTool
Interface for tools that want to calculate a weight from different event information.
Definition: IWeightTool.h:21
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition: AsgToolMacros.h:40
IAsgTool.h