ATLAS Offline Software
WeightPFOTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef WEIGHTPFOTOOL_H
6 #define WEIGHTPFOTOOL_H
7 
10 #include "AsgTools/AsgTool.h"
11 
13 
14 #include <string>
15 
16 namespace CP {
17 
18  class WeightPFOTool : public virtual IWeightPFOTool, public asg::AsgTool {
19 
22 
23  public:
25  WeightPFOTool(const std::string& name);
26 
27  // given a PFO, extract weight
28  StatusCode fillWeight( const xAOD::PFO& cpfo, float& weight) const;
29  StatusCode fillWeight( const xAOD::FlowElement& cpfo, float& weight) const;
30 
31  private:
32 
35 
36  };
37 
38 }
39 #endif
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
IWeightPFOTool.h
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
CP::WeightPFOTool::WeightPFOTool
WeightPFOTool(const std::string &name)
Athena constructor.
Definition: WeightPFOTool.cxx:10
CP::WeightPFOTool::m_theNeutralPFOScaleString
std::string m_theNeutralPFOScaleString
Definition: WeightPFOTool.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::WeightPFOTool
Definition: WeightPFOTool.h:18
xAOD::PFO_v1
Class describing a particle flow object.
Definition: PFO_v1.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CP::WeightPFOTool::fillWeight
StatusCode fillWeight(const xAOD::PFO &cpfo, float &weight) const
Declare the interface that the class provides.
Definition: WeightPFOTool.cxx:41
CP::WeightPFOTool::m_doEoverPweight
bool m_doEoverPweight
Definition: WeightPFOTool.h:33
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
AsgTool.h
CP::IWeightPFOTool
Definition: IWeightPFOTool.h:18
xAOD::FlowElement_v1
A detector object made of other lower level object(s)
Definition: FlowElement_v1.h:25