The base class for tools implementing basic object weights. More...
#include <AnaToolWeight.h>
Public Types | |
typedef XAODContainer | ContainerType |
the container type we are operating on | |
typedef XAODContainer::base_value_type | XAODObject |
the object type we are operating on | |
Public Member Functions | |
AnaToolWeight (const std::string &name) | |
standard constructor | |
virtual StatusCode | setObjectType (ObjectType type, const std::string &workingPoint) override |
virtual AnalysisStep | step () const override |
virtual unsigned | inputTypes () const override |
virtual unsigned | outputTypes () const override |
virtual StatusCode | execute (IEventObjects &objects) override |
virtual StatusCode | objectWeight (const XAODObject &object, float &weight)=0 |
calculate the weight for this event |
The base class for tools implementing basic object weights.
ana::AnaToolWeight< XAODContainer >::AnaToolWeight | ( | const std::string & | name | ) | [inline] |
standard constructor
StatusCode ana::AnaToolWeight< XAODContainer >::execute | ( | IEventObjects & | objects | ) | [inline, override, virtual] |
apply this analysis tool to the objects
objects | the objects to apply this too |
Implements ana::IAnaTool.
Reimplemented in ana::JetToolWeight.
unsigned ana::AnaToolWeight< XAODContainer >::inputTypes | ( | ) | const [inline, override, virtual] |
a bit-map indicating which object types we use
Implements ana::IAnaTool.
Reimplemented in ana::JetToolWeight.
virtual StatusCode ana::AnaToolWeight< XAODContainer >::objectWeight | ( | const XAODObject & | object, | |
float & | weight | |||
) | [pure virtual] |
calculate the weight for this event
object | the object to evaluate | |
[out] | weight | the calculated weight |
unsigned ana::AnaToolWeight< XAODContainer >::outputTypes | ( | ) | const [inline, override, virtual] |
a bit-map indicating which output types we will create
Implements ana::IAnaTool.
Reimplemented in ana::JetToolWeight.
StatusCode ana::AnaToolWeight< XAODContainer >::setObjectType | ( | ObjectType | type, | |
const std::string & | workingPoint | |||
) | [inline, override, virtual] |
set the object type to work on this is called straight after the tool is created and before it is initialized. the primary reason for this function is to allow jet definitions to be used for either jets or fat jets.
type | the object type we work on | |
workingPoint | the name of the working point we are working on or the empty string if this is a sole working point or working points do not apply |
Implements ana::IAnaTool.
AnalysisStep ana::AnaToolWeight< XAODContainer >::step | ( | ) | const [inline, override, virtual] |